kucoin-api 2.3.1 → 2.3.3

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.
@@ -32,3 +32,11 @@ export interface GetAffiliateTransactionRequest {
32
32
  direction?: 'PRE' | 'NEXT';
33
33
  pageSize?: number;
34
34
  }
35
+ export interface GetKuminingRequest {
36
+ uid?: string;
37
+ startAt?: number;
38
+ endAt?: number;
39
+ lastId?: string;
40
+ direction?: 'PRE' | 'NEXT';
41
+ pageSize?: number;
42
+ }
@@ -254,3 +254,9 @@ export interface GetMarginOcoOrderByClientOidRequest {
254
254
  export interface GetMarginOcoOrderDetailByOrderIdRequest {
255
255
  orderId: string;
256
256
  }
257
+ /**
258
+ * Get Margin Collateral Ratio
259
+ */
260
+ export interface GetMarginCollateralRatioRequest {
261
+ currencyList?: string;
262
+ }
@@ -48,6 +48,7 @@ export interface AccountBalance {
48
48
  currency: string;
49
49
  riskRatio: number;
50
50
  maxWithdrawAmount: number;
51
+ availableMargin: number;
51
52
  }
52
53
  export interface AccountSummary {
53
54
  accountEquityTotal: number;
@@ -156,6 +157,8 @@ export interface FuturesSymbolInfo {
156
157
  fundingFeeRate: number;
157
158
  predictedFundingFeeRate: number;
158
159
  fundingRateGranularity: number;
160
+ effectiveFundingRateCycleStartTime: number;
161
+ currentFundingRateGranularity: number;
159
162
  openInterest: string;
160
163
  turnoverOf24h: number;
161
164
  volumeOf24h: number;
@@ -613,4 +616,28 @@ export interface CopyTradePosition {
613
616
  bankruptPrice: string;
614
617
  settleCurrency: string;
615
618
  }
619
+ /**
620
+ * Switch Margin Mode Response (Copy Trading)
621
+ */
622
+ export interface CopyTradeSwitchMarginModeResponse {
623
+ symbol: string;
624
+ marginMode: 'ISOLATED' | 'CROSS';
625
+ }
626
+ /**
627
+ * Get Cross Margin Requirement Response (Copy Trading)
628
+ */
629
+ export interface CopyTradeCrossMarginRequirement {
630
+ imr: string;
631
+ mmr: string;
632
+ positionValue: string;
633
+ price: string;
634
+ size: number;
635
+ symbol: string;
636
+ }
637
+ /**
638
+ * Switch Position Mode Response (Copy Trading)
639
+ */
640
+ export interface CopyTradeSwitchPositionModeResponse {
641
+ positionMode: '0' | '1';
642
+ }
616
643
  export {};
@@ -186,3 +186,29 @@ export interface DeleteSubAccountAPI {
186
186
  subName: string;
187
187
  apiKey: string;
188
188
  }
189
+ /**
190
+ * Get KYC Regions Response
191
+ */
192
+ export interface KYCRegion {
193
+ code: string;
194
+ enName: string;
195
+ }
196
+ /**
197
+ * Get API Key Info Response
198
+ */
199
+ export interface ApiKeyInfo {
200
+ uid: number;
201
+ parentUid?: number;
202
+ region: string;
203
+ kycStatus: 0 | 1;
204
+ subName?: string;
205
+ remark: string;
206
+ apiKey: string;
207
+ apiVersion: number;
208
+ permission: string;
209
+ ipWhitelist?: string;
210
+ isMaster: boolean;
211
+ createdAt: number;
212
+ expiredAt?: number | null;
213
+ thirdPartyApp?: string;
214
+ }
@@ -65,3 +65,11 @@ export interface AffiliateTransaction {
65
65
  items: AffiliateTransactionItem[];
66
66
  lastId: string;
67
67
  }
68
+ export interface KuminingItem {
69
+ uid: string;
70
+ goodsName: string;
71
+ amount: string;
72
+ currency: string;
73
+ lastId: string;
74
+ payTime: number;
75
+ }
@@ -413,4 +413,23 @@ export interface MarginOcoOrderDetails {
413
413
  status: 'NEW' | 'DONE' | 'TRIGGERED' | 'CANCELLED';
414
414
  orders: MarginOcoOrderSubOrder[];
415
415
  }
416
+ /**
417
+ * Get Margin Collateral Ratio Response
418
+ */
419
+ export interface MarginCollateralRatioItem {
420
+ lowerLimit: string;
421
+ upperLimit: string;
422
+ collateralRatio: string;
423
+ }
424
+ export interface MarginCollateralRatioData {
425
+ currencyList: string[];
426
+ items: MarginCollateralRatioItem[];
427
+ }
428
+ /**
429
+ * Get Market Available Inventory Response
430
+ */
431
+ export interface MarketAvailableInventoryItem {
432
+ currency: string;
433
+ borrowableAmount: string;
434
+ }
416
435
  export {};