1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-17 03:12:56 +00:00

Added FTX to console example

This commit is contained in:
Jan Korf
2022-01-20 21:08:51 +01:00
parent 3e23882572
commit 325389cdf8
4 changed files with 104 additions and 2 deletions
@@ -22,6 +22,13 @@ namespace ConsoleClient.Exchanges
return result.AsDataless();
}
public async Task<Dictionary<string, decimal>> GetBalances()
{
using var client = new BinanceClient();
var result = await client.SpotApi.Account.GetAccountInfoAsync();
return result.Data.Balances.ToDictionary(b => b.Asset, b => b.Total);
}
public async Task<IEnumerable<OpenOrder>> GetOpenOrders()
{
using var client = new BinanceClient();