Skip to content

Commit 6b710e0

Browse files
author
gateio
committed
update to v6.89.0
1 parent 46c11a7 commit 6b710e0

Some content is hidden

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

50 files changed

+109
-6497
lines changed

README.md

Lines changed: 2 additions & 30 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.88.0
9-
- Package version: 4.88.0
8+
- API version: 4.89.0
9+
- Package version: 4.89.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

@@ -136,8 +136,6 @@ Class | Method | HTTP request | Description
136136
*SubAccountApi* | [**unlock_sub_account**](docs/SubAccountApi.md#unlock_sub_account) | **POST** /sub_accounts/{user_id}/unlock | Unlock the sub-account
137137
*SubAccountApi* | [**list_unified_mode**](docs/SubAccountApi.md#list_unified_mode) | **GET** /sub_accounts/unified_mode | Get sub-account mode
138138
*UnifiedApi* | [**list_unified_accounts**](docs/UnifiedApi.md#list_unified_accounts) | **GET** /unified/accounts | Get unified account information
139-
*UnifiedApi* | [**list_unified_account_mode**](docs/UnifiedApi.md#list_unified_account_mode) | **GET** /unified/account_mode | Inquire about unified account mode (deprecated)
140-
*UnifiedApi* | [**set_unified_account_mode**](docs/UnifiedApi.md#set_unified_account_mode) | **POST** /unified/account_mode | Set unified account mode (deprecated)
141139
*UnifiedApi* | [**get_unified_borrowable**](docs/UnifiedApi.md#get_unified_borrowable) | **GET** /unified/borrowable | Query about the maximum borrowing for the unified account
142140
*UnifiedApi* | [**get_unified_transferable**](docs/UnifiedApi.md#get_unified_transferable) | **GET** /unified/transferable | Query about the maximum transferable for the unified account
143141
*UnifiedApi* | [**list_unified_loans**](docs/UnifiedApi.md#list_unified_loans) | **GET** /unified/loans | List loans
@@ -210,7 +208,6 @@ Class | Method | HTTP request | Description
210208
*EarnApi* | [**list_structured_products**](docs/EarnApi.md#list_structured_products) | **GET** /earn/structured/products | Structured Product List
211209
*EarnApi* | [**list_structured_orders**](docs/EarnApi.md#list_structured_orders) | **GET** /earn/structured/orders | Structured Product Order List
212210
*EarnApi* | [**place_structured_order**](docs/EarnApi.md#place_structured_order) | **POST** /earn/structured/orders | Place Structured Product Order
213-
*FlashSwapApi* | [**list_flash_swap_currencies**](docs/FlashSwapApi.md#list_flash_swap_currencies) | **GET** /flash_swap/currencies | List All Supported Currencies In Flash Swap (deprecated)
214211
*FlashSwapApi* | [**list_flash_swap_currency_pair**](docs/FlashSwapApi.md#list_flash_swap_currency_pair) | **GET** /flash_swap/currency_pairs | List All Supported Currency Pairs In Flash Swap
215212
*FlashSwapApi* | [**list_flash_swap_orders**](docs/FlashSwapApi.md#list_flash_swap_orders) | **GET** /flash_swap/orders | List all flash swap orders
216213
*FlashSwapApi* | [**create_flash_swap_order**](docs/FlashSwapApi.md#create_flash_swap_order) | **POST** /flash_swap/orders | Create a flash swap order
@@ -269,21 +266,6 @@ Class | Method | HTTP request | Description
269266
*MarginApi* | [**get_auto_repay_status**](docs/MarginApi.md#get_auto_repay_status) | **GET** /margin/auto_repay | Retrieve user auto repayment setting
270267
*MarginApi* | [**set_auto_repay**](docs/MarginApi.md#set_auto_repay) | **POST** /margin/auto_repay | Update user's auto repayment setting
271268
*MarginApi* | [**get_margin_transferable**](docs/MarginApi.md#get_margin_transferable) | **GET** /margin/transferable | Get the max transferable amount for a specific margin currency
272-
*MarginApi* | [**list_margin_currency_pairs**](docs/MarginApi.md#list_margin_currency_pairs) | **GET** /margin/currency_pairs | List all supported currency pairs supported in margin trading(Deprecated)
273-
*MarginApi* | [**get_margin_currency_pair**](docs/MarginApi.md#get_margin_currency_pair) | **GET** /margin/currency_pairs/{currency_pair} | Query one single margin currency pair(Deprecated)
274-
*MarginApi* | [**list_funding_book**](docs/MarginApi.md#list_funding_book) | **GET** /margin/funding_book | Order book of lending loans(Deprecated)
275-
*MarginApi* | [**list_loans**](docs/MarginApi.md#list_loans) | **GET** /margin/loans | List all loans(Deprecated)
276-
*MarginApi* | [**create_loan**](docs/MarginApi.md#create_loan) | **POST** /margin/loans | Lend or borrow(Deprecated)
277-
*MarginApi* | [**merge_loans**](docs/MarginApi.md#merge_loans) | **POST** /margin/merged_loans | Merge multiple lending loans(Deprecated)
278-
*MarginApi* | [**get_loan**](docs/MarginApi.md#get_loan) | **GET** /margin/loans/{loan_id} | Retrieve one single loan detail(Deprecated)
279-
*MarginApi* | [**cancel_loan**](docs/MarginApi.md#cancel_loan) | **DELETE** /margin/loans/{loan_id} | Cancel lending loan(Deprecated)
280-
*MarginApi* | [**update_loan**](docs/MarginApi.md#update_loan) | **PATCH** /margin/loans/{loan_id} | Modify a loan(Deprecated)
281-
*MarginApi* | [**list_loan_repayments**](docs/MarginApi.md#list_loan_repayments) | **GET** /margin/loans/{loan_id}/repayment | List loan repayment records(Deprecated)
282-
*MarginApi* | [**repay_loan**](docs/MarginApi.md#repay_loan) | **POST** /margin/loans/{loan_id}/repayment | Repay a loan(Deprecated)
283-
*MarginApi* | [**list_loan_records**](docs/MarginApi.md#list_loan_records) | **GET** /margin/loan_records | List repayment records of a specific loan(Deprecated)
284-
*MarginApi* | [**get_loan_record**](docs/MarginApi.md#get_loan_record) | **GET** /margin/loan_records/{loan_record_id} | Get one single loan record(Deprecated)
285-
*MarginApi* | [**update_loan_record**](docs/MarginApi.md#update_loan_record) | **PATCH** /margin/loan_records/{loan_record_id} | Modify a loan record(Deprecated)
286-
*MarginApi* | [**get_margin_borrowable**](docs/MarginApi.md#get_margin_borrowable) | **GET** /margin/borrowable | Get the max borrowable amount for a specific margin currency(Deprecated)
287269
*MarginApi* | [**list_cross_margin_currencies**](docs/MarginApi.md#list_cross_margin_currencies) | **GET** /margin/cross/currencies | Currencies supported by cross margin.
288270
*MarginApi* | [**get_cross_margin_currency**](docs/MarginApi.md#get_cross_margin_currency) | **GET** /margin/cross/currencies/{currency} | Retrieve detail of one single currency supported by cross margin
289271
*MarginApi* | [**get_cross_margin_account**](docs/MarginApi.md#get_cross_margin_account) | **GET** /margin/cross/accounts | Retrieve cross margin account
@@ -467,14 +449,12 @@ Class | Method | HTTP request | Description
467449
- [DualGetOrders](docs/DualGetOrders.md)
468450
- [DualGetPlans](docs/DualGetPlans.md)
469451
- [Eth2Swap](docs/Eth2Swap.md)
470-
- [FlashSwapCurrency](docs/FlashSwapCurrency.md)
471452
- [FlashSwapCurrencyPair](docs/FlashSwapCurrencyPair.md)
472453
- [FlashSwapOrder](docs/FlashSwapOrder.md)
473454
- [FlashSwapOrderPreview](docs/FlashSwapOrderPreview.md)
474455
- [FlashSwapOrderRequest](docs/FlashSwapOrderRequest.md)
475456
- [FlashSwapPreviewRequest](docs/FlashSwapPreviewRequest.md)
476457
- [FundingAccount](docs/FundingAccount.md)
477-
- [FundingBookItem](docs/FundingBookItem.md)
478458
- [FundingRateRecord](docs/FundingRateRecord.md)
479459
- [FutureCancelOrderResult](docs/FutureCancelOrderResult.md)
480460
- [FuturesAccount](docs/FuturesAccount.md)
@@ -505,14 +485,9 @@ Class | Method | HTTP request | Description
505485
- [InsuranceRecord](docs/InsuranceRecord.md)
506486
- [LedgerRecord](docs/LedgerRecord.md)
507487
- [LiquidateOrder](docs/LiquidateOrder.md)
508-
- [Loan](docs/Loan.md)
509-
- [LoanPatch](docs/LoanPatch.md)
510-
- [LoanRecord](docs/LoanRecord.md)
511488
- [MarginAccount](docs/MarginAccount.md)
512489
- [MarginAccountBook](docs/MarginAccountBook.md)
513490
- [MarginAccountCurrency](docs/MarginAccountCurrency.md)
514-
- [MarginBorrowable](docs/MarginBorrowable.md)
515-
- [MarginCurrencyPair](docs/MarginCurrencyPair.md)
516491
- [MarginTiers](docs/MarginTiers.md)
517492
- [MarginTransferable](docs/MarginTransferable.md)
518493
- [MaxUniBorrowable](docs/MaxUniBorrowable.md)
@@ -577,9 +552,7 @@ Class | Method | HTTP request | Description
577552
- [RepayRecordLeftInterest](docs/RepayRecordLeftInterest.md)
578553
- [RepayRecordRepaidCurrency](docs/RepayRecordRepaidCurrency.md)
579554
- [RepayRecordTotalInterest](docs/RepayRecordTotalInterest.md)
580-
- [RepayRequest](docs/RepayRequest.md)
581555
- [RepayResp](docs/RepayResp.md)
582-
- [Repayment](docs/Repayment.md)
583556
- [RiskUnits](docs/RiskUnits.md)
584557
- [SavedAddress](docs/SavedAddress.md)
585558
- [SmallBalance](docs/SmallBalance.md)
@@ -642,7 +615,6 @@ Class | Method | HTTP request | Description
642615
- [UnifiedLoan](docs/UnifiedLoan.md)
643616
- [UnifiedLoanRecord](docs/UnifiedLoanRecord.md)
644617
- [UnifiedMarginTiers](docs/UnifiedMarginTiers.md)
645-
- [UnifiedMode](docs/UnifiedMode.md)
646618
- [UnifiedModeSet](docs/UnifiedModeSet.md)
647619
- [UnifiedPortfolioInput](docs/UnifiedPortfolioInput.md)
648620
- [UnifiedPortfolioOutput](docs/UnifiedPortfolioOutput.md)

docs/FlashSwapApi.md

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,68 +4,13 @@ All URIs are relative to *https://api.gateio.ws/api/v4*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**list_flash_swap_currencies**](FlashSwapApi.md#list_flash_swap_currencies) | **GET** /flash_swap/currencies | List All Supported Currencies In Flash Swap (deprecated)
87
[**list_flash_swap_currency_pair**](FlashSwapApi.md#list_flash_swap_currency_pair) | **GET** /flash_swap/currency_pairs | List All Supported Currency Pairs In Flash Swap
98
[**list_flash_swap_orders**](FlashSwapApi.md#list_flash_swap_orders) | **GET** /flash_swap/orders | List all flash swap orders
109
[**create_flash_swap_order**](FlashSwapApi.md#create_flash_swap_order) | **POST** /flash_swap/orders | Create a flash swap order
1110
[**get_flash_swap_order**](FlashSwapApi.md#get_flash_swap_order) | **GET** /flash_swap/orders/{order_id} | Get a single flash swap order's detail
1211
[**preview_flash_swap_order**](FlashSwapApi.md#preview_flash_swap_order) | **POST** /flash_swap/orders/preview | Initiate a flash swap order preview
1312

1413

15-
# **list_flash_swap_currencies**
16-
> list[FlashSwapCurrency] list_flash_swap_currencies()
17-
18-
List All Supported Currencies In Flash Swap (deprecated)
19-
20-
### Example
21-
22-
```python
23-
from __future__ import print_function
24-
import gate_api
25-
from gate_api.exceptions import ApiException, GateApiException
26-
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
27-
# See configuration.py for a list of all supported configuration parameters.
28-
configuration = gate_api.Configuration(
29-
host = "https://api.gateio.ws/api/v4"
30-
)
31-
32-
api_client = gate_api.ApiClient(configuration)
33-
# Create an instance of the API class
34-
api_instance = gate_api.FlashSwapApi(api_client)
35-
36-
try:
37-
# List All Supported Currencies In Flash Swap (deprecated)
38-
api_response = api_instance.list_flash_swap_currencies()
39-
print(api_response)
40-
except GateApiException as ex:
41-
print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message))
42-
except ApiException as e:
43-
print("Exception when calling FlashSwapApi->list_flash_swap_currencies: %s\n" % e)
44-
```
45-
46-
### Parameters
47-
This endpoint does not need any parameter.
48-
49-
### Return type
50-
51-
[**list[FlashSwapCurrency]**](FlashSwapCurrency.md)
52-
53-
### Authorization
54-
55-
No authorization required
56-
57-
### HTTP request headers
58-
59-
- **Content-Type**: Not defined
60-
- **Accept**: application/json
61-
62-
### HTTP response details
63-
| Status code | Description | Response headers |
64-
|-------------|-------------|------------------|
65-
**200** | Successfully retrieved | - |
66-
67-
[[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)
68-
6914
# **list_flash_swap_currency_pair**
7015
> list[FlashSwapCurrencyPair] list_flash_swap_currency_pair(currency=currency, page=page, limit=limit)
7116

docs/FlashSwapCurrency.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/FundingBookItem.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/Loan.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/LoanPatch.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/LoanRecord.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)