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
*WalletApi* | [**transfer_with_sub_account**](docs/WalletApi.md#transfer_with_sub_account) | **POST** /wallet/sub_account_transfers | Transfer between main and sub accounts
214
214
*WalletApi* | [**list_withdraw_status**](docs/WalletApi.md#list_withdraw_status) | **GET** /wallet/withdraw_status | Retrieve withdrawal status
Copy file name to clipboardExpand all lines: docs/Contract.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Contract
2
2
3
-
Futures contract details
3
+
Contract detail. USD value per contract: - USDT settled contracts: `quanto_multiplier x token price` - BTC settled contracts:`quanto_multiplier x BTC price x token price`
**id** | **int** | Order Book ID. Increase by 1 on every order book change. Set `with_id=true` to include this field in response | [optional]
6
7
**asks** | [**list[FuturesOrderBookItem]**](FuturesOrderBookItem.md) | Asks order depth |
7
8
**bids** | [**list[FuturesOrderBookItem]**](FuturesOrderBookItem.md) | Bids order depth |
**chain** | **str** | Name of the chain used in withdrawals | [optional]
14
15
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)
[**transfer_with_sub_account**](WalletApi.md#transfer_with_sub_account) | **POST** /wallet/sub_account_transfers | Transfer between main and sub accounts
13
13
[**list_withdraw_status**](WalletApi.md#list_withdraw_status) | **GET** /wallet/withdraw_status | Retrieve withdrawal status
14
14
[**list_sub_account_balances**](WalletApi.md#list_sub_account_balances) | **GET** /wallet/sub_account_balances | Retrieve sub account balances
15
+
[**get_trade_fee**](WalletApi.md#get_trade_fee) | **GET** /wallet/fee | Retrieve personal trading fee
15
16
16
17
17
18
# **get_deposit_address**
@@ -580,3 +581,66 @@ Name | Type | Description | Notes
580
581
581
582
[[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)
582
583
584
+
# **get_trade_fee**
585
+
> TradeFee get_trade_fee()
586
+
587
+
Retrieve personal trading fee
588
+
589
+
### Example
590
+
591
+
* Api Key Authentication (apiv4):
592
+
```python
593
+
from__future__import print_function
594
+
import gate_api
595
+
from gate_api.exceptions import ApiException, GateApiException
596
+
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
597
+
# See configuration.py for a list of all supported configuration parameters.
598
+
# The client must configure the authentication and authorization parameters
599
+
# in accordance with the API server security policy.
600
+
# Examples for each auth method are provided below, use the example that
601
+
# satisfies your auth use case.
602
+
603
+
# Configure APIv4 key authorization
604
+
configuration = gate_api.Configuration(
605
+
host="https://api.gateio.ws/api/v4",
606
+
key="YOU_API_KEY",
607
+
secret="YOUR_API_SECRET"
608
+
)
609
+
610
+
api_client = gate_api.ApiClient(configuration)
611
+
# Create an instance of the API class
612
+
api_instance = gate_api.WalletApi(api_client)
613
+
614
+
try:
615
+
# Retrieve personal trading fee
616
+
api_response = api_instance.get_trade_fee()
617
+
print(api_response)
618
+
except GateApiException as ex:
619
+
print("Gate api exception, label: %s, message: %s\n"% (ex.label, ex.message))
620
+
except ApiException as e:
621
+
print("Exception when calling WalletApi->get_trade_fee: %s\n"% e)
622
+
```
623
+
624
+
### Parameters
625
+
This endpoint does not need any parameter.
626
+
627
+
### Return type
628
+
629
+
[**TradeFee**](TradeFee.md)
630
+
631
+
### Authorization
632
+
633
+
[apiv4](../README.md#apiv4)
634
+
635
+
### HTTP request headers
636
+
637
+
-**Content-Type**: Not defined
638
+
-**Accept**: application/json
639
+
640
+
### HTTP response details
641
+
| Status code | Description | Response headers |
642
+
|-------------|-------------|------------------|
643
+
**200** | Successfully retrieved | - |
644
+
645
+
[[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