kucoin-api 1.0.16 → 1.0.17

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.
@@ -76,7 +76,7 @@ export interface SubmitWithdrawV3Request {
76
76
  */
77
77
  export interface GetTransferableRequest {
78
78
  currency: string;
79
- type: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'ISOLATED';
79
+ type: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'ISOLATED' | 'OPTION';
80
80
  tag?: string;
81
81
  }
82
82
  export interface FlexTransferRequest {
@@ -84,11 +84,11 @@ export interface FlexTransferRequest {
84
84
  currency?: string;
85
85
  amount: string;
86
86
  fromUserId?: string;
87
- fromAccountType: 'MAIN' | 'TRADE' | 'CONTRACT' | 'MARGIN' | 'ISOLATED' | 'TRADE_HF' | 'MARGIN_V2' | 'ISOLATED_V2';
87
+ fromAccountType: 'MAIN' | 'TRADE' | 'CONTRACT' | 'MARGIN' | 'ISOLATED' | 'TRADE_HF' | 'MARGIN_V2' | 'ISOLATED_V2' | 'OPTION';
88
88
  fromAccountTag?: string;
89
89
  type: 'INTERNAL' | 'PARENT_TO_SUB' | 'SUB_TO_PARENT';
90
90
  toUserId?: string;
91
- toAccountType: 'MAIN' | 'TRADE' | 'CONTRACT' | 'MARGIN' | 'ISOLATED' | 'TRADE_HF' | 'MARGIN_V2' | 'ISOLATED_V2';
91
+ toAccountType: 'MAIN' | 'TRADE' | 'CONTRACT' | 'MARGIN' | 'ISOLATED' | 'TRADE_HF' | 'MARGIN_V2' | 'ISOLATED_V2' | 'OPTION';
92
92
  toAccountTag?: string;
93
93
  }
94
94
  export interface submitTransferMasterSubRequest {
@@ -96,15 +96,15 @@ export interface submitTransferMasterSubRequest {
96
96
  currency: string;
97
97
  amount: string;
98
98
  direction: 'OUT' | 'IN';
99
- accountType?: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'CONTRACT';
100
- subAccountType?: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'CONTRACT';
99
+ accountType?: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'CONTRACT' | 'OPTION';
100
+ subAccountType?: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'CONTRACT' | 'OPTION';
101
101
  subUserId: string;
102
102
  }
103
103
  export interface InnerTransferRequest {
104
104
  clientOid: string;
105
105
  currency: string;
106
- from: 'main' | 'trade' | 'trade_hf' | 'margin' | 'isolated' | 'margin_v2' | 'isolated_v2' | 'contract';
107
- to: 'main' | 'trade' | 'trade_hf' | 'margin' | 'isolated' | 'margin_v2' | 'isolated_v2' | 'contract';
106
+ from: 'main' | 'trade' | 'trade_hf' | 'margin' | 'isolated' | 'margin_v2' | 'isolated_v2' | 'contract' | 'option';
107
+ to: 'main' | 'trade' | 'trade_hf' | 'margin' | 'isolated' | 'margin_v2' | 'isolated_v2' | 'contract' | 'option';
108
108
  amount: string;
109
109
  fromTag?: string;
110
110
  toTag?: string;
@@ -46,6 +46,7 @@ export interface AccountBalance {
46
46
  frozenFunds: number;
47
47
  availableBalance: number;
48
48
  currency: string;
49
+ riskRatio: number;
49
50
  }
50
51
  export interface AccountSummary {
51
52
  accountEquityTotal: number;
@@ -162,6 +163,7 @@ export interface FuturesSymbolInfo {
162
163
  highPrice: number;
163
164
  priceChgPct: number;
164
165
  priceChg: number;
166
+ supportCross: boolean;
165
167
  }
166
168
  export interface TickerDetail {
167
169
  sequence: number;
@@ -76,7 +76,7 @@ export interface SubmitWithdrawV3Request {
76
76
  */
77
77
  export interface GetTransferableRequest {
78
78
  currency: string;
79
- type: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'ISOLATED';
79
+ type: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'ISOLATED' | 'OPTION';
80
80
  tag?: string;
81
81
  }
82
82
  export interface FlexTransferRequest {
@@ -84,11 +84,11 @@ export interface FlexTransferRequest {
84
84
  currency?: string;
85
85
  amount: string;
86
86
  fromUserId?: string;
87
- fromAccountType: 'MAIN' | 'TRADE' | 'CONTRACT' | 'MARGIN' | 'ISOLATED' | 'TRADE_HF' | 'MARGIN_V2' | 'ISOLATED_V2';
87
+ fromAccountType: 'MAIN' | 'TRADE' | 'CONTRACT' | 'MARGIN' | 'ISOLATED' | 'TRADE_HF' | 'MARGIN_V2' | 'ISOLATED_V2' | 'OPTION';
88
88
  fromAccountTag?: string;
89
89
  type: 'INTERNAL' | 'PARENT_TO_SUB' | 'SUB_TO_PARENT';
90
90
  toUserId?: string;
91
- toAccountType: 'MAIN' | 'TRADE' | 'CONTRACT' | 'MARGIN' | 'ISOLATED' | 'TRADE_HF' | 'MARGIN_V2' | 'ISOLATED_V2';
91
+ toAccountType: 'MAIN' | 'TRADE' | 'CONTRACT' | 'MARGIN' | 'ISOLATED' | 'TRADE_HF' | 'MARGIN_V2' | 'ISOLATED_V2' | 'OPTION';
92
92
  toAccountTag?: string;
93
93
  }
94
94
  export interface submitTransferMasterSubRequest {
@@ -96,15 +96,15 @@ export interface submitTransferMasterSubRequest {
96
96
  currency: string;
97
97
  amount: string;
98
98
  direction: 'OUT' | 'IN';
99
- accountType?: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'CONTRACT';
100
- subAccountType?: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'CONTRACT';
99
+ accountType?: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'CONTRACT' | 'OPTION';
100
+ subAccountType?: 'MAIN' | 'TRADE' | 'TRADE_HF' | 'MARGIN' | 'CONTRACT' | 'OPTION';
101
101
  subUserId: string;
102
102
  }
103
103
  export interface InnerTransferRequest {
104
104
  clientOid: string;
105
105
  currency: string;
106
- from: 'main' | 'trade' | 'trade_hf' | 'margin' | 'isolated' | 'margin_v2' | 'isolated_v2' | 'contract';
107
- to: 'main' | 'trade' | 'trade_hf' | 'margin' | 'isolated' | 'margin_v2' | 'isolated_v2' | 'contract';
106
+ from: 'main' | 'trade' | 'trade_hf' | 'margin' | 'isolated' | 'margin_v2' | 'isolated_v2' | 'contract' | 'option';
107
+ to: 'main' | 'trade' | 'trade_hf' | 'margin' | 'isolated' | 'margin_v2' | 'isolated_v2' | 'contract' | 'option';
108
108
  amount: string;
109
109
  fromTag?: string;
110
110
  toTag?: string;
@@ -46,6 +46,7 @@ export interface AccountBalance {
46
46
  frozenFunds: number;
47
47
  availableBalance: number;
48
48
  currency: string;
49
+ riskRatio: number;
49
50
  }
50
51
  export interface AccountSummary {
51
52
  accountEquityTotal: number;
@@ -162,6 +163,7 @@ export interface FuturesSymbolInfo {
162
163
  highPrice: number;
163
164
  priceChgPct: number;
164
165
  priceChg: number;
166
+ supportCross: boolean;
165
167
  }
166
168
  export interface TickerDetail {
167
169
  sequence: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kucoin-api",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Complete & robust Node.js SDK for Kucoin's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
5
5
  "scripts": {
6
6
  "clean": "rm -rf dist",