Account Endpoints¶
Account 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 | get api-key from profile page | 78HUdkjile0_kds045-dftk5mefjid3g |
Response
{
"status": 200,
"balances": [
{
"asset": "BTC",
"free": 9.695,
"locked": 0
},
{
"asset": "ETH",
"free": 72.147,
"locked": 0.152
}
]
}
Account balances with symbol¶
GET /api/v2/balances/<symbol>
Parameters
Key | Mandatory | Data type | Description | Example |
---|---|---|---|---|
symbol | required | 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 | get api-key from profile page | 78HUdkjile0_kds045-dftk5mefjid3g |
Response
{
"status": 200,
"balances": {
"asset": "ETH",
"free": 72.147,
"locked": 0.152
}
}
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 | get api-key from profile page | 78HUdkjile0_kds045-dftk5mefjid3g |
Response
{
"status": 200,
"totalPage": 23,
"data":
[
{
"price": 0.1,
"amount": 11,
"remain": 11,
"createdAt": 1539703961,
"type": "BUY",
"market": "BTC_ETH",
"uid": "ggo5r4e4vrwywzjmpjnbvzfz2"
},
{
"price": 0.1,
"amount": 11,
"remain": 11,
"createdAt": 1539703964,
"type": "SELL",
"market": "BTC_ETH",
"uid": "ggo5r4e4vrwdsedmpjnbvzfz2"
}
]
}
Get my trading¶
GET /api/v2/get-my-trading
Headers
Key | Mandatory | Data type | Description | Example |
---|---|---|---|---|
api-key | required | string | get api-key from profile page | 78HUdkjile0_kds045-dftk5mefjid3g |
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 |
Response
{
"status": 200,
"totalPage": 23,
"data":
[
{
"price_order": 0.1,
"amount_order": 12,
"price": 0.1,
"amount": 11,
"createdAt": 1539703961,
"type": "BUY",
"market": "BTC_ETH"
},
{
"price_order": 0.1,
"amount_order": 13,
"amount": 11,
"createdAt": 1539703964,
"type": "SELL",
"market": "BTC_ETH"
}
]
}