kucoin-api 2.1.21 → 2.1.22

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.
@@ -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 {};
@@ -257,6 +257,7 @@ export interface HFOrder {
257
257
  tax: string;
258
258
  createdAt: number;
259
259
  lastUpdatedAt: number;
260
+ cancelReason: number;
260
261
  }
261
262
  /**
262
263
  *