Skip to content

Commit f29efc6

Browse files
author
gateio
committedFeb 24, 2025
update to v6.91.0
1 parent da1b896 commit f29efc6

20 files changed

+137
-80
lines changed
 

‎api/spotApi.ts

+27-27
Large diffs are not rendered by default.

‎api/unifiedApi.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ export class UnifiedApi {
5151
* @summary Get unified account information
5252
* @param opts Optional parameters
5353
* @param opts.currency Retrieve data of the specified currency
54+
* @param opts.subUid Sub account user ID
5455
*/
55-
public async listUnifiedAccounts(opts: { currency?: string, } ) : Promise<{ response: AxiosResponse; body: UnifiedAccount; }> {
56+
public async listUnifiedAccounts(opts: { currency?: string, subUid?: string, } ) : Promise<{ response: AxiosResponse; body: UnifiedAccount; }> {
5657
const localVarPath = this.client.basePath + '/unified/accounts';
5758
let localVarQueryParameters: any = {};
5859
let localVarHeaderParams: any = (<any>Object).assign({}, this.client.defaultHeaders);
@@ -69,6 +70,10 @@ export class UnifiedApi {
6970
localVarQueryParameters['currency'] = ObjectSerializer.serialize(opts.currency, "string");
7071
}
7172

73+
if (opts.subUid !== undefined) {
74+
localVarQueryParameters['sub_uid'] = ObjectSerializer.serialize(opts.subUid, "string");
75+
}
76+
7277

7378
const config: AxiosRequestConfig = {
7479
method: 'GET',

‎docs/BatchAmendItem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**orderId** | **string** | The order ID returned upon successful creation or the custom ID specified by the user during creation (i.e., the \&#39;text\&#39; field). | [default to undefined]
88
**currencyPair** | **string** | Currency pair | [default to undefined]
9-
**account** | **string** | Default to spot, portfolio, and margin accounts if not specified. Use \&#39;cross_margin\&#39; to query cross margin accounts. Only \&#39;cross_margin\&#39; can be specified for portfolio margin accounts. | [optional] [default to undefined]
9+
**account** | **string** | Default spot, unified account and warehouse-by-store leverage account. | [optional] [default to undefined]
1010
**amount** | **string** | trade amount, only one of amount and price can be specified | [optional] [default to undefined]
1111
**price** | **string** | trade price, only one of amount and price can be specified | [optional] [default to undefined]
1212
**amendText** | **string** | Custom info during amending order | [optional] [default to undefined]

‎docs/BatchOrder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
1818
**status** | **string** | Order status - &#x60;open&#x60;: to be filled - &#x60;closed&#x60;: filled - &#x60;cancelled&#x60;: cancelled | [optional] [readonly] [default to undefined]
1919
**currencyPair** | **string** | Currency pair | [optional] [default to undefined]
2020
**type** | **string** | Order Type - limit : Limit Order - market : Market Order | [optional] [default to &#39;limit&#39;]
21-
**account** | **string** | Account type. spot - use spot account; margin - use margin account; cross_margin - use cross margin account, unified - unified account | [optional] [default to &#39;spot&#39;]
21+
**account** | **string** | Account type, spot - spot account, margin - leveraged account, unified - unified account | [optional] [default to &#39;spot&#39;]
2222
**side** | **string** | Order side | [optional] [default to undefined]
2323
**amount** | **string** | Trade amount | [optional] [default to undefined]
2424
**price** | **string** | Order price | [optional] [default to undefined]

‎docs/CancelOrderResult.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Name | Type | Description | Notes
1010
**succeeded** | **boolean** | Whether cancellation succeeded | [optional] [default to undefined]
1111
**label** | **string** | Error label when failed to cancel the order; emtpy if succeeded | [optional] [default to undefined]
1212
**message** | **string** | Error message when failed to cancel the order; empty if succeeded | [optional] [default to undefined]
13-
**account** | **string** | Empty by default. If cancelled order is cross margin order, this field is set to &#x60;cross_margin&#x60; | [optional] [default to undefined]
13+
**account** | **string** | Default is empty (deprecated) | [optional] [default to undefined]
1414

‎docs/Currency.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**currency** | **string** | Currency name | [optional] [default to undefined]
7+
**currency** | **string** | Currency symbol | [optional] [default to undefined]
8+
**name** | **string** | Currency name | [optional] [default to undefined]
89
**delisted** | **boolean** | Whether currency is de-listed | [optional] [default to undefined]
910
**withdrawDisabled** | **boolean** | Whether currency\&#39;s withdrawal is disabled | [optional] [default to undefined]
1011
**withdrawDelayed** | **boolean** | Whether currency\&#39;s withdrawal is delayed | [optional] [default to undefined]

‎docs/CurrencyPair.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**id** | **string** | Currency pair | [optional] [default to undefined]
88
**base** | **string** | Base currency | [optional] [default to undefined]
9+
**baseName** | **string** | Transaction currency name | [optional] [default to undefined]
910
**quote** | **string** | Quote currency | [optional] [default to undefined]
11+
**quoteName** | **string** | Name of the denominated currency | [optional] [default to undefined]
1012
**fee** | **string** | Trading fee | [optional] [default to undefined]
1113
**minBaseAmount** | **string** | Minimum amount of base currency to trade, &#x60;null&#x60; means no limit | [optional] [default to undefined]
1214
**minQuoteAmount** | **string** | Minimum amount of quote currency to trade, &#x60;null&#x60; means no limit | [optional] [default to undefined]

‎docs/Order.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
**status** | **string** | Order status - &#x60;open&#x60;: to be filled - &#x60;closed&#x60;: filled - &#x60;cancelled&#x60;: cancelled | [optional] [readonly] [default to undefined]
1515
**currencyPair** | **string** | Currency pair | [default to undefined]
1616
**type** | **string** | Order Type - limit : Limit Order - market : Market Order | [optional] [default to &#39;limit&#39;]
17-
**account** | **string** | Account types, spot - spot account, margin - margin account, unified - unified account, cross_margin - cross margin account. Portfolio margin accounts can only be set to &#x60;cross_margin&#x60; | [optional] [default to &#39;spot&#39;]
17+
**account** | **string** | Account type, spot - spot account, margin - leveraged account, unified - unified account | [optional] [default to &#39;spot&#39;]
1818
**side** | **string** | Order side | [default to undefined]
1919
**amount** | **string** | When &#x60;type&#x60; is limit, it refers to base currency. For instance, &#x60;BTC_USDT&#x60; means &#x60;BTC&#x60; When &#x60;type&#x60; is &#x60;market&#x60;, it refers to different currency according to &#x60;side&#x60; - &#x60;side&#x60; : &#x60;buy&#x60; means quote currency, &#x60;BTC_USDT&#x60; means &#x60;USDT&#x60; - &#x60;side&#x60; : &#x60;sell&#x60; means base currency,&#x60;BTC_USDT&#x60; means &#x60;BTC&#x60; | [default to undefined]
2020
**price** | **string** | Price can\&#39;t be empty when &#x60;type&#x60;&#x3D; &#x60;limit&#x60; | [optional] [default to undefined]

‎docs/OrderCancel.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
1717
**status** | **string** | Order status - &#x60;open&#x60;: to be filled - &#x60;closed&#x60;: filled - &#x60;cancelled&#x60;: cancelled | [optional] [readonly] [default to undefined]
1818
**currencyPair** | **string** | Currency pair | [default to undefined]
1919
**type** | **string** | Order Type - limit : Limit Order - market : Market Order | [optional] [default to &#39;limit&#39;]
20-
**account** | **string** | Account types, spot - spot account, margin - margin account, unified - unified account, cross_margin - cross margin account. Portfolio margin accounts can only be set to &#x60;cross_margin&#x60; | [optional] [default to &#39;spot&#39;]
20+
**account** | **string** | Account type, spot - spot account, margin - leveraged account, unified - unified account | [optional] [default to &#39;spot&#39;]
2121
**side** | **string** | Order side | [default to undefined]
2222
**amount** | **string** | When &#x60;type&#x60; is limit, it refers to base currency. For instance, &#x60;BTC_USDT&#x60; means &#x60;BTC&#x60; When &#x60;type&#x60; is &#x60;market&#x60;, it refers to different currency according to &#x60;side&#x60; - &#x60;side&#x60; : &#x60;buy&#x60; means quote currency, &#x60;BTC_USDT&#x60; means &#x60;USDT&#x60; - &#x60;side&#x60; : &#x60;sell&#x60; means base currency,&#x60;BTC_USDT&#x60; means &#x60;BTC&#x60; | [default to undefined]
2323
**price** | **string** | Price can\&#39;t be empty when &#x60;type&#x60;&#x3D; &#x60;limit&#x60; | [optional] [default to undefined]

0 commit comments

Comments
 (0)
Please sign in to comment.