Retrieve Portfolio

Retrieve portfolio of a trading account

GET https://api.ajaib.co.id/coin/internal/v1/portfolio

Functionality: Retrieves the aggregated portfolio of the exchange client. No sub-accounts yet.

Authentication: Required

Request Param

NONE

Response Body

Name
Type
Description

asset

string

The name of asset.

free

decimal

The total quantity of free assets.

locked

decimal

The total quantity of locked assets (used for open orders).

equivalent

EquivalentAsset

The equivalent asset from client side

Request Body Object > EquivalentAsset

Name
Type
Description

asset

string

The name of asset.

free

decimal

The total quantity of free assets.

locked

decimal

The total quantity of locked assets (used for open orders).

[
  {
    "asset": 'BTC',
    "free": 0,
    "locked": 0
  },
  // exchange_client_id 2, chain_up_bot_id 1
  {
    "asset": "IDR",
    "free": 15000,
    "locked": 0,
    "equivalent": {
      "asset": "USDT",
      "free": 1,
      "locked": 0
    }
  }, 
  // exchange_client_id 2, chain_up_bot_id 2
  {
    "asset": "USDT",
    "free": 10,
    "locked": 0,
  }
]

Last updated