Balance Main
This endpoint is used to retrieve the main account user's balance.
Currently only returns USDT as that's the one we are interested in using.
Returning an array just for backward compatibility in case we want to add more currencies in the future.
The endpoint hits the bitmex API directly and returns the current balance, no cache.
Method
GET /user/balance/main
Response
{
"status": 200,
"data": [
{
"symbol": "USDT",
"amount": "103.171643",
"price": "1",
"icon": "https://static.bitmex.com/icons/dark/usdt.svg"
},
{
"symbol": "XBT",
"amount": "0.00012409",
"price": "117722.1",
"icon": "https://static.bitmex.com/icons/dark/xbt.svg"
}
]
}