/// <summary> /// Get balances Get current currency balance from all or single exchange. /// </summary> /// <exception cref="CoinAPI.EMS.REST.V1.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="exchangeId">Filter the balances to the specific exchange. (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of List<Balance></returns> public async System.Threading.Tasks.Task <List <Balance> > V1BalancesGetAsync(string exchangeId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { CoinAPI.EMS.REST.V1.Client.ApiResponse <List <Balance> > localVarResponse = await V1BalancesGetWithHttpInfoAsync(exchangeId, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get balances Get current currency balance from all or single exchange. /// </summary> /// <exception cref="CoinAPI.EMS.REST.V1.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="exchangeId">Filter the balances to the specific exchange. (optional)</param> /// <returns>List<Balance></returns> public List <Balance> V1BalancesGet(string exchangeId = default(string)) { CoinAPI.EMS.REST.V1.Client.ApiResponse <List <Balance> > localVarResponse = V1BalancesGetWithHttpInfo(exchangeId); return(localVarResponse.Data); }