Skip to content

Commit 03cc882

Browse files
committed
release 4.47.0
1 parent 442477d commit 03cc882

150 files changed

Lines changed: 13866 additions & 448 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 62 additions & 10 deletions
Large diffs are not rendered by default.

docs/AccountApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Name | Type | Description | Notes
354354
[[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)
355355

356356
# **delete_stp_group_users**
357-
> list[StpGroupUser] delete_stp_group_users(stp_id, request_body)
357+
> list[StpGroupUser] delete_stp_group_users(stp_id, user_id)
358358
359359
Delete the user in the STP group
360360

@@ -385,11 +385,11 @@ api_client = gate_api.ApiClient(configuration)
385385
# Create an instance of the API class
386386
api_instance = gate_api.AccountApi(api_client)
387387
stp_id = 1 # int | STP Group ID
388-
request_body = [[1,2,3]] # list[int] | User ID
388+
user_id = 1 # int | STP user ID, multiple can be separated by commas
389389

390390
try:
391391
# Delete the user in the STP group
392-
api_response = api_instance.delete_stp_group_users(stp_id, request_body)
392+
api_response = api_instance.delete_stp_group_users(stp_id, user_id)
393393
print(api_response)
394394
except GateApiException as ex:
395395
print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message))
@@ -402,7 +402,7 @@ except ApiException as e:
402402
Name | Type | Description | Notes
403403
------------- | ------------- | ------------- | -------------
404404
**stp_id** | **int**| STP Group ID |
405-
**request_body** | [**list[int]**](int.md)| User ID |
405+
**user_id** | **int**| STP user ID, multiple can be separated by commas |
406406

407407
### Return type
408408

@@ -414,7 +414,7 @@ Name | Type | Description | Notes
414414

415415
### HTTP request headers
416416

417-
- **Content-Type**: application/json
417+
- **Content-Type**: Not defined
418418
- **Accept**: application/json
419419

420420
### HTTP response details

docs/AccountBalance.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**amount** | **str** | Account total balance amount | [optional]
88
**currency** | **str** | Currency | [optional]
9+
**unrealised_pnl** | **str** | Unrealised_pnl, this field will only appear in futures, options, delivery, and total accounts | [optional]
10+
**borrowed** | **str** | Borrowed,this field will only appear in margin and cross_margin accounts | [optional]
911

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

docs/BatchOrder.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Batch order details
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**order_id** | **str** | Order ID | [optional]
8+
**amend_text** | **str** | The custom data that the user remarked when amending the order | [optional]
79
**text** | **str** | User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 28 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
810
**succeeded** | **bool** | Whether the batch of orders succeeded | [optional]
911
**label** | **str** | Error label, if any, otherwise an empty string | [optional]
@@ -23,10 +25,12 @@ Name | Type | Description | Notes
2325
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee - fok: FillOrKill, fill either completely or none | [optional] [default to 'gtc']
2426
**iceberg** | **str** | Amount to display for the iceberg order. Null or 0 for normal orders. Hiding all amount is not supported. | [optional]
2527
**auto_borrow** | **bool** | Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough. | [optional]
26-
**auto_repay** | **bool** | Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. `auto_borrow` and `auto_repay` cannot be both set to true in one order. | [optional]
28+
**auto_repay** | **bool** | Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. `auto_borrow` and `auto_repay` can be both set to true in one order. | [optional]
2729
**left** | **str** | Amount left to fill | [optional] [readonly]
30+
**filled_amount** | **str** | Amount traded to fill | [optional] [readonly]
2831
**fill_price** | **str** | Total filled in quote currency. Deprecated in favor of `filled_total` | [optional] [readonly]
2932
**filled_total** | **str** | Total filled in quote currency | [optional] [readonly]
33+
**avg_deal_price** | **str** | Average fill price | [optional] [readonly]
3034
**fee** | **str** | Fee deducted | [optional] [readonly]
3135
**fee_currency** | **str** | Fee currency unit | [optional] [readonly]
3236
**point_fee** | **str** | Points used to deduct fee | [optional] [readonly]

docs/BorrowCurrencyInfo.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# BorrowCurrencyInfo
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**currency** | **str** | Currency | [optional]
7+
**index_price** | **str** | Currency Index Price | [optional]
8+
**left_repay_principal** | **str** | outstanding principal | [optional]
9+
**left_repay_interest** | **str** | outstanding interest | [optional]
10+
**left_repay_usdt** | **str** | Value of left total repayments amount in USDT | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

docs/BrokerCommission.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# BrokerCommission
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**total** | **int** | Total | [optional]
7+
**list** | [**list[BrokerCommission1]**](BrokerCommission1.md) | List of comission history | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/BrokerCommission1.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# BrokerCommission1
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**commission_time** | **int** | Commission Time. (unix timestamp) | [optional]
7+
**user_id** | **int** | User ID | [optional]
8+
**group_name** | **str** | Group name | [optional]
9+
**amount** | **str** | The amount of commission rebates | [optional]
10+
**fee** | **str** | Fee | [optional]
11+
**fee_asset** | **str** | Fee currency | [optional]
12+
**rebate_fee** | **str** | The income from rebates, converted to USDT | [optional]
13+
**source** | **str** | Rebate Type: Spot、Futures、Options | [optional]
14+
**currency_pair** | **str** | Currency pair | [optional]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
18+

docs/BrokerTransaction.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# BrokerTransaction
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**total** | **int** | Total | [optional]
7+
**list** | [**list[BrokerTransaction1]**](BrokerTransaction1.md) | List of transaction history | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/BrokerTransaction1.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# BrokerTransaction1
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**transaction_time** | **int** | Transaction Time. (unix timestamp) | [optional]
7+
**user_id** | **int** | User ID | [optional]
8+
**group_name** | **str** | Group name | [optional]
9+
**fee** | **str** | fee (usdt) | [optional]
10+
**currency_pair** | **str** | Currency pair | [optional]
11+
**amount** | **str** | Commission Amount | [optional]
12+
**fee_asset** | **str** | Fee currency | [optional]
13+
**source** | **str** | Rebate Type: Spot、Futures、Options | [optional]
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)
16+
17+

docs/CancelBatchOrder.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**currency_pair** | **str** | Order currency pair |
88
**id** | **str** | Order ID or user custom ID. Custom ID are accepted only within 30 minutes after order creation |
99
**account** | **str** | If cancelled order is cross margin order or is portfolio margin account's API key, this field must be set and can only be `cross_margin`If cancelled order is cross margin order, this field must be set and can only be `cross_margin` | [optional]
10+
**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]
1011

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

0 commit comments

Comments
 (0)