Get Master Account Balance
Returns the wallet balance for the master account's exchange subaccount.
| Method | GET |
| Path | /dma/api/v1/master/balance |
| Auth | Authenticated (master account API key). |
Request
- Python
- Java
- Go
- Node.js
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())
HttpResponse<String> resp = client.send(
"GET", "/dma/api/v1/master/balance", null, null);
System.out.println(resp.body());
headers, p, err := SignRequest("GET", "/dma/api/v1/master/balance", nil)
if err != nil { panic(err) }
req, _ := http.NewRequest("GET", BaseURL+p, nil)
for k, v := range headers { req.Header.Set(k, v) }
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
out, _ := io.ReadAll(resp.Body)
fmt.Println(string(out))
const {signRequest, BASE_URL} = require('./reference-client');
const {headers, path} = signRequest('GET', '/dma/api/v1/master/balance');
const r = await fetch(BASE_URL + path, { headers });
console.log(await 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"
}
]
}
}
}
| Field | Type | Description |
|---|---|---|
data.subaccount_id | null | Always null for the master account. |
data.account_type | string | Account type (e.g. UNIFIED). |
data.usdt_inr_rate | string | Current USDT/INR conversion rate. |
data.balance_detail | object | Dynamic balance structure from the exchange with INR conversions. |