Trading Endpoints

Place order

POST /api/v2/place-order

Body:

Key Mandatory Data type Description Example
type required string Order type BUY/SELL
market required string trading market symbol BTC_ETH, ETH_MAS, …
price required double order price 0.1
amount required double amount coin to SELL/BUY 120.32
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 Description Example
api-key get api-key from profile page 78HUdkjile0_kds045-dftk5mefjid3g
signature
  • signature = hmac256(secret_key, <amount>_<market>_<price>_<recv_window>_<time_stamp>_<type>)
  • signature = hmac256(secret_key, <amount>_<market>_<price>_<time_stamp>_<type>)
9759cf926a0f65e59da604d9ea0537ca94d0084cbd741aeba5d9a5cedee7ab6d

Response

{
"status": 200,
"message":"Order successful!"
"data": {
        "market": "BTC_ETH",
        "price": 0.2,
        "amount": 1.2,
        "createdAt": 1539703961,
        "action": "BUY"
        "uid": "ggo5r4e4vrwywzjmpjnbvzfz2"
    }
}

Cancel order

POST /api/v2/cancel-order

Body:

Key Mandatory Data type Description Example
market required string trading market symbol BTC_ETH, ETH_MAS, …
uid required string unix id order (string) 0.1
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 Description Example
api-key get api-key from profile page 78HUdkjile0_kds045-dftk5mefjid3g
signature
  • signature = hmac256(secret_key, <market>_<recv_window>_<time_stamp>_<uid>)
  • signature = hmac256(secret_key, <market>_<time_stamp>_<uid>)
9759cf926a0f65e59da604d9ea0537ca94d0084cbd741aeba5d9a5cedee7ab6d

Response

{
    "status": 200,
    "message": "Cancel order successful!"
}