1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-11 16:32:57 +00:00

Updated documentation and examples

This commit is contained in:
Jkorf
2024-10-22 16:20:27 +02:00
parent b40f72b1b0
commit ce35e30688
11 changed files with 238 additions and 36 deletions
@@ -27,7 +27,7 @@ namespace ConsoleClient.Exchanges
{
using var client = new BybitRestClient();
var result = await client.V5Api.Account.GetBalancesAsync(Bybit.Net.Enums.AccountType.Spot);
return result.Data.List.First().Assets.ToDictionary(d => d.Asset, d => d.WalletBalance);
return result.Data.List.First().Assets.ToDictionary(d => d.Asset, d => d.WalletBalance ?? 0);
}
public async Task<IEnumerable<OpenOrder>> GetOpenOrders()