kucoin-api 2.5.4 → 2.5.5

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.
@@ -9,3 +9,104 @@ export interface MessageEventLike<TDataType = string> {
9
9
  data: TDataType;
10
10
  }
11
11
  export declare function isMessageEvent(msg: unknown): msg is MessageEventLike;
12
+ /**
13
+ * UTA WebSocket private balance push (`channel: balance`).
14
+ * Field `cS` added 2026.07.01 (platform-level margin collateral status).
15
+ * @see https://www.kucoin.com/docs-new/3470231w0
16
+ */
17
+ export interface WsUTABalancePushData {
18
+ U: number | string;
19
+ a: string;
20
+ b: string;
21
+ c: string;
22
+ e?: string;
23
+ h: string;
24
+ l?: string;
25
+ /** Platform-level margin collateral status (UNIFIED balance pushes) */
26
+ cS?: string;
27
+ }
28
+ export interface WsUTABalancePush {
29
+ P: number;
30
+ T: string;
31
+ d: WsUTABalancePushData;
32
+ }
33
+ /**
34
+ * UTA WebSocket private position push (`channel: position` / `positionAll`).
35
+ * Fields `pM` and `r` added 2026.06.03; `adl` added 2026.05.15.
36
+ * @see https://www.kucoin.com/docs-new/3470233w0
37
+ */
38
+ export interface WsUTAPositionPushData {
39
+ O?: number;
40
+ U: number;
41
+ l?: string;
42
+ q: string;
43
+ s: string;
44
+ bP?: string;
45
+ eP?: string;
46
+ iM?: string;
47
+ lP?: string;
48
+ mM: string;
49
+ /** Mark price */
50
+ mP?: string;
51
+ pV?: string;
52
+ pi?: string;
53
+ mmr?: string;
54
+ mtM?: string;
55
+ rPL?: string;
56
+ uPL?: string;
57
+ /** Margin occupied by the futures position (as of 2026.06.03) */
58
+ pM?: string;
59
+ /** Isolated futures risk ratio, e.g. 0.65 = 65% (as of 2026.06.03) */
60
+ r?: string;
61
+ /** ADL ranking percentile, e.g. 0.46 = 46% (as of 2026.05.15) */
62
+ adl?: string;
63
+ }
64
+ export interface WsUTAPositionPush {
65
+ P: number;
66
+ T: string;
67
+ d: WsUTAPositionPushData;
68
+ }
69
+ /**
70
+ * UTA WebSocket public Funding Fee channel (`channel: fundingFee`, FUTURES).
71
+ * Added 2026.07.01.
72
+ */
73
+ export interface WsUTAFundingFeePublicPush {
74
+ T: string;
75
+ P: number;
76
+ d: {
77
+ s: string;
78
+ fR?: string;
79
+ fT?: number;
80
+ M?: number;
81
+ [key: string]: string | number | boolean | undefined;
82
+ };
83
+ }
84
+ /**
85
+ * UTA WebSocket public Mark Price channel (`channel: markPrice`, FUTURES).
86
+ * Added 2026.07.01.
87
+ */
88
+ export interface WsUTAMarkPricePublicPush {
89
+ T: string;
90
+ P: number;
91
+ d: {
92
+ s: string;
93
+ mP?: string;
94
+ M?: number;
95
+ [key: string]: string | number | boolean | undefined;
96
+ };
97
+ }
98
+ /**
99
+ * Classic futures WebSocket `/contract/positionAll` funding fee settlement push.
100
+ * `symbol` added to `data` field 2026.07.01.
101
+ * @see https://www.kucoin.com/docs-new/3470088w0
102
+ */
103
+ export interface WsClassicFuturesFundingFeeSettlement {
104
+ topic: string;
105
+ subject: 'funding.begin' | 'funding.end';
106
+ data: {
107
+ symbol: string;
108
+ fundingTime: number;
109
+ fundingRate: number;
110
+ timestamp: number;
111
+ };
112
+ }