okx-api 1.4.10 → 1.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,10 +14,19 @@ export interface WithdrawRequest {
14
14
  amt: string;
15
15
  dest: '3' | '4';
16
16
  toAddr: string;
17
- fee: string;
18
17
  chain?: string;
19
18
  areaCode?: string;
20
19
  clientId?: string;
20
+ rcvrInfo?: {
21
+ walletType: 'exchange' | 'private';
22
+ exchId?: string;
23
+ rcvrFirstName?: string;
24
+ rcvrLastName?: string;
25
+ rcvrCountry?: string;
26
+ rcvrCountrySubDivision?: string;
27
+ rcvrTownName?: string;
28
+ rcvrStreetName?: string;
29
+ };
21
30
  }
22
31
  export interface FundingRateRequest {
23
32
  instId: string;
@@ -7,11 +7,10 @@ export interface FundingCurrency {
7
7
  chain: string;
8
8
  logoLink: string;
9
9
  mainNet: boolean;
10
- maxFee: string;
10
+ fee: string;
11
11
  maxWd: string;
12
12
  minDep: string;
13
13
  minDepArrivalConfirm: string;
14
- minFee: string;
15
14
  minWd: string;
16
15
  minWdUnlockConfirm: string;
17
16
  name: string;
@@ -234,6 +234,10 @@ export interface AlgoOrderDetailsResult {
234
234
  amendPxOnTriggerType: string;
235
235
  cTime: string;
236
236
  isTradeBorrowMode: boolean;
237
+ chaseType?: string;
238
+ chaseVal?: string;
239
+ maxChaseType?: string;
240
+ maxChaseVal?: string;
237
241
  }
238
242
  export interface AlgoOrderListItem {
239
243
  activePx: string;
@@ -284,6 +288,10 @@ export interface AlgoOrderListItem {
284
288
  triggerTime: string;
285
289
  amendPxOnTriggerType: string;
286
290
  isTradeBorrowMode: boolean;
291
+ chaseType?: string;
292
+ chaseVal?: string;
293
+ maxChaseType?: string;
294
+ maxChaseVal?: string;
287
295
  }
288
296
  export interface HistoricAlgoOrder {
289
297
  activePx: string;
@@ -334,6 +342,10 @@ export interface HistoricAlgoOrder {
334
342
  triggerTime: string;
335
343
  amendPxOnTriggerType: string;
336
344
  isTradeBorrowMode: boolean;
345
+ chaseType?: string;
346
+ chaseVal?: string;
347
+ maxChaseType?: string;
348
+ maxChaseVal?: string;
337
349
  }
338
350
  export interface CancelAllAfterResponse {
339
351
  triggerTime: string;
@@ -4,7 +4,7 @@ export interface APIResponse<T> {
4
4
  msg: '';
5
5
  data: T;
6
6
  }
7
- export type AlgoOrderType = 'conditional' | 'oco' | 'trigger' | 'move_order_stop' | 'iceberg' | 'twap';
7
+ export type AlgoOrderType = 'conditional' | 'oco' | 'trigger' | 'move_order_stop' | 'iceberg' | 'twap' | 'chase';
8
8
  export type AlgoOrderState = 'live' | 'pause' | 'partially_effective' | 'effective' | 'canceled' | 'order_failed' | 'partially_failed';
9
9
  export type AlgoPositionSide = 'long' | 'short';
10
10
  export type ContractGridDirection = 'long' | 'short' | 'neutral';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "okx-api",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
4
4
  "description": "Complete & robust Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",