Skip to content

Commit c07f099

Browse files
author
gate
committed
update to v7.2.8
1 parent 6412fa2 commit c07f099

File tree

9 files changed

+55
-5
lines changed

9 files changed

+55
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
22

33
TypeScript NodeJS client for gate-api.
44

@@ -7,7 +7,7 @@ APIv4 provides operations related to spot, margin, and contract trading, includi
77

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

10-
- API version: v4.106.7
10+
- API version: v4.106.8
1111
- Package version:
1212
- Build package: org.openapitools.codegen.languages.TypeScriptNodeClientCodegen
1313
For more information, please visit [https://www.gate.com/page/contacts](https://www.gate.com/page/contacts)

docs/BatchOrder.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Name | Type | Description | Notes
4141
**stpId** | **number** | Orders between users in the same `stp_id` group are not allowed to be self-traded 1. If the `stp_id` of two orders being matched is non-zero and equal, they will not be executed. Instead, the corresponding strategy will be executed based on the `stp_act` of the taker. 2. `stp_id` returns `0` by default for orders that have not been set for `STP group` | [optional] [readonly] [default to undefined]
4242
**stpAct** | **string** | Self-Trading Prevention Action. Users can use this field to set self-trade prevetion strategies 1. After users join the `STP Group`, he can pass `stp_act` to limit the user\'s self-trade prevetion strategy. If `stp_act` is not passed, the default is `cn` strategy。 2. When the user does not join the `STP group`, an error will be returned when passing the `stp_act` parameter。 3. If the user did not use \'stp_act\' when placing the order, \'stp_act\' will return \'-\' - cn: Cancel newest, Cancel new orders and keep old ones - co: Cancel oldest, new ones - cb: Cancel both, Both old and new orders will be cancelled | [optional] [default to undefined]
4343
**finishAs** | **string** | How the order was finished. - open: processing - filled: filled totally - cancelled: manually cancelled - ioc: time in force is `IOC`, finish immediately - stp: cancelled because self trade prevention | [optional] [readonly] [default to undefined]
44+
**slippage** | **string** | Slippage, default limit range 0.0001-0.05, converted to percentage is 0.01%-5%, indicating the acceptable price difference for market order transactions | [optional] [default to undefined]
4445

4546
## Enum: BatchOrder.Status
4647

docs/CurrencyPair.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ Name | Type | Description | Notes
2525
**stTag** | **boolean** | Whether the trading pair is in ST risk assessment, false - No, true - Yes | [optional] [default to undefined]
2626
**upRate** | **string** | Maximum Quote Rise Percentage | [optional] [default to undefined]
2727
**downRate** | **string** | Maximum Quote Decline Percentage | [optional] [default to undefined]
28+
**slippage** | **string** | Currency Slippage | [optional] [default to undefined]
29+
**marketOrderMaxStock** | **string** | Maximum Market Order Quantity | [optional] [default to undefined]
30+
**marketOrderMaxMoney** | **string** | Maximum Market Order Amount | [optional] [default to undefined]
2831

2932
## Enum: CurrencyPair.TradeStatus
3033

docs/Order.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Name | Type | Description | Notes
4040
**stpAct** | **string** | Self-Trading Prevention Action. Users can use this field to set self-trade prevention strategies 1. After users join the `STP Group`, they can pass `stp_act` to limit the user\'s self-trade prevention strategy. If `stp_act` is not passed, the default is `cn` strategy. 2. When the user does not join the `STP group`, an error will be returned when passing the `stp_act` parameter. 3. If the user did not use `stp_act` when placing the order, `stp_act` will return \'-\' - cn: Cancel newest, cancel new orders and keep old ones - co: Cancel oldest, cancel old orders and keep new ones - cb: Cancel both, both old and new orders will be cancelled | [optional] [default to undefined]
4141
**finishAs** | **string** | Order completion statuses include: - open: Awaiting processing - filled: Fully filled - cancelled: Cancelled by user - liquidate_cancelled: Cancelled due to liquidation - small: Order quantity too small - depth_not_enough: Cancelled due to insufficient market depth - trader_not_enough: Cancelled due to insufficient counterparty - ioc: Not immediately filled because tif is set to ioc - poc: Not met the order poc - fok: Not fully filled immediately because tif is set to fok - stp: Cancelled due to self-trade prevention - unknown: Unknown | [optional] [readonly] [default to undefined]
4242
**actionMode** | **string** | Processing Mode: When placing an order, different fields are returned based on action_mode. This field is only valid during the request and is not included in the response result ACK: Asynchronous mode, only returns key order fields RESULT: No clearing information FULL: Full mode (default) | [optional] [default to undefined]
43+
**slippage** | **string** | Slippage, default limit range 0.0001-0.05, converted to percentage is 0.01%-5%, indicating the acceptable price difference for market order transactions | [optional] [default to undefined]
4344

4445
## Enum: Order.Status
4546

model/batchOrder.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ export class BatchOrder {
161161
* How the order was finished. - open: processing - filled: filled totally - cancelled: manually cancelled - ioc: time in force is `IOC`, finish immediately - stp: cancelled because self trade prevention
162162
*/
163163
'finishAs'?: BatchOrder.FinishAs;
164+
/**
165+
* Slippage, default limit range 0.0001-0.05, converted to percentage is 0.01%-5%, indicating the acceptable price difference for market order transactions
166+
*/
167+
'slippage'?: string;
164168

165169
static discriminator: string | undefined = undefined;
166170

@@ -350,6 +354,11 @@ export class BatchOrder {
350354
baseName: 'finish_as',
351355
type: 'BatchOrder.FinishAs',
352356
},
357+
{
358+
name: 'slippage',
359+
baseName: 'slippage',
360+
type: 'string',
361+
},
353362
];
354363

355364
static getAttributeTypeMap() {

model/currencyPair.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ export class CurrencyPair {
9797
* Maximum Quote Decline Percentage
9898
*/
9999
'downRate'?: string;
100+
/**
101+
* Currency Slippage
102+
*/
103+
'slippage'?: string;
104+
/**
105+
* Maximum Market Order Quantity
106+
*/
107+
'marketOrderMaxStock'?: string;
108+
/**
109+
* Maximum Market Order Amount
110+
*/
111+
'marketOrderMaxMoney'?: string;
100112

101113
static discriminator: string | undefined = undefined;
102114

@@ -206,6 +218,21 @@ export class CurrencyPair {
206218
baseName: 'down_rate',
207219
type: 'string',
208220
},
221+
{
222+
name: 'slippage',
223+
baseName: 'slippage',
224+
type: 'string',
225+
},
226+
{
227+
name: 'marketOrderMaxStock',
228+
baseName: 'market_order_max_stock',
229+
type: 'string',
230+
},
231+
{
232+
name: 'marketOrderMaxMoney',
233+
baseName: 'market_order_max_money',
234+
type: 'string',
235+
},
209236
];
210237

211238
static getAttributeTypeMap() {

model/order.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ export class Order {
157157
* Processing Mode: When placing an order, different fields are returned based on action_mode. This field is only valid during the request and is not included in the response result ACK: Asynchronous mode, only returns key order fields RESULT: No clearing information FULL: Full mode (default)
158158
*/
159159
'actionMode'?: string;
160+
/**
161+
* Slippage, default limit range 0.0001-0.05, converted to percentage is 0.01%-5%, indicating the acceptable price difference for market order transactions
162+
*/
163+
'slippage'?: string;
160164

161165
static discriminator: string | undefined = undefined;
162166

@@ -341,6 +345,11 @@ export class Order {
341345
baseName: 'action_mode',
342346
type: 'string',
343347
},
348+
{
349+
name: 'slippage',
350+
baseName: 'slippage',
351+
type: 'string',
352+
},
344353
];
345354

346355
static getAttributeTypeMap() {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gate-api",
3-
"version": "7.2.7",
3+
"version": "7.2.8",
44
"description": "NodeJS client for gate-api",
55
"repository": "gate/gateapi-nodejs",
66
"main": "dist/api.js",

0 commit comments

Comments
 (0)