Get Trade Balance
POST/private/TradeBalance
Retrieve a summary of collateral balances, margin position valuations, equity and margin level.
API Key Permissions Required: Orders and trades - Query open orders & trades
Request
- application/json
Body
required
Nonce used in construction of API-Sign
header
Default value: ZUSD
Base asset used to determine balance
Responses
- 200
Trade balances retrieved.
- application/json
- Schema
- Example (from schema)
Schema
result object
Account Balance
Equivalent balance (combined balance of all currencies)
Trade balance (combined balance of all equity currencies)
Margin amount of open positions
Unrealized net profit/loss of open positions
Cost basis of open positions
Current floating valuation of open positions
Equity: trade balance + unrealized net profit/loss
Free margin: Equity - initial margin (maximum margin available to open new positions)
Margin level: (equity / initial margin) * 100
Unexecuted value: Value of unfilled and partially filled orders
{
"error": [],
"result": {
"eb": "1101.3425",
"tb": "392.2264",
"m": "7.0354",
"n": "-10.0232",
"c": "21.1063",
"v": "31.1297",
"e": "382.2032",
"mf": "375.1678",
"ml": "5432.57"
}
}