Batch Order
Place Order
Http Request
POST
/api/v1/spot/batch_order
Request Frequency Restriction:
- 1times / 1second
Postman
pay attention to replace "restful_base_endpoint"、"your_api_key"、"your_signature_result"
curl --location 'restful_base_endpoint/api/v1/spot/batch_order' \
--header 'ACCESS-KEY: your_api_key' \
--header 'ACCESS-SIGN: your_signature_result' \
--header 'ACCESS-TIMESTAMP: 1706759499.323' \
--header 'Content-Type: application/json' \
--data '[
{
"instrument_id":"BTC/USDT",
"direction":"1",
"price":"42000",
"quantity":"0.5"
},{
"instrument_id":"ETH/USDT",
"direction":"1",
"price":"2425",
"quantity":"2"
}
]'
Request Parameters
The request parameter is an array object that contains the following parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
instrument_id | string | YES | currency pair, such as BTC/USDT |
direction | string | YES | is the direction, direction = 1: buy, direction = 2: sell |
price | string | YES | is the order price |
quantity | string | YES | is the entrusted quantity |
Response fields description
Name | Type | Description |
---|---|---|
order_id | string | order id |