Account

Assets

GET /v1/account/assets

NOTE

Don't include trailing slash / at the end of the endpoint. Doing so can result in a “not found” error.

INFO

The ack of balance request indicates that the request is successfully accepted.

Response Parameters

ParameterTypeComments
statusCodenumber200
resultarrayObject
> coinstringUSDT
> availableBalanceintegeravailable balance of the account
> totalBalanceintegervaluation assets including margin of the account
> totalUnrealizedPnLintegertotal unrealized PnL of the account
messagestringOK

Request Example

GET /v1/account/assets HTTP/1.1
Host: api.okxai.net
X-OKXAI-SIGN: XXXXX
X-OKXAI-API-KEY: XXXXX
Content-Type: application/json
const response = await fetch('https://api.okxai.net/v1/account/assets');

Response Example

{
  "statusCode": 200,
  "result": {
    "coin": "USDT",
    "availableBalance": 13399.82163749,
    "totalBalance": 13399.82163749,
    "totalUnrealizedPnL":  18899.82163749
  },
  "message": "success"
}

On this page