Skip to content

Commit 9181dc8

Browse files
author
gateio
committed
update to v6.91.0
1 parent 0752f9e commit 9181dc8

20 files changed

+106
-146
lines changed

README.md

+19-20
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ APIv4 provides spot, margin and futures trading operations. There are public API
77
## Overview
88
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
99

10-
- API version: 4.90.0
11-
- Package version: 6.90.0
10+
- API version: 4.91.0
11+
- Package version: 6.91.0
1212
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1313
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)
1414

@@ -215,19 +215,19 @@ Class | Method | HTTP request | Description
215215
*MarginApi* | [**GetAutoRepayStatus**](docs/MarginApi.md#getautorepaystatus) | **Get** /margin/auto_repay | Retrieve user auto repayment setting
216216
*MarginApi* | [**SetAutoRepay**](docs/MarginApi.md#setautorepay) | **Post** /margin/auto_repay | Update user's auto repayment setting
217217
*MarginApi* | [**GetMarginTransferable**](docs/MarginApi.md#getmargintransferable) | **Get** /margin/transferable | Get the max transferable amount for a specific margin currency
218-
*MarginApi* | [**ListCrossMarginCurrencies**](docs/MarginApi.md#listcrossmargincurrencies) | **Get** /margin/cross/currencies | Currencies supported by cross margin.
219-
*MarginApi* | [**GetCrossMarginCurrency**](docs/MarginApi.md#getcrossmargincurrency) | **Get** /margin/cross/currencies/{currency} | Retrieve detail of one single currency supported by cross margin
220-
*MarginApi* | [**GetCrossMarginAccount**](docs/MarginApi.md#getcrossmarginaccount) | **Get** /margin/cross/accounts | Retrieve cross margin account
221-
*MarginApi* | [**ListCrossMarginAccountBook**](docs/MarginApi.md#listcrossmarginaccountbook) | **Get** /margin/cross/account_book | Retrieve cross margin account change history
222-
*MarginApi* | [**ListCrossMarginLoans**](docs/MarginApi.md#listcrossmarginloans) | **Get** /margin/cross/loans | List cross margin borrow history
223-
*MarginApi* | [**CreateCrossMarginLoan**](docs/MarginApi.md#createcrossmarginloan) | **Post** /margin/cross/loans | Create a cross margin borrow loan
224-
*MarginApi* | [**GetCrossMarginLoan**](docs/MarginApi.md#getcrossmarginloan) | **Get** /margin/cross/loans/{loan_id} | Retrieve single borrow loan detail
225-
*MarginApi* | [**ListCrossMarginRepayments**](docs/MarginApi.md#listcrossmarginrepayments) | **Get** /margin/cross/repayments | Retrieve cross margin repayments
226-
*MarginApi* | [**RepayCrossMarginLoan**](docs/MarginApi.md#repaycrossmarginloan) | **Post** /margin/cross/repayments | Cross margin repayments
227-
*MarginApi* | [**GetCrossMarginInterestRecords**](docs/MarginApi.md#getcrossmargininterestrecords) | **Get** /margin/cross/interest_records | Interest records for the cross margin account
228-
*MarginApi* | [**GetCrossMarginTransferable**](docs/MarginApi.md#getcrossmargintransferable) | **Get** /margin/cross/transferable | Get the max transferable amount for a specific cross margin currency
229-
*MarginApi* | [**GetCrossMarginEstimateRate**](docs/MarginApi.md#getcrossmarginestimaterate) | **Get** /margin/cross/estimate_rate | Estimated interest rates
230-
*MarginApi* | [**GetCrossMarginBorrowable**](docs/MarginApi.md#getcrossmarginborrowable) | **Get** /margin/cross/borrowable | Get the max borrowable amount for a specific cross margin currency
218+
*MarginApi* | [**ListCrossMarginCurrencies**](docs/MarginApi.md#listcrossmargincurrencies) | **Get** /margin/cross/currencies | Currencies supported by cross margin.(deprecated)
219+
*MarginApi* | [**GetCrossMarginCurrency**](docs/MarginApi.md#getcrossmargincurrency) | **Get** /margin/cross/currencies/{currency} | Retrieve detail of one single currency supported by cross margin. (deprecated)
220+
*MarginApi* | [**GetCrossMarginAccount**](docs/MarginApi.md#getcrossmarginaccount) | **Get** /margin/cross/accounts | Retrieve cross margin account. (deprecated)
221+
*MarginApi* | [**ListCrossMarginAccountBook**](docs/MarginApi.md#listcrossmarginaccountbook) | **Get** /margin/cross/account_book | Retrieve cross margin account change history. (deprecated)
222+
*MarginApi* | [**ListCrossMarginLoans**](docs/MarginApi.md#listcrossmarginloans) | **Get** /margin/cross/loans | List cross margin borrow history. (deprecated)
223+
*MarginApi* | [**CreateCrossMarginLoan**](docs/MarginApi.md#createcrossmarginloan) | **Post** /margin/cross/loans | Create a cross margin borrow loan. (deprecated)
224+
*MarginApi* | [**GetCrossMarginLoan**](docs/MarginApi.md#getcrossmarginloan) | **Get** /margin/cross/loans/{loan_id} | Retrieve single borrow loan detail. (deprecated)
225+
*MarginApi* | [**ListCrossMarginRepayments**](docs/MarginApi.md#listcrossmarginrepayments) | **Get** /margin/cross/repayments | Retrieve cross margin repayments. (deprecated)
226+
*MarginApi* | [**RepayCrossMarginLoan**](docs/MarginApi.md#repaycrossmarginloan) | **Post** /margin/cross/repayments | Cross margin repayments. (deprecated)
227+
*MarginApi* | [**GetCrossMarginInterestRecords**](docs/MarginApi.md#getcrossmargininterestrecords) | **Get** /margin/cross/interest_records | Interest records for the cross margin account. (deprecated)
228+
*MarginApi* | [**GetCrossMarginTransferable**](docs/MarginApi.md#getcrossmargintransferable) | **Get** /margin/cross/transferable | Get the max transferable amount for a specific cross margin currency. (deprecated)
229+
*MarginApi* | [**GetCrossMarginEstimateRate**](docs/MarginApi.md#getcrossmarginestimaterate) | **Get** /margin/cross/estimate_rate | Estimated interest rates. (deprecated)
230+
*MarginApi* | [**GetCrossMarginBorrowable**](docs/MarginApi.md#getcrossmarginborrowable) | **Get** /margin/cross/borrowable | Get the max borrowable amount for a specific cross margin currency. (deprecated)
231231
*MarginUniApi* | [**ListUniCurrencyPairs**](docs/MarginUniApi.md#listunicurrencypairs) | **Get** /margin/uni/currency_pairs | List lending markets
232232
*MarginUniApi* | [**GetUniCurrencyPair**](docs/MarginUniApi.md#getunicurrencypair) | **Get** /margin/uni/currency_pairs/{currency_pair} | Get detail of lending market
233233
*MarginUniApi* | [**GetMarginUniEstimateRate**](docs/MarginUniApi.md#getmarginuniestimaterate) | **Get** /margin/uni/estimate_rate | Estimate interest Rate
@@ -335,15 +335,15 @@ Class | Method | HTTP request | Description
335335
*UnifiedApi* | [**CreateUnifiedLoan**](docs/UnifiedApi.md#createunifiedloan) | **Post** /unified/loans | Borrow or repay
336336
*UnifiedApi* | [**ListUnifiedLoanRecords**](docs/UnifiedApi.md#listunifiedloanrecords) | **Get** /unified/loan_records | Get load records
337337
*UnifiedApi* | [**ListUnifiedLoanInterestRecords**](docs/UnifiedApi.md#listunifiedloaninterestrecords) | **Get** /unified/interest_records | List interest records
338-
*UnifiedApi* | [**GetUnifiedRiskUnits**](docs/UnifiedApi.md#getunifiedriskunits) | **Get** /unified/risk_units | Retrieve user risk unit details, only valid in portfolio margin mode
338+
*UnifiedApi* | [**GetUnifiedRiskUnits**](docs/UnifiedApi.md#getunifiedriskunits) | **Get** /unified/risk_units | Get user risk unit details
339339
*UnifiedApi* | [**GetUnifiedMode**](docs/UnifiedApi.md#getunifiedmode) | **Get** /unified/unified_mode | Query mode of the unified account
340340
*UnifiedApi* | [**SetUnifiedMode**](docs/UnifiedApi.md#setunifiedmode) | **Put** /unified/unified_mode | Set mode of the unified account
341341
*UnifiedApi* | [**GetUnifiedEstimateRate**](docs/UnifiedApi.md#getunifiedestimaterate) | **Get** /unified/estimate_rate | Get unified estimate rate
342342
*UnifiedApi* | [**ListCurrencyDiscountTiers**](docs/UnifiedApi.md#listcurrencydiscounttiers) | **Get** /unified/currency_discount_tiers | List currency discount tiers
343343
*UnifiedApi* | [**ListLoanMarginTiers**](docs/UnifiedApi.md#listloanmargintiers) | **Get** /unified/loan_margin_tiers | List loan margin tiers
344344
*UnifiedApi* | [**CalculatePortfolioMargin**](docs/UnifiedApi.md#calculateportfoliomargin) | **Post** /unified/portfolio_calculator | Portfolio margin calculator
345345
*UnifiedApi* | [**GetUserLeverageCurrencyConfig**](docs/UnifiedApi.md#getuserleveragecurrencyconfig) | **Get** /unified/leverage/user_currency_config | Minimum currency leverage that can be set
346-
*UnifiedApi* | [**GetUserLeverageCurrencySetting**](docs/UnifiedApi.md#getuserleveragecurrencysetting) | **Get** /unified/leverage/user_currency_setting | Get the user's currency leverage. If currency is not passed, query all currencies.
346+
*UnifiedApi* | [**GetUserLeverageCurrencySetting**](docs/UnifiedApi.md#getuserleveragecurrencysetting) | **Get** /unified/leverage/user_currency_setting | Get the leverage multiple of the user currency
347347
*UnifiedApi* | [**SetUserLeverageCurrencySetting**](docs/UnifiedApi.md#setuserleveragecurrencysetting) | **Post** /unified/leverage/user_currency_setting | Set the loan currency leverage
348348
*UnifiedApi* | [**GetHistoryLoanRate**](docs/UnifiedApi.md#gethistoryloanrate) | **Get** /unified/history_loan_rate | get historical lending rates
349349
*WalletApi* | [**ListCurrencyChains**](docs/WalletApi.md#listcurrencychains) | **Get** /wallet/currency_chains | List chains supported for specified currency
@@ -429,6 +429,7 @@ Class | Method | HTTP request | Description
429429
- [CurrencyChain](docs/CurrencyChain.md)
430430
- [CurrencyPair](docs/CurrencyPair.md)
431431
- [CurrencyQuota](docs/CurrencyQuota.md)
432+
- [DebitFee](docs/DebitFee.md)
432433
- [DeliveryCandlestick](docs/DeliveryCandlestick.md)
433434
- [DeliveryContract](docs/DeliveryContract.md)
434435
- [DeliverySettlement](docs/DeliverySettlement.md)
@@ -466,9 +467,6 @@ Class | Method | HTTP request | Description
466467
- [FuturesTicker](docs/FuturesTicker.md)
467468
- [FuturesTrade](docs/FuturesTrade.md)
468469
- [IndexConstituent](docs/IndexConstituent.md)
469-
- [InlineObject](docs/InlineObject.md)
470-
- [InlineResponse200](docs/InlineResponse200.md)
471-
- [InlineResponse2001](docs/InlineResponse2001.md)
472470
- [InsuranceRecord](docs/InsuranceRecord.md)
473471
- [LedgerRecord](docs/LedgerRecord.md)
474472
- [LiquidateOrder](docs/LiquidateOrder.md)
@@ -574,6 +572,7 @@ Class | Method | HTTP request | Description
574572
- [TradeFee](docs/TradeFee.md)
575573
- [TransactionId](docs/TransactionId.md)
576574
- [Transfer](docs/Transfer.md)
575+
- [TransferOrderStatus](docs/TransferOrderStatus.md)
577576
- [TriggerOrderResponse](docs/TriggerOrderResponse.md)
578577
- [TriggerTime](docs/TriggerTime.md)
579578
- [UidPushOrder](docs/UidPushOrder.md)

api_account.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -693,16 +693,16 @@ GetDebitFee Query GT deduction configuration.
693693
Query the current GT deduction configuration for the account.
694694
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
695695
696-
@return InlineResponse2001
696+
@return DebitFee
697697
*/
698-
func (a *AccountApiService) GetDebitFee(ctx context.Context) (InlineResponse2001, *http.Response, error) {
698+
func (a *AccountApiService) GetDebitFee(ctx context.Context) (DebitFee, *http.Response, error) {
699699
var (
700700
localVarHTTPMethod = http.MethodGet
701701
localVarPostBody interface{}
702702
localVarFormFileName string
703703
localVarFileName string
704704
localVarFileBytes []byte
705-
localVarReturnValue InlineResponse2001
705+
localVarReturnValue DebitFee
706706
)
707707

708708
// create path and map variables
@@ -783,9 +783,9 @@ func (a *AccountApiService) GetDebitFee(ctx context.Context) (InlineResponse2001
783783
SetDebitFee Set GT deduction.
784784
Enable or disable GT deduction for the current account.
785785
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
786-
- @param inlineObject
786+
- @param debitFee
787787
*/
788-
func (a *AccountApiService) SetDebitFee(ctx context.Context, inlineObject InlineObject) (*http.Response, error) {
788+
func (a *AccountApiService) SetDebitFee(ctx context.Context, debitFee DebitFee) (*http.Response, error) {
789789
var (
790790
localVarHTTPMethod = http.MethodPost
791791
localVarPostBody interface{}
@@ -818,7 +818,7 @@ func (a *AccountApiService) SetDebitFee(ctx context.Context, inlineObject Inline
818818
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
819819
}
820820
// body params
821-
localVarPostBody = &inlineObject
821+
localVarPostBody = &debitFee
822822
if ctx == nil {
823823
ctx = context.Background()
824824
}

api_margin.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ func (a *MarginApiService) GetMarginTransferable(ctx context.Context, currency s
643643
}
644644

645645
/*
646-
ListCrossMarginCurrencies Currencies supported by cross margin.
646+
ListCrossMarginCurrencies Currencies supported by cross margin.(deprecated)
647647
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
648648
649649
@return []CrossMarginCurrency
@@ -727,7 +727,7 @@ func (a *MarginApiService) ListCrossMarginCurrencies(ctx context.Context) ([]Cro
727727
}
728728

729729
/*
730-
GetCrossMarginCurrency Retrieve detail of one single currency supported by cross margin
730+
GetCrossMarginCurrency Retrieve detail of one single currency supported by cross margin. (deprecated)
731731
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
732732
- @param currency Currency name
733733
@@ -814,7 +814,7 @@ func (a *MarginApiService) GetCrossMarginCurrency(ctx context.Context, currency
814814
}
815815

816816
/*
817-
GetCrossMarginAccount Retrieve cross margin account
817+
GetCrossMarginAccount Retrieve cross margin account. (deprecated)
818818
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
819819
820820
@return CrossMarginAccount
@@ -914,7 +914,7 @@ type ListCrossMarginAccountBookOpts struct {
914914
}
915915

916916
/*
917-
ListCrossMarginAccountBook Retrieve cross margin account change history
917+
ListCrossMarginAccountBook Retrieve cross margin account change history. (deprecated)
918918
The record query time range is not allowed to exceed 30 days. When using the limit&page paging function to retrieve data, the maximum number of pages is 100,000, that is, (limit page - 1) <= 100000.
919919
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
920920
- @param optional nil or *ListCrossMarginAccountBookOpts - Optional Parameters:
@@ -1038,7 +1038,7 @@ type ListCrossMarginLoansOpts struct {
10381038
}
10391039

10401040
/*
1041-
ListCrossMarginLoans List cross margin borrow history
1041+
ListCrossMarginLoans List cross margin borrow history. (deprecated)
10421042
Sort by creation time in descending order by default. Set `reverse=false` to return ascending results.
10431043
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
10441044
- @param status Filter by status. Supported values are 2 and 3. (deprecated.)
@@ -1148,7 +1148,7 @@ func (a *MarginApiService) ListCrossMarginLoans(ctx context.Context, status int3
11481148
}
11491149

11501150
/*
1151-
CreateCrossMarginLoan Create a cross margin borrow loan
1151+
CreateCrossMarginLoan Create a cross margin borrow loan. (deprecated)
11521152
Borrow amount cannot be less than currency minimum borrow amount
11531153
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
11541154
- @param crossMarginLoan
@@ -1242,7 +1242,7 @@ func (a *MarginApiService) CreateCrossMarginLoan(ctx context.Context, crossMargi
12421242
}
12431243

12441244
/*
1245-
GetCrossMarginLoan Retrieve single borrow loan detail
1245+
GetCrossMarginLoan Retrieve single borrow loan detail. (deprecated)
12461246
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
12471247
- @param loanId Borrow loan ID
12481248
@@ -1344,7 +1344,7 @@ type ListCrossMarginRepaymentsOpts struct {
13441344
}
13451345

13461346
/*
1347-
ListCrossMarginRepayments Retrieve cross margin repayments
1347+
ListCrossMarginRepayments Retrieve cross margin repayments. (deprecated)
13481348
Sort by creation time in descending order by default. Set `reverse=false` to return ascending results.
13491349
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
13501350
- @param optional nil or *ListCrossMarginRepaymentsOpts - Optional Parameters:
@@ -1456,7 +1456,7 @@ func (a *MarginApiService) ListCrossMarginRepayments(ctx context.Context, localV
14561456
}
14571457

14581458
/*
1459-
RepayCrossMarginLoan Cross margin repayments
1459+
RepayCrossMarginLoan Cross margin repayments. (deprecated)
14601460
When the liquidity of the currency is insufficient and the transaction risk is high, the currency will be disabled, and funds cannot be transferred.When the available balance of cross-margin is insufficient, the balance of the spot account can be used for repayment. Please ensure that the balance of the spot account is sufficient, and system uses cross-margin account for repayment first
14611461
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
14621462
- @param crossMarginRepayRequest
@@ -1559,7 +1559,7 @@ type GetCrossMarginInterestRecordsOpts struct {
15591559
}
15601560

15611561
/*
1562-
GetCrossMarginInterestRecords Interest records for the cross margin account
1562+
GetCrossMarginInterestRecords Interest records for the cross margin account. (deprecated)
15631563
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
15641564
- @param optional nil or *GetCrossMarginInterestRecordsOpts - Optional Parameters:
15651565
- @param "Currency" (optional.String) - Retrieve data of the specified currency
@@ -1670,7 +1670,7 @@ func (a *MarginApiService) GetCrossMarginInterestRecords(ctx context.Context, lo
16701670
}
16711671

16721672
/*
1673-
GetCrossMarginTransferable Get the max transferable amount for a specific cross margin currency
1673+
GetCrossMarginTransferable Get the max transferable amount for a specific cross margin currency. (deprecated)
16741674
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
16751675
- @param currency Retrieve data of the specified currency
16761676
@@ -1762,7 +1762,7 @@ func (a *MarginApiService) GetCrossMarginTransferable(ctx context.Context, curre
17621762
}
17631763

17641764
/*
1765-
GetCrossMarginEstimateRate Estimated interest rates
1765+
GetCrossMarginEstimateRate Estimated interest rates. (deprecated)
17661766
Please note that the interest rates are subject to change based on the borrowing and lending demand, and therefore, the provided rates may not be entirely accurate.
17671767
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
17681768
- @param currencies An array of up to 10 specifying the currency name
@@ -1871,7 +1871,7 @@ func (a *MarginApiService) GetCrossMarginEstimateRate(ctx context.Context, curre
18711871
}
18721872

18731873
/*
1874-
GetCrossMarginBorrowable Get the max borrowable amount for a specific cross margin currency
1874+
GetCrossMarginBorrowable Get the max borrowable amount for a specific cross margin currency. (deprecated)
18751875
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
18761876
- @param currency Retrieve data of the specified currency
18771877

0 commit comments

Comments
 (0)