get
https://api.connex.trade/api/v1/trading/portfolio/assets
Get portfolio asset by portfolioId.
Permission
- Primary API Key:
READ, retrieve asset details of current portfolio. - Sub-Portfolio API Key:
READ, retrieve asset details of current portfolio.
Rate Limit
- 20 requests per 1 second
Request
| Field name | Type | Necessary | Remarks |
|---|---|---|---|
| exchangeType | String | N | Exchange type(BINANCE、OKX) |
| page | Integer | N | Current page, default is 1 |
| pageSize | Integer | N | Page size, default 1000 |
Response
| Field | Type | Remark |
|---|---|---|
| portfolioId | String | Portfolio ID |
| coin | String | Coin |
| exchangeType | String | Exchange type(BINANCE、OKX) |
| balance | String | Balance |
| available | String | Available:available is the coin can be used |
| frozen | String | Frozen:frozen is the coin locked for SPOT&MARGIN |
| equity | String | The net quantity of a coin;equity = available + frozen + uPNL |
| overdraw | String | Overdraw |
| borrow | String | Borrow |
| debt | String | Debt |
| indexPrice | String | Index price |
| marginValue | String | Asset margin value;marginValue=equity × indexPrice × discount ratio |
| virtualBorrow | String | Virtual borrow Vitual borrow contains coins borrowing for opening contract positions. |
| debtMargin | String | Debt margin |
| perpMargin | String | Perpetual margin |
| createAt | String | Create time |
| updateAt | String | Update time |
| maxTransferable | String | Maximum transfer amount;maxTransferable = max { min{available, avaliableMargin/(indexPrice x discountRatio), (validMargin - 3*maintainMargin)/(indexPrice x discountRatio)), 0} |
| upnl | String | Unrealized Profit and Loss |
