Account Endpoints

Get balances

GET /api/v2/balances

Parameters

Key Mandatory Data type Description Example
symbol option string coin symbol MAS, ETH, BTC, …
time_stamp required long Time stamp to synchronize with server time (second) 1539703961
recv_window option int Delta delay time with server. Default 5 seconds. 5

Headers

Key Mandatory Data type Description Example
api-key required string Create api-key from profile page 78HUdkjile0kds045dftk5mefjid3gkt
signature requi red string View formula generate signature 6b811e0c4237bf8fb0ae70ae3aba76f2b70595f962cc42b6fed0b9bb33b18ffb

Response

{
  "status": 200,
  "data": [
    {
      "asset": "BTC",
      "free": 9.695,
      "locked": 0,
      "loanAvailableBalance": 0,
      "loanReservedBalance": 0,
      "loanLentBalance": 0,
      "loanCollateralBalance": 0
    },
    {
      "asset": "ETH",
      "free": 72.147,
      "locked": 0.152,
      "loanAvailableBalance": 0,
      "loanReservedBalance": 0,
      "loanLentBalance": 0,
      "loanCollateralBalance": 0
    }
  ]
}

Get my orders

GET /api/v2/get-my-orders

Parameters

Key Mandatory Data type Description Example
status option string Order status OPENED, CANCELLED, FINISHED, ALL
market option string trading market symbol BTC_ETH, ETH_MAS, …
start option long time stamp show orders start time 1539703961
end option long time stamp show order end time 1539703000
page option int page number 10
limit option int record number in page 10
time_stamp required long Time stamp to synchronize with server time (second) 1539703961
recv_window option int Delta delay time with server. Default 5 seconds. 5

Headers

Key Mandatory Data type Description Example
api-key required string Create api-key from profile page 78HUdkjile0kds045dftk5mefjid3gkt
signature requi red string View formula generate signature 6b811e0c4237bf8fb0ae70ae3aba76f2b70595f962cc42b6fed0b9bb33b18ffb

Response

{
    "status": 200,
    "data": [
        {
            "id": 61,
            "price": 6000,
            "amount": 1,
            "remain": 0,
            "createdAt": 1585724311,
            "status": 1,
            "orderType": "LIMIT",
            "actionType": 0,
            "uid": "ndpxsivnxxo1l6w5dpk8gzb9pz",
            "pairSymbol": "USDT_BTC"
        }
    ],
    "totalPage": 1
}

Get my trading

GET /api/v2/get-my-trading

Parameters

Key Mandatory Data type Description Example
market option string trading market symbol BTC_ETH, ETH_MAS, …
start option long time stamp show orders start time 1539703961
end option long time stamp show order end time 1539703000
page option int page number 10
limit option int record number in page 10
time_stamp required long Time stamp to synchronize with server time (second) 1539703961
recv_window option int Delta delay time with server. Default 5 seconds. 5

Headers

Key Mandatory Data type Description Example
api-key required string Create api-key from profile page 78HUdkjile0kds045dftk5mefjid3gkt
signature requi red string View formula generate signature 6b811e0c4237bf8fb0ae70ae3aba76f2b70595f962cc42b6fed0b9bb33b18ffb

Response

{
    "status": 200,
    "data": [
        {
            "id": 26,
            "symbol": "USDT_BTC",
            "price": 9842.47,
            "amount": 1,
            "type": 0,
            "createdAt": 1585724311,
            "actionType": 0,
            "orderId": 61,
            "fee": 17.716446,
            "feeAsset": "USDT"
        }
    ],
    "totalPage": 1
}