POST/v1/api/placeOrder
URL:
https://api.crossexchange.io/POST/v1/api/placeOrder
Request field:
api_key |
Your API key | String |
auth_nonce |
Timestamp | String |
auth_sign |
MD5coding.MD5(amount+api_key+auth_nonce+isbid+order_type+pair+price+stop_price+apiSecret)MD5 Encryption rules: All parameters are sorted by a-z of the field name, and then append the apiSecret. |
String |
pair |
A trade pair name. eg. ETH_USDT | String |
isbid |
The side of buy or sell. true - buy / false - sell |
Bollen |
order_type |
You can place there types of orders: LIMIT / MARKET / STOP-LIMIT |
String |
price |
Price of you specify to buy or sell. filled with 0 forMARKET |
String |
amount |
Amount of the currency to buy or sell. | String |
stop_price |
Only if STOP-LIMIT is defined, sets trigger price for stop order, filled with 0 for other order_type . |
String |
|
Special for mining, it is not required. 1-mining90 |
int |
Example for limit:
{
“api_key”:”****”,
“auth_nonce”:” 1524165420000”,
“auth_sign”:” 0aeb680bb3152c14f849037af45f9eb1”,
“pair”:” ETH_USDT”,
“isbid”:” true”,
“order_type”:” LIMIT”,
“price”:” 0.07455600”,
“amount”:” 1”,
“stop_price”:” 0”,
}
Marker :
{
“api_key”:”****”,
“auth_nonce”:” 1524165420000”,
“auth_key”:” 123”,
“auth_sign”:” 0aeb680bb3152c14f849037af45f9eb1”,
“pair”:” ETH_USDT”,
“isbid”:” true”,
“order_type”:” MARKET”,
“price”:” 0”,
“amount”:” 0”,
“stop_price”:” 0”,
}
Stop-limit :
{
“api_key”:”****”,
“auth_nonce”:” 1524165420000”,
“auth_key”:” 123”,
“auth_sign”:” 0aeb680bb3152c14f849037af45f9eb1”,
“pair”:” ETH_USDT”,
“isbid”:” true”,
“order_type”:” STOP-LIMIT”,
“price”:” 0.07474700”,
“amount”:” 1”,
“stop_price”:” 0.06”,
}
Success:
{
"data": {
"result": true,
"orderid": "465191642781501440"
},
"channel": "auth-make-order"
}
Fail:
{
"data": {
"result": false,
"orderid": "-1"
},
"channel": "auth-make-order"
}
result |
The status of the requested operation, "true" means successfully,"false" is failure. |
orderid |
ID of previously placed order. |
channel |
auth-make-order | auth-cancel-order | auth-orders | auth-orders-history | auth-trades-history | auth-detail-order |