Skip to content

Commit 916818e

Browse files
committed
add spot auto order API; trade time in spot currency pair
1 parent b559a15 commit 916818e

20 files changed

+1918
-27
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ APIv4 provides spot, margin and futures trading operations. There are public API
55

66
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
77

8-
- API version: 4.19.4
9-
- Package version: 4.19.4
8+
- API version: 4.20.0
9+
- Package version: 4.20.0
1010
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1111
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)
1212

@@ -209,6 +209,11 @@ Class | Method | HTTP request | Description
209209
*SpotApi* | [**get_order**](docs/SpotApi.md#get_order) | **GET** /spot/orders/{order_id} | Get a single order
210210
*SpotApi* | [**cancel_order**](docs/SpotApi.md#cancel_order) | **DELETE** /spot/orders/{order_id} | Cancel a single order
211211
*SpotApi* | [**list_my_trades**](docs/SpotApi.md#list_my_trades) | **GET** /spot/my_trades | List personal trading history
212+
*SpotApi* | [**list_spot_price_triggered_orders**](docs/SpotApi.md#list_spot_price_triggered_orders) | **GET** /spot/price_orders | Retrieve running auto order list
213+
*SpotApi* | [**create_spot_price_triggered_order**](docs/SpotApi.md#create_spot_price_triggered_order) | **POST** /spot/price_orders | Create a price-triggered order
214+
*SpotApi* | [**cancel_spot_price_triggered_order_list**](docs/SpotApi.md#cancel_spot_price_triggered_order_list) | **DELETE** /spot/price_orders | Cancel all open orders
215+
*SpotApi* | [**get_spot_price_triggered_order**](docs/SpotApi.md#get_spot_price_triggered_order) | **GET** /spot/price_orders/{order_id} | Get a single order
216+
*SpotApi* | [**cancel_spot_price_triggered_order**](docs/SpotApi.md#cancel_spot_price_triggered_order) | **DELETE** /spot/price_orders/{order_id} | Cancel a single order
212217
*WalletApi* | [**get_deposit_address**](docs/WalletApi.md#get_deposit_address) | **GET** /wallet/deposit_address | Generate currency deposit address
213218
*WalletApi* | [**list_withdrawals**](docs/WalletApi.md#list_withdrawals) | **GET** /wallet/withdrawals | Retrieve withdrawal records
214219
*WalletApi* | [**list_deposits**](docs/WalletApi.md#list_deposits) | **GET** /wallet/deposits | Retrieve deposit records
@@ -269,6 +274,9 @@ Class | Method | HTTP request | Description
269274
- [RepayRequest](docs/RepayRequest.md)
270275
- [Repayment](docs/Repayment.md)
271276
- [SpotAccount](docs/SpotAccount.md)
277+
- [SpotPricePutOrder](docs/SpotPricePutOrder.md)
278+
- [SpotPriceTrigger](docs/SpotPriceTrigger.md)
279+
- [SpotPriceTriggeredOrder](docs/SpotPriceTriggeredOrder.md)
272280
- [SubAccountBalance](docs/SubAccountBalance.md)
273281
- [SubAccountTransfer](docs/SubAccountTransfer.md)
274282
- [Ticker](docs/Ticker.md)

docs/CancelOrder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Info of order to be cancelled
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**currency_pair** | **str** | Order currency pair |
8-
**id** | **str** | Order ID |
8+
**id** | **str** | Order ID or user custom ID. Custom ID are accepted only within 30 minutes after order creation |
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1111

docs/CurrencyPair.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
1313
**amount_precision** | **int** | Amount scale | [optional]
1414
**precision** | **int** | Price scale | [optional]
1515
**trade_status** | **str** | How currency pair can be traded - untradable: cannot be bought or sold - buyable: can be bought - sellable: can be sold - tradable: can be bought or sold | [optional]
16+
**sell_start** | **int** | 允许卖出时间,秒级 Unix 时间戳 | [optional]
17+
**buy_start** | **int** | 允许买入时间,秒级 Unix 时间戳 | [optional]
1618

1719
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1820

docs/FuturesApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ api_client = gate_api.ApiClient(configuration)
17821782
# Create an instance of the API class
17831783
api_instance = gate_api.FuturesApi(api_client)
17841784
settle = 'usdt' # str | Settle currency
1785-
order_id = '12345' # str | ID returned on order successfully being created
1785+
order_id = '12345' # str | Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID are accepted only in the first 30 minutes after order creation.After that, only order ID is accepted.
17861786

17871787
try:
17881788
# Get a single order
@@ -1799,7 +1799,7 @@ except ApiException as e:
17991799
Name | Type | Description | Notes
18001800
------------- | ------------- | ------------- | -------------
18011801
**settle** | **str**| Settle currency |
1802-
**order_id** | **str**| ID returned on order successfully being created |
1802+
**order_id** | **str**| Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID are accepted only in the first 30 minutes after order creation.After that, only order ID is accepted. |
18031803

18041804
### Return type
18051805

@@ -1851,7 +1851,7 @@ api_client = gate_api.ApiClient(configuration)
18511851
# Create an instance of the API class
18521852
api_instance = gate_api.FuturesApi(api_client)
18531853
settle = 'usdt' # str | Settle currency
1854-
order_id = '12345' # str | ID returned on order successfully being created
1854+
order_id = '12345' # str | Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID are accepted only in the first 30 minutes after order creation.After that, only order ID is accepted.
18551855

18561856
try:
18571857
# Cancel a single order
@@ -1868,7 +1868,7 @@ except ApiException as e:
18681868
Name | Type | Description | Notes
18691869
------------- | ------------- | ------------- | -------------
18701870
**settle** | **str**| Settle currency |
1871-
**order_id** | **str**| ID returned on order successfully being created |
1871+
**order_id** | **str**| Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID are accepted only in the first 30 minutes after order creation.After that, only order ID is accepted. |
18721872

18731873
### Return type
18741874

0 commit comments

Comments
 (0)