@siebly/kraken-api 1.0.5 → 1.1.1
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/README.md +1 -0
- package/dist/cjs/DerivativesClient.d.ts +4 -0
- package/dist/cjs/DerivativesClient.js +4 -0
- package/dist/cjs/DerivativesClient.js.map +1 -1
- package/dist/cjs/SpotClient.d.ts +22 -6
- package/dist/cjs/SpotClient.js +25 -0
- package/dist/cjs/SpotClient.js.map +1 -1
- package/dist/cjs/types/request/spot.types.d.ts +25 -2
- package/dist/cjs/types/response/derivatives.types.d.ts +19 -16
- package/dist/cjs/types/response/spot.types.d.ts +66 -2
- package/dist/cjs/types/websockets/ws-subscriptions.d.ts +14 -0
- package/dist/mjs/DerivativesClient.d.ts +4 -0
- package/dist/mjs/DerivativesClient.js +4 -0
- package/dist/mjs/DerivativesClient.js.map +1 -1
- package/dist/mjs/SpotClient.d.ts +22 -6
- package/dist/mjs/SpotClient.js +25 -0
- package/dist/mjs/SpotClient.js.map +1 -1
- package/dist/mjs/types/request/spot.types.d.ts +25 -2
- package/dist/mjs/types/response/derivatives.types.d.ts +19 -16
- package/dist/mjs/types/response/spot.types.d.ts +66 -2
- package/dist/mjs/types/websockets/ws-subscriptions.d.ts +14 -0
- package/llms.txt +9672 -8477
- package/package.json +2 -4
package/dist/mjs/SpotClient.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseRestClient } from './lib/BaseRestClient.js';
|
|
2
2
|
import { RestClientType } from './lib/requestUtils.js';
|
|
3
|
-
import { OauthCreateFastApiKeyParams, OauthGetAccessTokenParams, OauthUpdateFastApiKeyParams, SpotAccountTransferParams, SpotAmendOrderParams, SpotGetAssetPairsParams, SpotGetClosedOrdersParams, SpotGetDepositAddressesParams, SpotGetDepositMethodsParams, SpotGetDepositStatusParams, SpotGetLedgersInfoParams, SpotGetOHLCParams, SpotGetOpenOrdersParams, SpotGetOpenPositionsParams, SpotGetOrderBookParams, SpotGetPostTradeDataParams, SpotGetRecentSpreadsParams, SpotGetRecentTradesParams, SpotGetTradesHistoryParams, SpotGetWithdrawalAddressesParams, SpotGetWithdrawalInfoParams, SpotGetWithdrawalMethodsParams, SpotGetWithdrawalsStatusParams, SpotListEarnAllocationsParams, SpotListEarnStrategiesParams, SpotQueryLedgersParams, SpotQueryOrdersParams, SpotQueryTradesParams, SpotRequestExportReportParams, SpotSubmitOrderBatchParams, SpotSubmitOrderParams, SpotWalletTransferParams, SpotWithdrawFundsParams } from './types/request/spot.types.js';
|
|
3
|
+
import { OauthCreateFastApiKeyParams, OauthGetAccessTokenParams, OauthUpdateFastApiKeyParams, SpotAccountTransferParams, SpotAmendOrderParams, SpotGetApiKeyInfoParams, SpotGetAssetPairsParams, SpotGetClosedOrdersParams, SpotGetDepositAddressesParams, SpotGetDepositMethodsParams, SpotGetDepositStatusParams, SpotGetGroupedBookParams, SpotGetLedgersInfoParams, SpotGetLevel3Params, SpotGetOHLCParams, SpotGetOpenOrdersParams, SpotGetOpenPositionsParams, SpotGetOrderBookParams, SpotGetPostTradeDataParams, SpotGetRecentSpreadsParams, SpotGetRecentTradesParams, SpotGetTradesHistoryParams, SpotGetTradingVolumeParams, SpotGetWithdrawalAddressesParams, SpotGetWithdrawalInfoParams, SpotGetWithdrawalMethodsParams, SpotGetWithdrawalsStatusParams, SpotListEarnAllocationsParams, SpotListEarnStrategiesParams, SpotQueryLedgersParams, SpotQueryOrdersParams, SpotQueryTradesParams, SpotRequestExportReportParams, SpotSubmitOrderBatchParams, SpotSubmitOrderParams, SpotWalletTransferParams, SpotWithdrawFundsParams } from './types/request/spot.types.js';
|
|
4
4
|
import { SpotAPISuccessResponse } from './types/response/shared.types.js';
|
|
5
|
-
import { OauthCreateFastApiKeyResponse, OauthFastApiKey, OauthGetAccessTokenResponse, OauthGetUserInfoResponse, SpotAccountBalance, SpotAccountTransferResponse, SpotAssetInfo, SpotAssetPair, SpotAssetTickerInfo, SpotBatchOrderResult, SpotClosedOrdersResponse, SpotCreditLines, SpotDeleteExportReportResponse, SpotDepositAddress, SpotDepositMethod, SpotDepositStatusResponse, SpotEarnStrategy, SpotExportReportStatus, SpotExtendedBalance, SpotLedgersInfoResponse, SpotListEarnAllocationsResponse, SpotOHLCResponse, SpotOpenOrdersResponse, SpotOpenPositionsResponse, SpotOrderAmendsResponse, SpotOrderBookResponse, SpotPostTradeDataResponse, SpotPreTradeData, SpotQueryLedgersResponse, SpotQueryOrdersResponse, SpotQueryTradesResponse, SpotRecentSpreadsResponse, SpotRecentTradesResponse, SpotRequestExportReportResponse, SpotSubmitOrderResponse, SpotSystemStatus, SpotTradeBalance, SpotTradesHistoryResponse, SpotTradeVolume, SpotWebSocketsTokenResponse, SpotWithdrawalAddress, SpotWithdrawalInfo, SpotWithdrawalMethod, SpotWithdrawalStatus } from './types/response/spot.types.js';
|
|
5
|
+
import { OauthCreateFastApiKeyResponse, OauthFastApiKey, OauthGetAccessTokenResponse, OauthGetUserInfoResponse, SpotAccountBalance, SpotAccountTransferResponse, SpotApiKeyInfo, SpotAssetInfo, SpotAssetPair, SpotAssetTickerInfo, SpotBatchOrderResult, SpotClosedOrdersResponse, SpotCreditLines, SpotDeleteExportReportResponse, SpotDepositAddress, SpotDepositMethod, SpotDepositStatusResponse, SpotEarnStrategy, SpotExportReportStatus, SpotExtendedBalance, SpotGroupedBookResponse, SpotLedgersInfoResponse, SpotLevel3OrderBookResponse, SpotListEarnAllocationsResponse, SpotOHLCResponse, SpotOpenOrdersResponse, SpotOpenPositionsResponse, SpotOrderAmendsResponse, SpotOrderBookResponse, SpotPostTradeDataResponse, SpotPreTradeData, SpotQueryLedgersResponse, SpotQueryOrdersResponse, SpotQueryTradesResponse, SpotRecentSpreadsResponse, SpotRecentTradesResponse, SpotRequestExportReportResponse, SpotSubmitOrderResponse, SpotSystemStatus, SpotTradeBalance, SpotTradesHistoryResponse, SpotTradeVolume, SpotWebSocketsTokenResponse, SpotWithdrawalAddress, SpotWithdrawalInfo, SpotWithdrawalMethod, SpotWithdrawalStatus } from './types/response/spot.types.js';
|
|
6
6
|
/**
|
|
7
7
|
* The SpotClient provides integration to the Kraken Spot API.
|
|
8
8
|
*
|
|
@@ -79,6 +79,18 @@ export declare class SpotClient extends BaseRestClient {
|
|
|
79
79
|
* order quantities at each level.
|
|
80
80
|
*/
|
|
81
81
|
getOrderBook(params: SpotGetOrderBookParams): Promise<SpotAPISuccessResponse<SpotOrderBookResponse>>;
|
|
82
|
+
/**
|
|
83
|
+
* Get Grouped Order Book
|
|
84
|
+
*
|
|
85
|
+
* Aggregates order book volume over a configurable tick grouping.
|
|
86
|
+
*/
|
|
87
|
+
getGroupedBook(params: SpotGetGroupedBookParams): Promise<SpotAPISuccessResponse<SpotGroupedBookResponse>>;
|
|
88
|
+
/**
|
|
89
|
+
* Get Level 3 Order Book
|
|
90
|
+
*
|
|
91
|
+
* Individual order-level book data. Requires authentication.
|
|
92
|
+
*/
|
|
93
|
+
getLevel3OrderBook(params: SpotGetLevel3Params): Promise<SpotAPISuccessResponse<SpotLevel3OrderBookResponse>>;
|
|
82
94
|
/**
|
|
83
95
|
* Get Recent Trades
|
|
84
96
|
*
|
|
@@ -104,6 +116,12 @@ export declare class SpotClient extends BaseRestClient {
|
|
|
104
116
|
getAccountBalance(params?: {
|
|
105
117
|
rebase_multiplier?: 'rebased' | 'base';
|
|
106
118
|
}): Promise<SpotAPISuccessResponse<SpotAccountBalance>>;
|
|
119
|
+
/**
|
|
120
|
+
* Get API Key Info
|
|
121
|
+
*
|
|
122
|
+
* Retrieve configuration and usage details for the API key used in the request.
|
|
123
|
+
*/
|
|
124
|
+
getApiKeyInfo(params?: SpotGetApiKeyInfoParams): Promise<SpotAPISuccessResponse<SpotApiKeyInfo>>;
|
|
107
125
|
/**
|
|
108
126
|
* Get Extended Balance
|
|
109
127
|
*
|
|
@@ -192,11 +210,9 @@ export declare class SpotClient extends BaseRestClient {
|
|
|
192
210
|
* Get Trade Volume
|
|
193
211
|
*
|
|
194
212
|
* Returns 30 day USD trading volume and resulting fee schedule for any asset pair(s) provided.
|
|
213
|
+
* Also use this endpoint (with a Spot API key) to determine Futures fee rates as of 2026-06-22.
|
|
195
214
|
*/
|
|
196
|
-
getTradingVolume(params?:
|
|
197
|
-
pair?: string;
|
|
198
|
-
rebase_multiplier?: 'rebased' | 'base';
|
|
199
|
-
}): Promise<SpotAPISuccessResponse<SpotTradeVolume>>;
|
|
215
|
+
getTradingVolume(params?: SpotGetTradingVolumeParams): Promise<SpotAPISuccessResponse<SpotTradeVolume>>;
|
|
200
216
|
/**
|
|
201
217
|
* Request Export Report
|
|
202
218
|
*
|
package/dist/mjs/SpotClient.js
CHANGED
|
@@ -93,6 +93,22 @@ export class SpotClient extends BaseRestClient {
|
|
|
93
93
|
getOrderBook(params) {
|
|
94
94
|
return this.get('0/public/Depth', params);
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Get Grouped Order Book
|
|
98
|
+
*
|
|
99
|
+
* Aggregates order book volume over a configurable tick grouping.
|
|
100
|
+
*/
|
|
101
|
+
getGroupedBook(params) {
|
|
102
|
+
return this.get('0/public/GroupedBook', params);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get Level 3 Order Book
|
|
106
|
+
*
|
|
107
|
+
* Individual order-level book data. Requires authentication.
|
|
108
|
+
*/
|
|
109
|
+
getLevel3OrderBook(params) {
|
|
110
|
+
return this.postPrivate('0/private/Level3', { body: params });
|
|
111
|
+
}
|
|
96
112
|
/**
|
|
97
113
|
* Get Recent Trades
|
|
98
114
|
*
|
|
@@ -122,6 +138,14 @@ export class SpotClient extends BaseRestClient {
|
|
|
122
138
|
getAccountBalance(params) {
|
|
123
139
|
return this.postPrivate('0/private/Balance', { body: params });
|
|
124
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Get API Key Info
|
|
143
|
+
*
|
|
144
|
+
* Retrieve configuration and usage details for the API key used in the request.
|
|
145
|
+
*/
|
|
146
|
+
getApiKeyInfo(params) {
|
|
147
|
+
return this.postPrivate('0/private/GetApiKeyInfo', { body: params });
|
|
148
|
+
}
|
|
125
149
|
/**
|
|
126
150
|
* Get Extended Balance
|
|
127
151
|
*
|
|
@@ -225,6 +249,7 @@ export class SpotClient extends BaseRestClient {
|
|
|
225
249
|
* Get Trade Volume
|
|
226
250
|
*
|
|
227
251
|
* Returns 30 day USD trading volume and resulting fee schedule for any asset pair(s) provided.
|
|
252
|
+
* Also use this endpoint (with a Spot API key) to determine Futures fee rates as of 2026-06-22.
|
|
228
253
|
*/
|
|
229
254
|
getTradingVolume(params) {
|
|
230
255
|
return this.postPrivate('0/private/TradeVolume', { body: params });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpotClient.js","sourceRoot":"","sources":["../../src/SpotClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAkB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"SpotClient.js","sourceRoot":"","sources":["../../src/SpotClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAkB,MAAM,uBAAuB,CAAC;AA2F9E;;;;;;GAMG;AACH,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC5C,aAAa;QACX,2BAA2B;QAC3B,OAAO,qBAAqB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED;;;;OAIG;IAEH,kBAAkB;QAChB,kEAAkE;QAClE,+CAA+C;QAC/C,MAAM,QAAQ,GAAG,kBAAkB,CAAC;QACpC,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;YAC5B,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC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,CAAC,CAAC;IAClE,CAAC;IAED;;;;;OAKG;IACH,qBAAqB,CAAC,MAErB;QAGC,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;OAKG;IACH,qBAAqB,CAAC,MAAmC;QAGvD,OAAO,IAAI,CAAC,UAAU,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACH,oBAAoB;QAGlB,OAAO,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -6,6 +6,7 @@ export interface SpotGetAssetPairsParams {
|
|
|
6
6
|
aclass_base?: 'currency' | 'tokenized_asset';
|
|
7
7
|
info?: 'info' | 'leverage' | 'fees' | 'margin';
|
|
8
8
|
country_code?: string;
|
|
9
|
+
execution_venue?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface SpotGetOHLCParams {
|
|
11
12
|
pair: string;
|
|
@@ -18,6 +19,24 @@ export interface SpotGetOrderBookParams {
|
|
|
18
19
|
count?: number;
|
|
19
20
|
asset_class?: 'tokenized_asset';
|
|
20
21
|
}
|
|
22
|
+
export interface SpotGetGroupedBookParams {
|
|
23
|
+
pair: string;
|
|
24
|
+
depth?: 10 | 25 | 100 | 250 | 1000;
|
|
25
|
+
grouping?: 1 | 5 | 10 | 25 | 50 | 100 | 250 | 500 | 1000;
|
|
26
|
+
}
|
|
27
|
+
export interface SpotGetLevel3Params {
|
|
28
|
+
pair: string;
|
|
29
|
+
depth?: 0 | 10 | 25 | 100 | 250 | 1000;
|
|
30
|
+
}
|
|
31
|
+
export interface SpotTradeVolumePairInput {
|
|
32
|
+
asset: string;
|
|
33
|
+
aclass: 'currency' | 'forex' | 'equity' | 'equity_pair' | 'nft' | 'derivatives' | 'tokenized_asset' | 'futures_contract';
|
|
34
|
+
}
|
|
35
|
+
export interface SpotGetTradingVolumeParams {
|
|
36
|
+
pair?: string | SpotTradeVolumePairInput[];
|
|
37
|
+
fee_schedule?: boolean;
|
|
38
|
+
rebase_multiplier?: 'rebased' | 'base';
|
|
39
|
+
}
|
|
21
40
|
export interface SpotGetRecentTradesParams {
|
|
22
41
|
pair: string;
|
|
23
42
|
since?: string;
|
|
@@ -32,6 +51,9 @@ export interface SpotGetRecentSpreadsParams {
|
|
|
32
51
|
/**
|
|
33
52
|
* Account Data
|
|
34
53
|
*/
|
|
54
|
+
export interface SpotGetApiKeyInfoParams {
|
|
55
|
+
otp?: string;
|
|
56
|
+
}
|
|
35
57
|
export interface SpotGetOpenOrdersParams {
|
|
36
58
|
trades?: boolean;
|
|
37
59
|
userref?: number;
|
|
@@ -120,7 +142,7 @@ export interface SpotSubmitOrderParams {
|
|
|
120
142
|
reduce_only?: boolean;
|
|
121
143
|
stptype?: 'cancel-newest' | 'cancel-oldest' | 'cancel-both';
|
|
122
144
|
oflags?: string;
|
|
123
|
-
timeinforce?: 'GTC' | 'IOC' | 'GTD';
|
|
145
|
+
timeinforce?: 'GTC' | 'IOC' | 'GTD' | 'FOK';
|
|
124
146
|
starttm?: string;
|
|
125
147
|
expiretm?: string;
|
|
126
148
|
'close[ordertype]'?: string;
|
|
@@ -154,7 +176,7 @@ export interface SpotBatchOrderItem {
|
|
|
154
176
|
reduce_only?: boolean;
|
|
155
177
|
stptype?: 'cancel-newest' | 'cancel-oldest' | 'cancel-both';
|
|
156
178
|
oflags?: string;
|
|
157
|
-
timeinforce?: 'GTC' | 'IOC' | 'GTD';
|
|
179
|
+
timeinforce?: 'GTC' | 'IOC' | 'GTD' | 'FOK';
|
|
158
180
|
starttm?: string;
|
|
159
181
|
expiretm?: string;
|
|
160
182
|
close?: {
|
|
@@ -167,6 +189,7 @@ export interface SpotSubmitOrderBatchParams {
|
|
|
167
189
|
orders: SpotBatchOrderItem[];
|
|
168
190
|
pair: string;
|
|
169
191
|
asset_class?: 'tokenized_asset';
|
|
192
|
+
broker?: string;
|
|
170
193
|
deadline?: string;
|
|
171
194
|
validate?: boolean;
|
|
172
195
|
}
|
|
@@ -98,6 +98,7 @@ export interface FuturesInstrument {
|
|
|
98
98
|
retailMarginLevels?: FuturesMarginLevel[];
|
|
99
99
|
marginLevels?: FuturesMarginLevel[];
|
|
100
100
|
postOnly?: boolean;
|
|
101
|
+
/** @deprecated Effective 2026-06-22. Fee schedules are deprecated; use Spot GetTradeVolume instead. */
|
|
101
102
|
feeScheduleUid?: string;
|
|
102
103
|
tags?: string[];
|
|
103
104
|
underlyingFuture?: string;
|
|
@@ -116,9 +117,9 @@ export interface FuturesInstrumentStatus {
|
|
|
116
117
|
export interface FuturesOrderJson {
|
|
117
118
|
orderId: string;
|
|
118
119
|
cliOrdId?: string | null;
|
|
119
|
-
type: 'lmt' | 'ioc' | 'post' | 'liquidation' | 'assignment' | 'stp' | 'unwind' | 'block' | 'fok';
|
|
120
|
+
type: 'lmt' | 'ioc' | 'post' | 'liquidation' | 'assignment' | 'stp' | 'unwind' | 'block' | 'fok' | 'unknown';
|
|
120
121
|
symbol: string;
|
|
121
|
-
side: 'buy' | 'sell';
|
|
122
|
+
side: 'buy' | 'sell' | 'unknown';
|
|
122
123
|
quantity: number;
|
|
123
124
|
filled: number;
|
|
124
125
|
limitPrice: number;
|
|
@@ -130,14 +131,14 @@ export interface FuturesOrderJson {
|
|
|
130
131
|
export interface FuturesOrderTriggerJson {
|
|
131
132
|
uid: string;
|
|
132
133
|
clientId: string | null;
|
|
133
|
-
type: 'lmt' | 'ioc' | 'post' | 'liquidation' | 'assignment' | 'stp' | 'unwind' | 'fok';
|
|
134
|
+
type: 'lmt' | 'ioc' | 'post' | 'liquidation' | 'assignment' | 'stp' | 'unwind' | 'fok' | 'unknown';
|
|
134
135
|
symbol: string;
|
|
135
|
-
side: 'buy' | 'sell';
|
|
136
|
+
side: 'buy' | 'sell' | 'unknown';
|
|
136
137
|
quantity: number | null;
|
|
137
138
|
limitPrice: number | null;
|
|
138
139
|
triggerPrice: number | null;
|
|
139
|
-
triggerSide: 'trigger_above' | 'trigger_below' | null;
|
|
140
|
-
triggerSignal: 'mark_price' | 'last_price' | 'spot_price' | null;
|
|
140
|
+
triggerSide: 'trigger_above' | 'trigger_below' | 'unknown' | null;
|
|
141
|
+
triggerSignal: 'mark_price' | 'last_price' | 'spot_price' | 'unknown' | null;
|
|
141
142
|
reduceOnly: boolean;
|
|
142
143
|
timestamp: string;
|
|
143
144
|
lastUpdateTimestamp: string;
|
|
@@ -232,15 +233,15 @@ export interface FuturesOpenOrder {
|
|
|
232
233
|
order_id: string;
|
|
233
234
|
cliOrdId?: string;
|
|
234
235
|
status: 'untouched' | 'partiallyFilled';
|
|
235
|
-
side: 'buy' | 'sell';
|
|
236
|
-
orderType: 'lmt' | 'stop' | 'take_profit';
|
|
236
|
+
side: 'buy' | 'sell' | 'unknown';
|
|
237
|
+
orderType: 'lmt' | 'stop' | 'take_profit' | 'unknown';
|
|
237
238
|
symbol: string;
|
|
238
239
|
limitPrice?: number;
|
|
239
240
|
stopPrice?: number;
|
|
240
241
|
filledSize: number;
|
|
241
242
|
unfilledSize?: number;
|
|
242
243
|
reduceOnly: boolean;
|
|
243
|
-
triggerSignal?: 'mark' | 'last' | 'spot';
|
|
244
|
+
triggerSignal?: 'mark' | 'last' | 'spot' | 'unknown';
|
|
244
245
|
lastUpdateTime: string;
|
|
245
246
|
receivedTime: string;
|
|
246
247
|
}
|
|
@@ -253,8 +254,8 @@ export interface FuturesSendOrderStatus {
|
|
|
253
254
|
}
|
|
254
255
|
export interface FuturesTriggerOptions {
|
|
255
256
|
triggerPrice: number;
|
|
256
|
-
triggerSide: 'TRIGGER_ABOVE' | 'TRIGGER_BELOW';
|
|
257
|
-
triggerSignal: 'MARK_PRICE' | 'LAST_PRICE' | 'SPOT_PRICE';
|
|
257
|
+
triggerSide: 'TRIGGER_ABOVE' | 'TRIGGER_BELOW' | 'unknown';
|
|
258
|
+
triggerSignal: 'MARK_PRICE' | 'LAST_PRICE' | 'SPOT_PRICE' | 'unknown';
|
|
258
259
|
triggerTime: string | null;
|
|
259
260
|
}
|
|
260
261
|
export interface FuturesOrderStatusInfo {
|
|
@@ -273,7 +274,7 @@ export interface FuturesOrderStatusInfo {
|
|
|
273
274
|
priceTriggerOptions?: FuturesTriggerOptions;
|
|
274
275
|
};
|
|
275
276
|
status: 'ENTERED_BOOK' | 'FULLY_EXECUTED' | 'REJECTED' | 'CANCELLED' | 'TRIGGER_PLACED' | 'TRIGGER_ACTIVATION_FAILURE';
|
|
276
|
-
updateReason: 'LOADING_MARKET' | 'NEW_USER_ORDER' | 'LIQUIDATION_ORDER' | 'STOP_ORDER_TRIGGERED' | 'LIMIT_FROM_STOP' | 'PARTIAL_FILL' | 'FULL_FILL' | 'CANCELLED_BY_USER' | 'CONTRACT_EXPIRED' | 'NOT_ENOUGH_MARGIN' | 'MARKET_INACTIVE' | 'DEAD_MAN_SWITCH' | 'CANCELLED_BY_ADMIN' | 'POST_WOULD_EXECUTE_REASON' | 'IOC_WOULD_NOT_EXECUTE_REASON' | 'WOULD_EXECUTE_SELF_REASON' | 'WOULD_NOT_REDUCE_POSITION' | 'EDITED_BY_USER' | 'ORDER_FOR_EDIT_NOT_FOUND_REASON' | 'EXPIRED' | 'TRAILING_STOP_PRICE_UPDATED' | 'TRAILING_STOP_CANCELLED_AND_REPLACED_BY_ADMIN';
|
|
277
|
+
updateReason: 'LOADING_MARKET' | 'NEW_USER_ORDER' | 'LIQUIDATION_ORDER' | 'STOP_ORDER_TRIGGERED' | 'LIMIT_FROM_STOP' | 'PARTIAL_FILL' | 'FULL_FILL' | 'CANCELLED_BY_USER' | 'CONTRACT_EXPIRED' | 'NOT_ENOUGH_MARGIN' | 'MARKET_INACTIVE' | 'DEAD_MAN_SWITCH' | 'CANCELLED_BY_ADMIN' | 'POST_WOULD_EXECUTE_REASON' | 'IOC_WOULD_NOT_EXECUTE_REASON' | 'WOULD_EXECUTE_SELF_REASON' | 'WOULD_NOT_REDUCE_POSITION' | 'EDITED_BY_USER' | 'ORDER_FOR_EDIT_NOT_FOUND_REASON' | 'EXPIRED' | 'TRAILING_STOP_PRICE_UPDATED' | 'TRAILING_STOP_CANCELLED_AND_REPLACED_BY_ADMIN' | 'unknown';
|
|
277
278
|
error?: string;
|
|
278
279
|
}
|
|
279
280
|
/**
|
|
@@ -443,6 +444,8 @@ export interface FuturesAssignmentProgramHistory {
|
|
|
443
444
|
}
|
|
444
445
|
/**
|
|
445
446
|
* Fee Schedules
|
|
447
|
+
*
|
|
448
|
+
* @deprecated Effective 2026-06-22. Use Spot GetTradeVolume (SpotClient.getTradingVolume) instead.
|
|
446
449
|
*/
|
|
447
450
|
export interface FuturesFeeTier {
|
|
448
451
|
makerFee: number;
|
|
@@ -474,7 +477,7 @@ export interface FuturesFill {
|
|
|
474
477
|
fill_id: string;
|
|
475
478
|
order_id: string;
|
|
476
479
|
price: number;
|
|
477
|
-
side: 'buy' | 'sell';
|
|
480
|
+
side: 'buy' | 'sell' | 'unknown';
|
|
478
481
|
size: number;
|
|
479
482
|
symbol: string;
|
|
480
483
|
}
|
|
@@ -583,16 +586,16 @@ export interface FuturesPositionUpdateEvent {
|
|
|
583
586
|
fee?: string;
|
|
584
587
|
feeCurrency?: string;
|
|
585
588
|
realizedPnL?: string;
|
|
586
|
-
positionChange: 'open' | 'close' | 'increase' | 'decrease' | 'reverse' | 'noChange';
|
|
589
|
+
positionChange: 'open' | 'close' | 'increase' | 'decrease' | 'reverse' | 'noChange' | 'unknown';
|
|
587
590
|
executionUid?: string;
|
|
588
591
|
executionPrice?: string;
|
|
589
592
|
executionSize?: string;
|
|
590
|
-
tradeType?: 'userExecution' | 'liquidation' | 'assignment' | 'unwind';
|
|
593
|
+
tradeType?: 'userExecution' | 'liquidation' | 'assignment' | 'unwind' | 'unknown';
|
|
591
594
|
fundingRealizationTime?: number;
|
|
592
595
|
realizedFunding?: string;
|
|
593
596
|
settlementPrice?: string;
|
|
594
597
|
timestamp: number;
|
|
595
|
-
updateReason: 'trade' | 'fundingRealisation' | 'settlement';
|
|
598
|
+
updateReason: 'trade' | 'fundingRealisation' | 'settlement' | 'unknown';
|
|
596
599
|
}
|
|
597
600
|
export interface FuturesAccountLogEntry {
|
|
598
601
|
asset: string;
|
|
@@ -38,6 +38,7 @@ export interface SpotAssetPair {
|
|
|
38
38
|
status?: string;
|
|
39
39
|
long_position_limit?: number;
|
|
40
40
|
short_position_limit?: number;
|
|
41
|
+
execution_venue?: string;
|
|
41
42
|
}
|
|
42
43
|
export interface SpotAssetTickerInfo {
|
|
43
44
|
a: string[];
|
|
@@ -72,6 +73,27 @@ export interface SpotOrderBook {
|
|
|
72
73
|
export interface SpotOrderBookResponse {
|
|
73
74
|
[pairName: string]: SpotOrderBook;
|
|
74
75
|
}
|
|
76
|
+
export interface SpotGroupedBookLevel {
|
|
77
|
+
price: string;
|
|
78
|
+
qty: string;
|
|
79
|
+
}
|
|
80
|
+
export interface SpotGroupedBookResponse {
|
|
81
|
+
pair: string;
|
|
82
|
+
grouping: number;
|
|
83
|
+
bids: SpotGroupedBookLevel[];
|
|
84
|
+
asks: SpotGroupedBookLevel[];
|
|
85
|
+
}
|
|
86
|
+
export interface SpotLevel3OrderEntry {
|
|
87
|
+
price: string;
|
|
88
|
+
qty: string;
|
|
89
|
+
order_id: string;
|
|
90
|
+
timestamp: number;
|
|
91
|
+
}
|
|
92
|
+
export interface SpotLevel3OrderBookResponse {
|
|
93
|
+
pair: string;
|
|
94
|
+
bids: SpotLevel3OrderEntry[];
|
|
95
|
+
asks: SpotLevel3OrderEntry[];
|
|
96
|
+
}
|
|
75
97
|
export type SpotTradeData = [
|
|
76
98
|
string,
|
|
77
99
|
string,
|
|
@@ -93,6 +115,7 @@ export interface SpotRecentSpreadsResponse {
|
|
|
93
115
|
/**
|
|
94
116
|
* Account Data
|
|
95
117
|
*/
|
|
118
|
+
/** @deprecated Kraken deprecated `.F` suffixed balance assets */
|
|
96
119
|
export interface SpotAccountBalance {
|
|
97
120
|
[assetName: string]: string;
|
|
98
121
|
}
|
|
@@ -294,15 +317,56 @@ export interface SpotFeeTierInfo {
|
|
|
294
317
|
tier_volume: string | null;
|
|
295
318
|
next_volume: string | null;
|
|
296
319
|
}
|
|
320
|
+
export interface SpotTradeVolumeInputs {
|
|
321
|
+
domain_spot_volume_30d: string;
|
|
322
|
+
domain_futures_volume_30d: string;
|
|
323
|
+
domain_assets_on_platform: string;
|
|
324
|
+
}
|
|
325
|
+
export interface SpotTradeVolumeFeeScheduleTier {
|
|
326
|
+
maker_fee: string;
|
|
327
|
+
taker_fee: string;
|
|
328
|
+
min_spot_volume?: string | null;
|
|
329
|
+
min_futures_volume?: string | null;
|
|
330
|
+
min_assets_on_platform?: string | null;
|
|
331
|
+
active?: boolean | null;
|
|
332
|
+
}
|
|
333
|
+
export interface SpotTradeVolumeFeeSchedule {
|
|
334
|
+
pair: string;
|
|
335
|
+
class: 'currency' | 'forex' | 'equity' | 'equity_pair' | 'nft' | 'derivatives' | 'tokenized_asset' | 'futures_contract' | 'volume';
|
|
336
|
+
tiers: SpotTradeVolumeFeeScheduleTier[];
|
|
337
|
+
}
|
|
338
|
+
export interface SpotTradeVolumeSubaccount {
|
|
339
|
+
iiban: string;
|
|
340
|
+
volume: string;
|
|
341
|
+
}
|
|
297
342
|
export interface SpotTradeVolume {
|
|
298
343
|
currency: string;
|
|
344
|
+
asset_class?: 'currency' | 'forex' | 'equity' | 'equity_pair' | 'nft' | 'derivatives' | 'tokenized_asset' | 'futures_contract' | null;
|
|
299
345
|
volume: string;
|
|
346
|
+
inputs: SpotTradeVolumeInputs;
|
|
300
347
|
fees?: {
|
|
301
348
|
[pairName: string]: SpotFeeTierInfo;
|
|
302
|
-
};
|
|
349
|
+
} | null;
|
|
303
350
|
fees_maker?: {
|
|
304
351
|
[pairName: string]: SpotFeeTierInfo;
|
|
305
|
-
};
|
|
352
|
+
} | null;
|
|
353
|
+
volume_subaccounts?: SpotTradeVolumeSubaccount[];
|
|
354
|
+
schedules?: SpotTradeVolumeFeeSchedule[] | null;
|
|
355
|
+
}
|
|
356
|
+
export interface SpotApiKeyInfo {
|
|
357
|
+
apiKeyName: string;
|
|
358
|
+
apiKey: string;
|
|
359
|
+
nonce: string;
|
|
360
|
+
nonceWindow: number;
|
|
361
|
+
permissions: string[];
|
|
362
|
+
iban: string;
|
|
363
|
+
validUntil: string;
|
|
364
|
+
queryFrom: string;
|
|
365
|
+
queryTo: string;
|
|
366
|
+
createdTime: string;
|
|
367
|
+
modifiedTime: string;
|
|
368
|
+
ipAllowlist: string[];
|
|
369
|
+
lastUsed: string | null;
|
|
306
370
|
}
|
|
307
371
|
export interface SpotRequestExportReportResponse {
|
|
308
372
|
id: string;
|
|
@@ -9,3 +9,17 @@ export declare const WS_DERIVATIVES_PRIVATE_TOPICS: readonly ["open_orders", "op
|
|
|
9
9
|
export type WSDerivativesPrivateTopic = (typeof WS_DERIVATIVES_PRIVATE_TOPICS)[number];
|
|
10
10
|
export type WSDerivativesTopic = WSDerivativesPublicTopic | WSDerivativesPrivateTopic;
|
|
11
11
|
export type WSTopic = WSSpotTopic | WSDerivativesTopic;
|
|
12
|
+
export interface WSSpotInstrumentSubscribeParams {
|
|
13
|
+
execution_venue?: 'international' | 'bitnomial-exchange';
|
|
14
|
+
snapshot?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface WSSpotExecutionsSubscribeParams {
|
|
17
|
+
symbol?: string[];
|
|
18
|
+
snap_trades?: boolean;
|
|
19
|
+
snapshot?: boolean;
|
|
20
|
+
rebased?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface WSSpotBalancesSubscribeParams {
|
|
23
|
+
snapshot?: boolean;
|
|
24
|
+
rebased?: boolean;
|
|
25
|
+
}
|