get
https://api.connex.trade/api/v1/trading/account
Returns the margin & risk overview of your trading portfolio on each connected exchange (e.g. BINANCE, OKX, EDX). Each object in data[] represents the same portfolio on one venue.
Permission
- Applies to both primary user and trading portfolio's API Key.
- Permission: READ.
Rate Limit
- 2 requests per 1 seconds.
Request Parameters
This endpoint does not require any request parameters.
Response
| Field | Type | Remark |
|---|---|---|
| portfolioId | String | Portfolio ID |
| exchangeType | String | Exchange type( Binance , OKX) |
| equity | String | Total account equity on this venue, valued in USDT-equivalent (including cash balance and P&L). |
| maintainMargin | String | Minimum margin required across all positions to avoid liquidation.n |
| positionValue | String | Notional value of all open positions on this venue. |
| uniMMR | String | validMargin/maintainMargin.Unified maintenance margin rate, used to measure risk, a forced liquidation is triggered when the value is below 100%. |
| riskRatio | String | 1/uniMMR (decimal 0.0001) |
| accountStatus | String | account status (NORMAL, MARGIN_CALL, CANCEL_OPEN, CANCEL_ALL, LIQUIDATING, TAKEOVER) |
| marginValue | String | Total margin value on this venue. |
| frozenMargin | String | Locked margin (e.g. for open orders or positions) and unavailable for new trades or withdrawal. frozenMargin = perpMargin + debtMargin |
| perpMargin | String | Margin allocated specifically to perpetual contracts. |
| debtMargin | String | Margin used to cover borrowing and negative balances. |
| openLossMargin | String | openLossmargin includes margin losses and fee losses due to the difference in discount rates for spot orders, as well as losses from contract opening and closing fees. |
| validMargin | String | validMargin = marginValue - openLossMargin |
| availableMargin | String | Margin available for opening new positions or for withdrawal. available margin is used to calculate the maximum position size. |
| upnl | String | Unrealized profit and loss of the account in USDT. |
| positionMode | String | Position mode on this venue, e.g. NET (one-way) or BOTH (dual-side) depending on exchange settings. |
Example Response
{
"code": 200000,
"message": "Success",
"data": [
{
"portfolioId": "17xxxxxxxxxxxxxx",
"exchangeType": "BINANCE",
"equity": "5685978.07787916",
"maintainMargin": "164182.02640801",
"positionValue": "3465349.06217066",
"uniMMR": "28.4139281239",
"riskRatio": "0.0352",
"accountStatus": "NORMAL",
"marginValue": "4666269.16976568",
"frozenMargin": "482754.35903806",
"perpMargin": "482754.35903806",
"debtMargin": "0",
"openLossMargin": "1212.87217175",
"validMargin": "4665056.29759393",
"availableMargin": "4182301.93855587",
"upnl": "4654259.07370681",
"positionMode": "NET"
}
]
}
