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.
- package/dist/cjs/types/request/futures.types.d.ts +2 -0
- package/dist/cjs/types/request/spot-funding.d.ts +7 -7
- package/dist/cjs/types/response/futures.types.d.ts +6 -0
- package/dist/mjs/types/request/futures.types.d.ts +2 -0
- package/dist/mjs/types/request/spot-funding.d.ts +7 -7
- package/dist/mjs/types/response/futures.types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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