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
[**set_debit_fee**](AccountApi.md#set_debit_fee) | **POST** /account/debit_fee | Set GT deduction.
13
16
14
17
15
18
# **get_account_detail**
@@ -75,6 +78,69 @@ This endpoint does not need any parameter.
75
78
76
79
[[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)
77
80
81
+
# **get_account_rate_limit**
82
+
> list[AccountRateLimit] get_account_rate_limit()
83
+
84
+
Get user transaction rate limit information
85
+
86
+
### Example
87
+
88
+
* Api Key Authentication (apiv4):
89
+
```python
90
+
from__future__import print_function
91
+
import gate_api
92
+
from gate_api.exceptions import ApiException, GateApiException
93
+
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
94
+
# See configuration.py for a list of all supported configuration parameters.
95
+
# The client must configure the authentication and authorization parameters
96
+
# in accordance with the API server security policy.
97
+
# Examples for each auth method are provided below, use the example that
print("Gate api exception, label: %s, message: %s\n"% (ex.label, ex.message))
117
+
except ApiException as e:
118
+
print("Exception when calling AccountApi->get_account_rate_limit: %s\n"% e)
119
+
```
120
+
121
+
### Parameters
122
+
This endpoint does not need any parameter.
123
+
124
+
### Return type
125
+
126
+
[**list[AccountRateLimit]**](AccountRateLimit.md)
127
+
128
+
### Authorization
129
+
130
+
[apiv4](../README.md#apiv4)
131
+
132
+
### HTTP request headers
133
+
134
+
-**Content-Type**: Not defined
135
+
-**Accept**: application/json
136
+
137
+
### HTTP response details
138
+
| Status code | Description | Response headers |
139
+
|-------------|-------------|------------------|
140
+
**200** | Successful | - |
141
+
142
+
[[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)
143
+
78
144
# **list_stp_groups**
79
145
> list[StpGroup] list_stp_groups(name=name)
80
146
@@ -424,3 +490,136 @@ Name | Type | Description | Notes
424
490
425
491
[[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)
426
492
493
+
# **get_debit_fee**
494
+
> InlineResponse200 get_debit_fee()
495
+
496
+
Query GT deduction configuration.
497
+
498
+
Query the current GT deduction configuration for the account.
499
+
500
+
### Example
501
+
502
+
* Api Key Authentication (apiv4):
503
+
```python
504
+
from__future__import print_function
505
+
import gate_api
506
+
from gate_api.exceptions import ApiException, GateApiException
507
+
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
508
+
# See configuration.py for a list of all supported configuration parameters.
509
+
# The client must configure the authentication and authorization parameters
510
+
# in accordance with the API server security policy.
511
+
# Examples for each auth method are provided below, use the example that
512
+
# satisfies your auth use case.
513
+
514
+
# Configure APIv4 key authorization
515
+
configuration = gate_api.Configuration(
516
+
host="https://api.gateio.ws/api/v4",
517
+
key="YOU_API_KEY",
518
+
secret="YOUR_API_SECRET"
519
+
)
520
+
521
+
api_client = gate_api.ApiClient(configuration)
522
+
# Create an instance of the API class
523
+
api_instance = gate_api.AccountApi(api_client)
524
+
525
+
try:
526
+
# Query GT deduction configuration.
527
+
api_response = api_instance.get_debit_fee()
528
+
print(api_response)
529
+
except GateApiException as ex:
530
+
print("Gate api exception, label: %s, message: %s\n"% (ex.label, ex.message))
531
+
except ApiException as e:
532
+
print("Exception when calling AccountApi->get_debit_fee: %s\n"% e)
533
+
```
534
+
535
+
### Parameters
536
+
This endpoint does not need any parameter.
537
+
538
+
### Return type
539
+
540
+
[**InlineResponse200**](InlineResponse200.md)
541
+
542
+
### Authorization
543
+
544
+
[apiv4](../README.md#apiv4)
545
+
546
+
### HTTP request headers
547
+
548
+
-**Content-Type**: Not defined
549
+
-**Accept**: application/json
550
+
551
+
### HTTP response details
552
+
| Status code | Description | Response headers |
553
+
|-------------|-------------|------------------|
554
+
**200** | Success | - |
555
+
556
+
[[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)
557
+
558
+
# **set_debit_fee**
559
+
> set_debit_fee(inline_object)
560
+
561
+
Set GT deduction.
562
+
563
+
Enable or disable GT deduction for the current account.
564
+
565
+
### Example
566
+
567
+
* Api Key Authentication (apiv4):
568
+
```python
569
+
from__future__import print_function
570
+
import gate_api
571
+
from gate_api.exceptions import ApiException, GateApiException
572
+
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
573
+
# See configuration.py for a list of all supported configuration parameters.
574
+
# The client must configure the authentication and authorization parameters
575
+
# in accordance with the API server security policy.
576
+
# Examples for each auth method are provided below, use the example that
[[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)
**copy_trading_role** | **int** | User role: 0 - Ordinary user 1 - Order leader 2 - Follower 3 - Order leader and follower | [optional]
12
13
13
14
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**main_ratio** | **str** | Total transaction ratio of main account | [optional]
9
+
**updated_at** | **str** | Update time | [optional]
10
+
11
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: docs/BatchAmendItem.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
**amount** | **str** | trade amount, only one of amount and price can be specified | [optional]
11
11
**price** | **str** | trade price, only one of amount and price can be specified | [optional]
12
12
**amend_text** | **str** | Custom info during amending order | [optional]
13
+
**action_mode** | **str** | Processing Mode: When placing an order, different fields are returned based on action_mode. This field is only valid during the request and is not included in the response result ACK: Asynchronous mode, only returns key order fields RESULT: No clearing information FULL: Full mode (default) | [optional]
13
14
14
15
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**order_id** | **int** | Order id, order_id and text must contain at least one | [optional]
8
+
**text** | **str** | User-defined order text, at least one of order_id and text must be passed | [optional]
9
+
**size** | **int** | The new order size, including the executed order size. - If it is less than or equal to the executed quantity, the order will be cancelled. - The new order direction must be consistent with the original one. - The size of the closing order cannot be modified. - For orders that only reduce positions, if the size is increased, other orders that only reduce positions may be kicked out. - If the price is not modified, reducing the size will not affect the depth of the queue, and increasing the size will place it at the end of the current price. | [optional]
10
+
**price** | **str** | New order price. | [optional]
11
+
**amend_text** | **str** | Custom info during amending order | [optional]
12
+
13
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: docs/BatchFuturesOrder.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
**user** | **int** | User ID | [optional][readonly]
12
12
**create_time** | **float** | Creation time of order | [optional][readonly]
13
13
**finish_time** | **float** | Order finished time. Not returned if order is open | [optional][readonly]
14
-
**finish_as** | **str** | How the order was finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is `IOC`, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while `reduce-only` set- position_closed: cancelled because of position close - stp: cancelled because self trade prevention | [optional][readonly]
14
+
**finish_as** | **str** | How the order was finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is `IOC`, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while `reduce-only` set- position_closed: cancelled because of position close - position_closed: canceled because the position was closed - reduce_out: only reduce positions by excluding hard-to-fill orders - stp: cancelled because self trade prevention | [optional][readonly]
15
15
**status** | **str** | Order status - `open`: waiting to be traded - `finished`: finished | [optional][readonly]
**position_size** | **int** | Current total long position size | [optional]
36
36
**config_change_time** | **float** | Last changed time of configuration | [optional]
37
-
**in_delisting** | **bool** | Contract is delisting | [optional]
37
+
**in_delisting** | **bool** | `in_delisting=true` And when position_size>0, it means the contract is in the offline transition period `in_delisting=true` And when position_size=0, it means the contract is offline | [optional]
38
38
**orders_limit** | **int** | Maximum number of open orders | [optional]
39
39
**enable_bonus** | **bool** | Whether bouns is enabled | [optional]
**is_all** | **bool** | Whether to exchange all | [optional]
8
9
9
10
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[**list_delivery_position_close**](DeliveryApi.md#list_delivery_position_close) | **GET** /delivery/{settle}/position_close | List position close history
28
28
[**list_delivery_liquidates**](DeliveryApi.md#list_delivery_liquidates) | **GET** /delivery/{settle}/liquidates | List liquidation history
29
29
[**list_delivery_settlements**](DeliveryApi.md#list_delivery_settlements) | **GET** /delivery/{settle}/settlements | List settlement history
30
+
[**list_delivery_risk_limit_tiers**](DeliveryApi.md#list_delivery_risk_limit_tiers) | **GET** /delivery/{settle}/risk_limit_tiers | List risk limit tiers
30
31
[**list_price_triggered_delivery_orders**](DeliveryApi.md#list_price_triggered_delivery_orders) | **GET** /delivery/{settle}/price_orders | List all auto orders
31
32
[**create_price_triggered_delivery_order**](DeliveryApi.md#create_price_triggered_delivery_order) | **POST** /delivery/{settle}/price_orders | Create a price-triggered order
32
33
[**cancel_price_triggered_delivery_order_list**](DeliveryApi.md#cancel_price_triggered_delivery_order_list) | **DELETE** /delivery/{settle}/price_orders | Cancel all open orders
@@ -1630,6 +1631,72 @@ Name | Type | Description | Notes
1630
1631
1631
1632
[[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)
When the 'contract' parameter is not passed, the default is to query the risk limits for the top 100 markets.'Limit' and 'offset' correspond to pagination queries at the market level, not to the length of the returned array. This only takes effect when the 'contract' parameter is empty.
1640
+
1641
+
### Example
1642
+
1643
+
```python
1644
+
from__future__import print_function
1645
+
import gate_api
1646
+
from gate_api.exceptions import ApiException, GateApiException
1647
+
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
1648
+
# See configuration.py for a list of all supported configuration parameters.
[[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)
0 commit comments