Skip to content

Commit a1346a9

Browse files
author
gateio
committed
update to v6.98.0
1 parent 2309bde commit a1346a9

18 files changed

+310
-120
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## gate-api@6.97.4
1+
## gate-api@6.98.0
22

33
TypeScript NodeJS client for gate-api.
44

@@ -8,10 +8,10 @@ APIv4 provides spot, margin and futures trading operations. There are public API
88

99
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1010

11-
- API version: 4.97.4
11+
- API version: 4.98.0
1212
- Package version:
1313
- Build package: org.openapitools.codegen.languages.TypeScriptNodeClientCodegen
14-
For more information, please visit [https://www.gate.com/page/contacts](https://www.gate.com/page/contacts)
14+
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)
1515

1616
Environment
1717

@@ -146,6 +146,7 @@ Class | Method | HTTP request | Description
146146
*EarnUniApi* | [**switchInterestReinvest**](docs/EarnUniApi.md#switchInterestReinvest) | **PUT** /earn/uni/interest_reinvest | Set interest reinvestment toggle
147147
*EarnUniApi* | [**getUniInterestStatus**](docs/EarnUniApi.md#getUniInterestStatus) | **GET** /earn/uni/interest_status/{currency} | query currency interest compounding status
148148
*EarnUniApi* | [**listUniChart**](docs/EarnUniApi.md#listUniChart) | **GET** /earn/uni/chart | UniLoan currency annualized trend chart
149+
*EarnUniApi* | [**listUniRate**](docs/EarnUniApi.md#listUniRate) | **GET** /earn/uni/rate | Currency estimate annualized interest rate
149150
*FlashSwapApi* | [**listFlashSwapCurrencyPair**](docs/FlashSwapApi.md#listFlashSwapCurrencyPair) | **GET** /flash_swap/currency_pairs | List All Supported Currency Pairs In Flash Swap
150151
*FlashSwapApi* | [**listFlashSwapOrders**](docs/FlashSwapApi.md#listFlashSwapOrders) | **GET** /flash_swap/orders | List all flash swap orders
151152
*FlashSwapApi* | [**createFlashSwapOrder**](docs/FlashSwapApi.md#createFlashSwapOrder) | **POST** /flash_swap/orders | Create a flash swap order
@@ -469,6 +470,7 @@ Class | Method | HTTP request | Description
469470
- [IndexConstituent](docs/IndexConstituent.md)
470471
- [InlineObject](docs/InlineObject.md)
471472
- [InlineResponse200](docs/InlineResponse200.md)
473+
- [InlineResponse2001](docs/InlineResponse2001.md)
472474
- [InsuranceRecord](docs/InsuranceRecord.md)
473475
- [LedgerRecord](docs/LedgerRecord.md)
474476
- [LiquidateOrder](docs/LiquidateOrder.md)
@@ -632,5 +634,5 @@ Class | Method | HTTP request | Description
632634

633635
- **Type**: Gate APIv4
634636

635-
https://www.gate.com/docs/apiv4/en/index.html#apiv4-signed-request-requirements
637+
https://www.gate.io/docs/apiv4/en/index.html#apiv4-signed-request-requirements
636638

api/earnUniApi.ts

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/* tslint:disable:no-unused-locals */
1313
import { CreateUniLend } from '../model/createUniLend';
1414
import { InlineResponse200 } from '../model/inlineResponse200';
15+
import { InlineResponse2001 } from '../model/inlineResponse2001';
1516
import { PatchUniLend } from '../model/patchUniLend';
1617
import { UniCurrency } from '../model/uniCurrency';
1718
import { UniCurrencyInterest } from '../model/uniCurrencyInterest';
@@ -436,7 +437,7 @@ export class EarnUniApi {
436437
}
437438

438439
/**
439-
* Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-05-23 13:34+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language: en Language-Team: en <[email protected]> Plural-Forms: nplurals=2; plural=(n != 1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0
440+
* Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-06-04 01:36+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language: en Language-Team: en <[email protected]> Plural-Forms: nplurals=2; plural=(n != 1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0
440441
* @summary UniLoan currency annualized trend chart
441442
* @param from Start timestamp, unit s, maximum span of 30 days
442443
* @param to End timestamp, unit s, maximum span of 30 days
@@ -489,4 +490,31 @@ export class EarnUniApi {
489490
const authSettings = ['apiv4'];
490491
return this.client.request<Array<InlineResponse200>>(config, 'Array<InlineResponse200>', authSettings);
491492
}
493+
494+
/**
495+
* Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-06-04 01:36+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language: en Language-Team: en <[email protected]> Plural-Forms: nplurals=2; plural=(n != 1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0
496+
* @summary Currency estimate annualized interest rate
497+
*/
498+
public async listUniRate(): Promise<{ response: AxiosResponse; body: Array<InlineResponse2001> }> {
499+
const localVarPath = this.client.basePath + '/earn/uni/rate';
500+
let localVarQueryParameters: any = {};
501+
let localVarHeaderParams: any = (<any>Object).assign({}, this.client.defaultHeaders);
502+
const produces = ['application/json'];
503+
// give precedence to 'application/json'
504+
if (produces.indexOf('application/json') >= 0) {
505+
localVarHeaderParams.Accept = 'application/json';
506+
} else {
507+
localVarHeaderParams.Accept = produces.join(',');
508+
}
509+
510+
const config: AxiosRequestConfig = {
511+
method: 'GET',
512+
params: localVarQueryParameters,
513+
headers: localVarHeaderParams,
514+
url: localVarPath,
515+
};
516+
517+
const authSettings = ['apiv4'];
518+
return this.client.request<Array<InlineResponse2001>>(config, 'Array<InlineResponse2001>', authSettings);
519+
}
492520
}

api/unifiedApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ export class UnifiedApi {
854854
url: localVarPath,
855855
};
856856

857-
const authSettings = ['apiv4'];
857+
const authSettings = [];
858858
return this.client.request<UnifiedHistoryLoanRate>(config, 'UnifiedHistoryLoanRate', authSettings);
859859
}
860860
}

docs/CurrencyPair.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ Name | Type | Description | Notes
1919
**tradeStatus** | **string** | How currency pair can be traded - untradable: cannot be bought or sold - buyable: can be bought - sellable: can be sold - tradable: can be bought or sold | [optional] [default to undefined]
2020
**sellStart** | **number** | Sell start unix timestamp in seconds | [optional] [default to undefined]
2121
**buyStart** | **number** | Buy start unix timestamp in seconds | [optional] [default to undefined]
22+
**delistingTime** | **number** | Expected time to remove the shelves, Unix timestamp in seconds | [optional] [default to undefined]
2223
**type** | **string** | Trading pair type, normal: normal, premarket: pre-market | [optional] [default to undefined]
24+
**tradeUrl** | **string** | Transaction link | [optional] [default to undefined]
2325

2426
## Enum: CurrencyPair.TradeStatus
2527

docs/EarnUniApi.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Method | HTTP request | Description
1515
[**switchInterestReinvest**](EarnUniApi.md#switchInterestReinvest) | **PUT** /earn/uni/interest_reinvest | Set interest reinvestment toggle
1616
[**getUniInterestStatus**](EarnUniApi.md#getUniInterestStatus) | **GET** /earn/uni/interest_status/{currency} | query currency interest compounding status
1717
[**listUniChart**](EarnUniApi.md#listUniChart) | **GET** /earn/uni/chart | UniLoan currency annualized trend chart
18+
[**listUniRate**](EarnUniApi.md#listUniRate) | **GET** /earn/uni/rate | Currency estimate annualized interest rate
1819

1920

2021
## listUniCurrencies
@@ -477,7 +478,7 @@ Promise<{ response: AxiosResponse; body: UniCurrencyInterest; }> [UniCurrencyInt
477478
478479
UniLoan currency annualized trend chart
479480

480-
Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-05-23 13:34+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt; Language: en Language-Team: en &lt;[email protected]&gt; Plural-Forms: nplurals&#x3D;2; plural&#x3D;(n !&#x3D; 1) MIME-Version: 1.0 Content-Type: text/plain; charset&#x3D;utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0
481+
Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-06-04 01:36+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt; Language: en Language-Team: en &lt;[email protected]&gt; Plural-Forms: nplurals&#x3D;2; plural&#x3D;(n !&#x3D; 1) MIME-Version: 1.0 Content-Type: text/plain; charset&#x3D;utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0
481482

482483
### Example
483484

@@ -519,3 +520,44 @@ Promise<{ response: AxiosResponse; body: Array<InlineResponse200>; }> [InlineRes
519520

520521
- **Content-Type**: Not defined
521522
- **Accept**: application/json
523+
524+
## listUniRate
525+
526+
> Promise<{ response: http.IncomingMessage; body: Array<InlineResponse2001>; }> listUniRate()
527+
528+
Currency estimate annualized interest rate
529+
530+
Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-06-04 01:36+0000 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME &lt;EMAIL@ADDRESS&gt; Language: en Language-Team: en &lt;[email protected]&gt; Plural-Forms: nplurals&#x3D;2; plural&#x3D;(n !&#x3D; 1) MIME-Version: 1.0 Content-Type: text/plain; charset&#x3D;utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0
531+
532+
### Example
533+
534+
```typescript
535+
const GateApi = require('gate-api');
536+
const client = new GateApi.ApiClient();
537+
// uncomment the next line to change base path
538+
// client.basePath = "https://some-other-host"
539+
// Configure Gate APIv4 key authentication:
540+
client.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
541+
542+
const api = new GateApi.EarnUniApi(client);
543+
api.listUniRate()
544+
.then(value => console.log('API called successfully. Returned data: ', value.body),
545+
error => console.error(error));
546+
```
547+
548+
### Parameters
549+
550+
This endpoint does not need any parameter.
551+
552+
### Return type
553+
554+
Promise<{ response: AxiosResponse; body: Array<InlineResponse2001>; }> [InlineResponse2001](InlineResponse2001.md)
555+
556+
### Authorization
557+
558+
[apiv4](../README.md#apiv4)
559+
560+
### HTTP request headers
561+
562+
- **Content-Type**: Not defined
563+
- **Accept**: application/json

docs/InlineResponse200.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**time** | **number** | | [optional] [default to undefined]
8-
**vaule** | **string** | | [optional] [default to undefined]
8+
**value** | **string** | | [optional] [default to undefined]
99

docs/InlineResponse2001.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# InlineResponse2001
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**currency** | **string** | | [optional] [default to undefined]
8+
**estRate** | **string** | Unconverted percentage | [optional] [default to undefined]
9+

docs/SubAccountTransfer.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**currency** | **string** | Transfer currency name | [default to undefined]
7+
**timest** | **string** | Transfer timestamp | [optional] [readonly] [default to undefined]
8+
**uid** | **string** | Main account user ID | [optional] [readonly] [default to undefined]
89
**subAccount** | **string** | Sub account user ID | [default to undefined]
9-
**direction** | **string** | Transfer direction. to - transfer into sub account; from - transfer out from sub account | [default to undefined]
10+
**subAccountType** | **string** | Target sub user\&#39;s account. &#x60;spot&#x60; - spot account, &#x60;futures&#x60; - perpetual contract account, &#x60;delivery&#x60; - delivery account | [optional] [default to &#39;spot&#39;]
11+
**currency** | **string** | Transfer currency name | [default to undefined]
1012
**amount** | **string** | Transfer amount | [default to undefined]
11-
**uid** | **string** | Main account user ID | [optional] [readonly] [default to undefined]
12-
**clientOrderId** | **string** | The custom ID provided by the customer serves as a safeguard against duplicate transfers. It can be a combination of letters (case-sensitive), numbers, hyphens \&#39;-\&#39;, and underscores \&#39;_\&#39;, with a length ranging from 1 to 64 characters. | [optional] [default to undefined]
13-
**timest** | **string** | Transfer timestamp | [optional] [readonly] [default to undefined]
13+
**direction** | **string** | Transfer direction. to - transfer into sub account; from - transfer out from sub account | [default to undefined]
1414
**source** | **string** | Where the operation is initiated from | [optional] [readonly] [default to undefined]
15-
**subAccountType** | **string** | Target sub user\&#39;s account. &#x60;spot&#x60; - spot account, &#x60;futures&#x60; - perpetual contract account, &#x60;delivery&#x60; - delivery account | [optional] [default to &#39;spot&#39;]
15+
**clientOrderId** | **string** | The custom ID provided by the customer serves as a safeguard against duplicate transfers. It can be a combination of letters (case-sensitive), numbers, hyphens \&#39;-\&#39;, and underscores \&#39;_\&#39;, with a length ranging from 1 to 64 characters. | [optional] [default to undefined]
16+
**status** | **string** | Sub-account transfer record status, currently only success | [optional] [default to undefined]
1617

docs/UnifiedApi.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,6 @@ const GateApi = require('gate-api');
928928
const client = new GateApi.ApiClient();
929929
// uncomment the next line to change base path
930930
// client.basePath = "https://some-other-host"
931-
// Configure Gate APIv4 key authentication:
932-
client.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
933931

934932
const api = new GateApi.UnifiedApi(client);
935933
const currency = "USDT"; // string | Currency
@@ -959,7 +957,7 @@ Promise<{ response: AxiosResponse; body: UnifiedHistoryLoanRate; }> [UnifiedHist
959957

960958
### Authorization
961959

962-
[apiv4](../README.md#apiv4)
960+
No authorization required
963961

964962
### HTTP request headers
965963

docs/WithdrawalRecord.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**amount** | **string** | Currency amount | [default to undefined]
1313
**fee** | **string** | fee | [optional] [readonly] [default to undefined]
1414
**currency** | **string** | Currency name | [default to undefined]
15-
**address** | **string** | 提现地址 | [optional] [default to undefined]
15+
**address** | **string** | Withdrawal address | [optional] [default to undefined]
1616
**failReason** | **string** | The reason for withdrawal failure is that there is a value when status &#x3D; CANCEL, and the rest of the state is empty | [optional] [default to undefined]
1717
**timestamp2** | **string** | The withdrawal end time, i.e.: withdrawal cancel time or withdrawal success time When status &#x3D; CANCEL, the corresponding cancel time When status &#x3D; DONE and block_number &gt; 0, it is the time to withdrawal success | [optional] [default to undefined]
1818
**memo** | **string** | Additional remarks with regards to the withdrawal | [optional] [default to undefined]

0 commit comments

Comments
 (0)