Skip to content

Commit 673cb75

Browse files
committed
add point_type in TradeFee; add withdraw status api
1 parent 1279243 commit 673cb75

17 files changed

Lines changed: 997 additions & 411 deletions

README.md

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

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

6-
- API version: 4.15.3
7-
- Package version: 4.15.3
6+
- API version: 4.15.4
7+
- Package version: 4.15.4
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)
1010

@@ -201,6 +201,7 @@ Class | Method | HTTP request | Description
201201
*WalletApi* | [**transfer**](docs/WalletApi.md#transfer) | **POST** /wallet/transfers | Transfer between trading accounts
202202
*WalletApi* | [**list_sub_account_transfers**](docs/WalletApi.md#list_sub_account_transfers) | **GET** /wallet/sub_account_transfers | Transfer records between main and sub accounts
203203
*WalletApi* | [**transfer_with_sub_account**](docs/WalletApi.md#transfer_with_sub_account) | **POST** /wallet/sub_account_transfers | Transfer between main and sub accounts
204+
*WalletApi* | [**list_withdraw_status**](docs/WalletApi.md#list_withdraw_status) | **GET** /wallet/withdraw_status | Retrieve withdrawal status
204205
*WithdrawalApi* | [**withdraw**](docs/WithdrawalApi.md#withdraw) | **POST** /withdrawals | Withdraw
205206

206207

@@ -254,6 +255,7 @@ Class | Method | HTTP request | Description
254255
- [TradeFee](docs/TradeFee.md)
255256
- [Transfer](docs/Transfer.md)
256257
- [TriggerOrderResponse](docs/TriggerOrderResponse.md)
258+
- [WithdrawStatus](docs/WithdrawStatus.md)
257259

258260

259261
## Documentation For Authorization

docs/TradeFee.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**gt_taker_fee** | **str** | Taker fee rate if using GT deduction. It will be 0 if GT deduction is disabled | [optional]
1111
**gt_maker_fee** | **str** | Maker fee rate if using GT deduction. It will be 0 if GT deduction is disabled | [optional]
1212
**loan_fee** | **str** | Loan fee rate of margin lending | [optional]
13+
**point_type** | **str** | Point type. 0 - Initial version. 1 - new version since 202009 | [optional]
1314

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

docs/WalletApi.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Method | HTTP request | Description
1010
[**transfer**](WalletApi.md#transfer) | **POST** /wallet/transfers | Transfer between trading accounts
1111
[**list_sub_account_transfers**](WalletApi.md#list_sub_account_transfers) | **GET** /wallet/sub_account_transfers | Transfer records between main and sub accounts
1212
[**transfer_with_sub_account**](WalletApi.md#transfer_with_sub_account) | **POST** /wallet/sub_account_transfers | Transfer between main and sub accounts
13+
[**list_withdraw_status**](WalletApi.md#list_withdraw_status) | **GET** /wallet/withdraw_status | Retrieve withdrawal status
1314

1415

1516
# **get_deposit_address**
@@ -444,3 +445,70 @@ void (empty response body)
444445

445446
[[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)
446447

448+
# **list_withdraw_status**
449+
> list[WithdrawStatus] list_withdraw_status(currency=currency)
450+
451+
Retrieve withdrawal status
452+
453+
### Example
454+
455+
* Api Key Authentication (apiv4):
456+
```python
457+
from __future__ import print_function
458+
import gate_api
459+
from gate_api.exceptions import ApiException, GateApiException
460+
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
461+
# See configuration.py for a list of all supported configuration parameters.
462+
# The client must configure the authentication and authorization parameters
463+
# in accordance with the API server security policy.
464+
# Examples for each auth method are provided below, use the example that
465+
# satisfies your auth use case.
466+
467+
# Configure APIv4 key authorization
468+
configuration = gate_api.Configuration(
469+
host = "https://api.gateio.ws/api/v4",
470+
key = "YOU_API_KEY",
471+
secret = "YOUR_API_SECRET"
472+
)
473+
474+
api_client = gate_api.ApiClient(configuration)
475+
# Create an instance of the API class
476+
api_instance = gate_api.WalletApi(api_client)
477+
currency = 'BTC' # str | Retrieved specified currency related data (optional)
478+
479+
try:
480+
# Retrieve withdrawal status
481+
api_response = api_instance.list_withdraw_status(currency=currency)
482+
print(api_response)
483+
except GateApiException as ex:
484+
print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message))
485+
except ApiException as e:
486+
print("Exception when calling WalletApi->list_withdraw_status: %s\n" % e)
487+
```
488+
489+
### Parameters
490+
491+
Name | Type | Description | Notes
492+
------------- | ------------- | ------------- | -------------
493+
**currency** | **str**| Retrieved specified currency related data | [optional]
494+
495+
### Return type
496+
497+
[**list[WithdrawStatus]**](WithdrawStatus.md)
498+
499+
### Authorization
500+
501+
[apiv4](../README.md#apiv4)
502+
503+
### HTTP request headers
504+
505+
- **Content-Type**: Not defined
506+
- **Accept**: application/json
507+
508+
### HTTP response details
509+
| Status code | Description | Response headers |
510+
|-------------|-------------|------------------|
511+
**200** | List retrieved | - |
512+
513+
[[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)
514+

docs/WithdrawStatus.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# WithdrawStatus
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**currency** | **str** | Currency | [optional]
7+
**name** | **str** | Currency name | [optional]
8+
**name_cn** | **str** | Currency Chinese name | [optional]
9+
**deposit** | **str** | Deposits fee | [optional]
10+
**withdraw_percent** | **str** | Withdrawal fee rate percentage | [optional]
11+
**withdraw_fix** | **str** | Fixed withdrawal fee | [optional]
12+
**withdraw_day_limit** | **str** | Daily allowed withdrawal amount | [optional]
13+
**withdraw_amount_mini** | **str** | Minimum withdrawal amount | [optional]
14+
**withdraw_day_limit_remain** | **str** | Daily withdrawal amount left | [optional]
15+
**withdraw_eachtime_limit** | **str** | Maximum amount for each withdrawal | [optional]
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

gate_api/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "4.15.3"
17+
__version__ = "4.15.4"
1818

1919
# import apis into sdk package
2020
from gate_api.api.delivery_api import DeliveryApi
@@ -82,3 +82,4 @@
8282
from gate_api.models.trade_fee import TradeFee
8383
from gate_api.models.transfer import Transfer
8484
from gate_api.models.trigger_order_response import TriggerOrderResponse
85+
from gate_api.models.withdraw_status import WithdrawStatus

0 commit comments

Comments
 (0)