You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**text** | **str** | User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 16 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
7
+
**succeeded** | **bool** | Whether order succeeds | [optional]
8
+
**label** | **str** | Error label, empty string if order succeeds | [optional]
9
+
**message** | **str** | Detailed error message, empty string if order succeeds | [optional]
10
+
**id** | **str** | Order ID | [optional]
11
+
**create_time** | **str** | Order creation time | [optional]
12
+
**status** | **str** | Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled | [optional]
**type** | **str** | Order type. limit - limit order | [optional][default to 'limit']
15
+
**account** | **str** | Account type. spot - use spot account; margin - use margin account | [optional][default to 'spot']
16
+
**side** | **str** | Order side | [optional]
17
+
**amount** | **str** | Trade amount | [optional]
18
+
**price** | **str** | Order price | [optional]
19
+
**time_in_force** | **str** | Time in force | [optional][default to 'gtc']
20
+
**left** | **str** | Amount left to fill | [optional]
21
+
**fill_price** | **str** | Fill price of the order | [optional]
22
+
23
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[**cancel_order**](SpotApi.md#cancel_order) | **DELETE** /spot/orders/{order_id} | Cancel a single order
8
8
[**cancel_orders**](SpotApi.md#cancel_orders) | **DELETE** /spot/orders | Cancel all `open` orders in specified currency pair
9
+
[**create_batch_orders**](SpotApi.md#create_batch_orders) | **POST** /spot/batch_orders | Create a batch of orders
9
10
[**create_order**](SpotApi.md#create_order) | **POST** /spot/orders | Create an order
10
11
[**get_currency_pair**](SpotApi.md#get_currency_pair) | **GET** /spot/currency_pairs/{currency_pair} | Get detail of one single order
11
12
[**get_order**](SpotApi.md#get_order) | **GET** /spot/orders/{order_id} | Get a single order
@@ -123,6 +124,57 @@ Authentication with API key and secret is required
123
124
124
125
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
125
126
127
+
# **create_batch_orders**
128
+
> list[BatchOrder] create_batch_orders(order)
129
+
130
+
Create a batch of orders
131
+
132
+
Batch orders requirements: 1. custom order field `text` is required 2. At most 4 currency pairs, maximum 5 orders each, are allowed in one request 3. No mixture of spot orders and margin orders, e.g. `account` must be identical for all orders
Authentication with API key and secret is required
170
+
171
+
### HTTP request headers
172
+
173
+
-**Content-Type**: application/json
174
+
-**Accept**: application/json
175
+
176
+
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
Batch orders requirements: 1. custom order field `text` is required 2. At most 4 currency pairs, maximum 5 orders each, are allowed in one request 3. No mixture of spot orders and margin orders, e.g. `account` must be identical for all orders # noqa: E501
243
+
This method makes a synchronous HTTP request by default. To make an
Batch orders requirements: 1. custom order field `text` is required 2. At most 4 currency pairs, maximum 5 orders each, are allowed in one request 3. No mixture of spot orders and margin orders, e.g. `account` must be identical for all orders # noqa: E501
265
+
This method makes a synchronous HTTP request by default. To make an
0 commit comments