New Order
Place Order
POST
https://api.abcc.com/api/v1/exchange/orders
Request Body
Name | Type | Description |
---|---|---|
volume | string | Entrusted amount |
price | string | ONLY limit order |
ord_type | string | limit (Limit order) market (Market order) |
side | string | buy/sell |
market_code | string | |
signature | string | |
tonce | number | Timestamp of the current time in milliseconds (Unix epoch) |
access_key | string |
OUTPUT EXPLANATION
Parameter | Type | Explanation |
id | Integer | ID |
created_at | String | order time |
market_code | String | The only code for the market |
side | String | Buy and sell type |
state | String | status |
ord_type | String | Order type |
price | String | Order price |
avg_price | String | The average price of transactions |
volume | String | initial pending order volume |
remaining_volume | String | The remaining amount of pending orders |
executed_volume | String | Executed pending order volume |
trades_count | Integer | Number of transactions |
HTTP ERROR
HTTP Code | Code | Message | Reason | Explanation |
404 | 12001 | market not found: params[:market_code] | empty | Market pair not found |
400 | 12002 | Failed to create order | reason | Failed to create order |
Last updated