The Balance API can be used to get available balances in each currency.
Endpoint
GET /api/Balances/BalanceList
Response
Name | Type | Additional information |
---|---|---|
BalancesList | String |
Example Request
public async Task<object> BalanceList(string access_token)
{
using (var client = new HttpClient())
{
try
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", access_token);
var url = root + "/api/Balances/BalanceList";
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string result = await response.Content.ReadAsStringAsync();
JObject jObject = JObject.Parse(result);
return jObject;
}
else return response.StatusCode;
}
catch (Exception e)
{
return "Exception: " + e.Message;
}
}
}
Example Response
{
"BalancesList": [
"9,341.28 BRL",
"775.61 CAD",
"54,779.51 CZK",
"30,910.40 EUR",
"857.33 GBP",
"283,850.81 ILS",
"57,454.04 JPY",
"178,617.86 USD"
]
}