Trading Endpoints

Place order

POST /api/v2/place-order

Body:

Key Mandatory Data type Description Example
order_type required string Order type LIMIT/MARKET
type required string Action 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 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,
"message":"Order successful!"
"data": {
        "orderType": "LIMIT",
        "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 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,
    "message": "Cancel order successful!",
    "data": {
        "userId": 100,
        "id": 3008988,
        "uid": "jcf6lmtkb0e3hu3hhgpkd9xac5m",
        "actionType": 2,
        "pairSymbol": "MAS_MCASH"
    }
}