kucoin-api 2.1.21 → 2.1.23
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/FuturesClient.d.ts +9 -0
- package/dist/cjs/FuturesClient.js +7 -0
- package/dist/cjs/FuturesClient.js.map +1 -1
- package/dist/cjs/SpotClient.d.ts +102 -10
- package/dist/cjs/SpotClient.js +128 -8
- package/dist/cjs/SpotClient.js.map +1 -1
- package/dist/cjs/types/request/spot-affiliate.d.ts +9 -0
- package/dist/cjs/types/request/spot-margin-trading.d.ts +87 -0
- package/dist/cjs/types/response/futures.types.d.ts +1 -0
- package/dist/cjs/types/response/spot-affiliate.d.ts +15 -0
- package/dist/cjs/types/response/spot-margin-trading.d.ts +94 -0
- package/dist/cjs/types/response/spot-trading.d.ts +1 -0
- package/dist/mjs/FuturesClient.d.ts +9 -0
- package/dist/mjs/FuturesClient.js +7 -0
- package/dist/mjs/FuturesClient.js.map +1 -1
- package/dist/mjs/SpotClient.d.ts +102 -10
- package/dist/mjs/SpotClient.js +128 -8
- package/dist/mjs/SpotClient.js.map +1 -1
- package/dist/mjs/types/request/spot-affiliate.d.ts +9 -0
- package/dist/mjs/types/request/spot-margin-trading.d.ts +87 -0
- package/dist/mjs/types/response/futures.types.d.ts +1 -0
- package/dist/mjs/types/response/spot-affiliate.d.ts +15 -0
- package/dist/mjs/types/response/spot-margin-trading.d.ts +94 -0
- package/dist/mjs/types/response/spot-trading.d.ts +1 -0
- package/llms.txt +3850 -3280
- package/package.json +1 -1
|
@@ -167,3 +167,90 @@ export interface GetLendingSubscriptionOrdersV3Request {
|
|
|
167
167
|
currentPage?: number;
|
|
168
168
|
pageSize?: number;
|
|
169
169
|
}
|
|
170
|
+
export interface GetBorrowInterestRateRequest {
|
|
171
|
+
vipLevel?: number;
|
|
172
|
+
currency?: string;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Margin Stop Order Requests
|
|
176
|
+
*/
|
|
177
|
+
export interface SubmitMarginStopOrderRequest {
|
|
178
|
+
clientOid: string;
|
|
179
|
+
side: 'buy' | 'sell';
|
|
180
|
+
symbol: string;
|
|
181
|
+
type?: 'limit' | 'market';
|
|
182
|
+
remark?: string;
|
|
183
|
+
stop?: string;
|
|
184
|
+
stopPrice: string;
|
|
185
|
+
stp?: 'DC' | 'CO' | 'CN' | 'CB';
|
|
186
|
+
isIsolated: boolean;
|
|
187
|
+
autoRepay: boolean;
|
|
188
|
+
autoBorrow: boolean;
|
|
189
|
+
price?: string;
|
|
190
|
+
size?: string;
|
|
191
|
+
timeInForce?: 'GTC' | 'GTT' | 'IOC' | 'FOK';
|
|
192
|
+
cancelAfter?: number;
|
|
193
|
+
postOnly?: boolean;
|
|
194
|
+
hidden?: boolean;
|
|
195
|
+
iceberg?: boolean;
|
|
196
|
+
visibleSize?: string;
|
|
197
|
+
funds?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface CancelMarginStopOrderByClientOidRequest {
|
|
200
|
+
clientOid: string;
|
|
201
|
+
}
|
|
202
|
+
export interface BatchCancelMarginStopOrdersRequest {
|
|
203
|
+
symbol?: string;
|
|
204
|
+
tradeType: 'MARGIN_TRADE' | 'MARGIN_ISOLATED_TRADE';
|
|
205
|
+
orderIds?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface GetMarginStopOrdersListRequest {
|
|
208
|
+
symbol?: string;
|
|
209
|
+
side?: string;
|
|
210
|
+
type?: 'limit' | 'market' | 'limit_stop' | 'market_stop';
|
|
211
|
+
tradeType?: 'MARGIN_TRADE' | 'MARGIN_ISOLATED_TRADE';
|
|
212
|
+
startAt?: number;
|
|
213
|
+
endAt?: number;
|
|
214
|
+
currentPage?: number;
|
|
215
|
+
orderIds?: string;
|
|
216
|
+
pageSize?: number;
|
|
217
|
+
stop?: 'stop' | 'oco';
|
|
218
|
+
}
|
|
219
|
+
export interface GetMarginStopOrderByOrderIdRequest {
|
|
220
|
+
orderId: string;
|
|
221
|
+
}
|
|
222
|
+
export interface GetMarginStopOrderByClientOidRequest {
|
|
223
|
+
clientOid: string;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Margin OCO Order Requests
|
|
227
|
+
*/
|
|
228
|
+
export interface SubmitMarginOcoOrderRequest {
|
|
229
|
+
symbol: string;
|
|
230
|
+
side: 'buy' | 'sell';
|
|
231
|
+
price: string;
|
|
232
|
+
size: string;
|
|
233
|
+
stopPrice: string;
|
|
234
|
+
limitPrice: string;
|
|
235
|
+
clientOid: string;
|
|
236
|
+
isIsolated: boolean;
|
|
237
|
+
autoRepay?: boolean;
|
|
238
|
+
autoBorrow?: boolean;
|
|
239
|
+
}
|
|
240
|
+
export interface CancelMarginOcoOrderByOrderIdRequest {
|
|
241
|
+
orderId: string;
|
|
242
|
+
}
|
|
243
|
+
export interface CancelMarginOcoOrderByClientOidRequest {
|
|
244
|
+
clientOid: string;
|
|
245
|
+
}
|
|
246
|
+
export interface BatchCancelMarginOcoOrdersRequest {
|
|
247
|
+
orderIds?: string;
|
|
248
|
+
symbol?: string;
|
|
249
|
+
tradeType?: 'MARGIN_TRADE' | 'MARGIN_ISOLATED_TRADE';
|
|
250
|
+
}
|
|
251
|
+
export interface GetMarginOcoOrderByClientOidRequest {
|
|
252
|
+
clientOid: string;
|
|
253
|
+
}
|
|
254
|
+
export interface GetMarginOcoOrderDetailByOrderIdRequest {
|
|
255
|
+
orderId: string;
|
|
256
|
+
}
|
|
@@ -50,3 +50,18 @@ export interface AffiliateInvitees {
|
|
|
50
50
|
totalPage: number;
|
|
51
51
|
items: AffiliateInviteeItem[];
|
|
52
52
|
}
|
|
53
|
+
export interface AffiliateTransactionItem {
|
|
54
|
+
uid: string;
|
|
55
|
+
tradeTime: number;
|
|
56
|
+
tradeType: 'SPOT' | 'FEATURE';
|
|
57
|
+
tradeCurrency: string;
|
|
58
|
+
tradeAmount: string;
|
|
59
|
+
tradeAmountU: string;
|
|
60
|
+
feeU: string;
|
|
61
|
+
commission: string;
|
|
62
|
+
currency: 'USDT' | 'USDC';
|
|
63
|
+
}
|
|
64
|
+
export interface AffiliateTransaction {
|
|
65
|
+
items: AffiliateTransactionItem[];
|
|
66
|
+
lastId: string;
|
|
67
|
+
}
|
|
@@ -48,6 +48,7 @@ export interface HFMarginOrder {
|
|
|
48
48
|
active: boolean;
|
|
49
49
|
createdAt: number;
|
|
50
50
|
lastUpdatedAt: number;
|
|
51
|
+
cancelReason?: number;
|
|
51
52
|
}
|
|
52
53
|
/** @deprecated not used anymore **/
|
|
53
54
|
export type HFMarginFilledOrder = HFMarginOrder & {
|
|
@@ -319,4 +320,97 @@ export interface LendingRedemption {
|
|
|
319
320
|
totalPage: number;
|
|
320
321
|
items: LendingOrder[];
|
|
321
322
|
}
|
|
323
|
+
export interface BorrowInterestRateItem {
|
|
324
|
+
currency: string;
|
|
325
|
+
hourlyBorrowRate: string;
|
|
326
|
+
annualizedBorrowRate: string;
|
|
327
|
+
}
|
|
328
|
+
export interface BorrowInterestRate {
|
|
329
|
+
vipLevel: number;
|
|
330
|
+
items: BorrowInterestRateItem[];
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Margin Stop Order Response Types
|
|
334
|
+
*/
|
|
335
|
+
export interface MarginStopOrderResponse {
|
|
336
|
+
orderId: string;
|
|
337
|
+
clientOid: string;
|
|
338
|
+
}
|
|
339
|
+
export interface CancelMarginOrdersResponse {
|
|
340
|
+
cancelledOrderIds: string[];
|
|
341
|
+
}
|
|
342
|
+
export interface MarginStopOrderItem {
|
|
343
|
+
id?: string;
|
|
344
|
+
symbol?: string;
|
|
345
|
+
userId?: string;
|
|
346
|
+
status?: 'NEW' | 'TRIGGERED';
|
|
347
|
+
type?: 'limit' | 'market';
|
|
348
|
+
side?: 'buy' | 'sell';
|
|
349
|
+
price?: string;
|
|
350
|
+
size?: string;
|
|
351
|
+
funds?: string | null;
|
|
352
|
+
stp?: string | null;
|
|
353
|
+
timeInForce?: 'GTC' | 'GTT' | 'IOC' | 'FOK';
|
|
354
|
+
cancelAfter?: number;
|
|
355
|
+
postOnly?: boolean;
|
|
356
|
+
hidden?: boolean;
|
|
357
|
+
iceberg?: boolean;
|
|
358
|
+
visibleSize?: string | null;
|
|
359
|
+
channel?: string;
|
|
360
|
+
clientOid?: string;
|
|
361
|
+
remark?: string | null;
|
|
362
|
+
tags?: string | null;
|
|
363
|
+
relatedNo?: string | null;
|
|
364
|
+
orderTime?: number;
|
|
365
|
+
domainId?: string;
|
|
366
|
+
tradeSource?: 'USER' | 'MARGIN_SYSTEM';
|
|
367
|
+
tradeType?: 'TRADE' | 'MARGIN_TRADE' | 'MARGIN_ISOLATED_TRADE';
|
|
368
|
+
feeCurrency?: string;
|
|
369
|
+
takerFeeRate?: string;
|
|
370
|
+
makerFeeRate?: string;
|
|
371
|
+
createdAt?: number;
|
|
372
|
+
stop?: 'loss' | 'entry';
|
|
373
|
+
stopTriggerTime?: number | null;
|
|
374
|
+
stopPrice?: string;
|
|
375
|
+
limitPrice?: string | null;
|
|
376
|
+
pop?: string | null;
|
|
377
|
+
activateCondition?: string | null;
|
|
378
|
+
}
|
|
379
|
+
export interface MarginStopOrdersList {
|
|
380
|
+
currentPage: number;
|
|
381
|
+
pageSize: number;
|
|
382
|
+
totalNum: number;
|
|
383
|
+
totalPage: number;
|
|
384
|
+
items: MarginStopOrderItem[];
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Margin OCO Order Response Types
|
|
388
|
+
*/
|
|
389
|
+
export interface MarginOcoOrderResponse {
|
|
390
|
+
orderId: string;
|
|
391
|
+
}
|
|
392
|
+
export interface MarginOcoOrderItem {
|
|
393
|
+
orderId: string;
|
|
394
|
+
symbol: string;
|
|
395
|
+
clientOid: string;
|
|
396
|
+
orderTime: number;
|
|
397
|
+
status: 'NEW' | 'DONE' | 'TRIGGERED' | 'CANCELLED';
|
|
398
|
+
}
|
|
399
|
+
export interface MarginOcoOrderSubOrder {
|
|
400
|
+
id: string;
|
|
401
|
+
symbol: string;
|
|
402
|
+
side: 'buy' | 'sell';
|
|
403
|
+
price: string;
|
|
404
|
+
stopPrice: string;
|
|
405
|
+
size: string;
|
|
406
|
+
status: 'NEW' | 'DONE' | 'TRIGGERED' | 'CANCELLED';
|
|
407
|
+
}
|
|
408
|
+
export interface MarginOcoOrderDetails {
|
|
409
|
+
orderId: string;
|
|
410
|
+
symbol: string;
|
|
411
|
+
clientOid: string;
|
|
412
|
+
orderTime: number;
|
|
413
|
+
status: 'NEW' | 'DONE' | 'TRIGGERED' | 'CANCELLED';
|
|
414
|
+
orders: MarginOcoOrderSubOrder[];
|
|
415
|
+
}
|
|
322
416
|
export {};
|