kucoin-api 1.0.16 → 1.0.18

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.
@@ -108,6 +108,8 @@ export interface Order {
108
108
  stp?: 'CN' | 'CO' | 'CB';
109
109
  price?: string;
110
110
  size?: number;
111
+ qty?: string;
112
+ valueQty?: string;
111
113
  timeInForce?: 'GTC' | 'IOC';
112
114
  hidden?: boolean;
113
115
  iceberg?: boolean;
@@ -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,9 @@ export interface FuturesSymbolInfo {
162
163
  highPrice: number;
163
164
  priceChgPct: number;
164
165
  priceChg: number;
166
+ supportCross: boolean;
167
+ buyLimit: number;
168
+ sellLimit: number;
165
169
  }
166
170
  export interface TickerDetail {
167
171
  sequence: number;
@@ -465,6 +469,8 @@ export interface FuturesCurrentFundingRate {
465
469
  timePoint: number;
466
470
  value: number;
467
471
  predictedValue: number;
472
+ fundingRateCap: number;
473
+ fundingRateFloor: number;
468
474
  }
469
475
  export interface FuturesHistoricFundingRate {
470
476
  symbol: string;
@@ -108,6 +108,8 @@ export interface Order {
108
108
  stp?: 'CN' | 'CO' | 'CB';
109
109
  price?: string;
110
110
  size?: number;
111
+ qty?: string;
112
+ valueQty?: string;
111
113
  timeInForce?: 'GTC' | 'IOC';
112
114
  hidden?: boolean;
113
115
  iceberg?: boolean;
@@ -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,9 @@ export interface FuturesSymbolInfo {
162
163
  highPrice: number;
163
164
  priceChgPct: number;
164
165
  priceChg: number;
166
+ supportCross: boolean;
167
+ buyLimit: number;
168
+ sellLimit: number;
165
169
  }
166
170
  export interface TickerDetail {
167
171
  sequence: number;
@@ -465,6 +469,8 @@ export interface FuturesCurrentFundingRate {
465
469
  timePoint: number;
466
470
  value: number;
467
471
  predictedValue: number;
472
+ fundingRateCap: number;
473
+ fundingRateFloor: number;
468
474
  }
469
475
  export interface FuturesHistoricFundingRate {
470
476
  symbol: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kucoin-api",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
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",