Orders
NOTE: This endpoint requires API key and request signing, for more information please refer to Authentication section.
Create
POST https://api.tdax.com/orders
Parameters
Name | Type | Description | Example |
---|---|---|---|
Type | String | A string representing order type, can be 'LIMIT' or 'MARKET' | 'LIMIT' |
Side | String | A string representing order side, can be 'sell' or 'buy' | 'sell' |
Market | String | A market name, can be 'THB', 'BTC', or 'ETH' | 'THB' |
Symbol | String | A symbol name, can be 'BTC', 'ETH', 'LTC', 'NEO', 'RPX', 'OMG', 'KNC', or 'XZC' | 'BTC' |
Price | Int | An integer representing price you want to buy or sell, in smallest unit | 100000 |
Qty | Int | An integer representing quantity you want to buy or sell | 4837295 |
Nonce | Int | An unique integer for each request, normally this will unix timestamp | 2731832 |
Response
The API will return HTTP status 202 Accepted
upon successful creation, otherwise the status returned will be greater than 400
with the message indicating error.
List
GET https://api.tdax.com/orders
Request signing should be done by signing an emptry string.
Parameters
None.
Response
The API will return HTTP status 200 OK
upon successful listing, otherwise the status returned will be greater than 400
with the message indicating error.
The response body will be JSON array representing a list of open orders.
Cancel
DELETE https://api.tdax.com/orders/:id
Request signing should be done by signing an emptry string.
Parameters
None.
Response
The API will return HTTP status 200 OK
upon successful deletion, otherwise the status returned will be greater than 400
with the message indicating error.