Orders
NOTE: This endpoint requires API key and request signing, for more information please refer to Authentication section.
The Orders API has V1 and V3, If use V3 the URL will be https://satangcorp.com/api/v3
Create
POST
https://satangcorp.com/api/orders/
**Please check that the price and amount field must be string.
Headers
Name | Type | Description |
---|---|---|
Signature | string | This field require encrypt of API key and API Secret |
Authorization | string | This field require API key |
Request Body
Name | Type | Description |
---|---|---|
type | string | A string representing order type, can be 'limit' or 'merket' |
pair | string | A string representing paring, can be 'btc_thb' 'eth_thb' ... |
side | string | A string representing order side, can be 'sell' or 'buy' |
price | string | A string representing price you want to buy or sell, in smallest unit |
amount | string | A string representing quantity you want to buy or sell |
nonce | integer | An unique integer for each request, normally this will unix time stamp |
List user orders
GET
https://satangcorp.com/api/orders/user
https://satangcorp.com/api/v3/orders/user
Query Parameters
Name | Type | Description |
---|---|---|
pair | string | A string representing pairing |
limit | string | A string representing limit to return |
offset | string | A string representing offset |
status | string | A string representing order status ("open" or "close") |
side | string | A string representing side |
Headers
Name | Type | Description |
---|---|---|
Signature | string | This field require encrypt of API key and API secret |
Authorization | string | This field require API key |
Cancel order
DELETE
https://satangcorp.com/api/orders/{order_id}
https://satangcorp.com/api/v3/orders/{order_id}
Headers
Name | Type | Description |
---|---|---|
Signature | string | This field require an encrypt of API key and API secret |
Authorization | string | This field require API key |
Request Body
Name | Type | Description |
---|---|---|
pair | string | A string representing pair |
Cancel all order
DELETE
https://satangcorp.com/api/orders/all
https://satangcorp.com/api/v3/orders/all Cancel all open orders of a user
Headers
Name | Type | Description |
---|---|---|
Signature | string | This field require an encrypt of API key and API secret |
Authorization | string | This field require API key |
Last updated