Skip to main content

Get Master Account Balance

Returns the wallet balance for the master account's exchange subaccount.

MethodGET
Path/dma/api/v1/master/balance
AuthAuthenticated (master account API key).

Request

from reference_client import sign_request, BASE_URL
import requests

headers, path = sign_request("GET", "/dma/api/v1/master/balance")
r = requests.get(BASE_URL + path, headers=headers)
print(r.json())

Response

{
"message": "success",
"data": {
"subaccount_id": null,
"account_type": "UNIFIED",
"usdt_inr_rate": "84.50",
"balance_detail": {
"totalEquity": "10500.25",
"totalEquityINR": "887271.13",
"coin": [
{
"coin": "USDT",
"equity": "10500.25",
"equityINR": "887271.13",
"walletBalance": "10000.00",
"walletBalanceINR": "845000.00",
"unrealisedPnl": "500.25",
"unrealisedPnlINR": "42271.13"
}
]
}
}
}
FieldTypeDescription
data.subaccount_idnullAlways null for the master account.
data.account_typestringAccount type (e.g. UNIFIED).
data.usdt_inr_ratestringCurrent USDT/INR conversion rate.
data.balance_detailobjectDynamic balance structure from the exchange with INR conversions.