@nktkas/hyperliquid 0.19.2 → 0.21.0
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 +61 -79
- package/esm/mod.d.ts +5 -3
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +4 -3
- package/esm/src/base.d.ts +1 -47
- package/esm/src/base.d.ts.map +1 -1
- package/esm/src/base.js +1 -8
- package/{script/src/clients/wallet.d.ts → esm/src/clients/exchange.d.ts} +111 -112
- package/esm/src/clients/exchange.d.ts.map +1 -0
- package/esm/src/clients/{wallet.js → exchange.js} +96 -306
- package/esm/src/clients/{public.d.ts → info.d.ts} +121 -102
- package/esm/src/clients/info.d.ts.map +1 -0
- package/esm/src/clients/{public.js → info.js} +73 -57
- package/{script/src/clients/event.d.ts → esm/src/clients/subscription.d.ts} +61 -80
- package/esm/src/clients/subscription.d.ts.map +1 -0
- package/esm/src/clients/{event.js → subscription.js} +106 -136
- package/esm/src/signing.d.ts +4 -0
- package/esm/src/signing.d.ts.map +1 -1
- package/esm/src/signing.js +23 -5
- package/esm/src/transports/base.d.ts +47 -0
- package/esm/src/transports/base.d.ts.map +1 -0
- package/esm/src/transports/base.js +8 -0
- package/esm/src/transports/http/http_transport.d.ts +8 -5
- package/esm/src/transports/http/http_transport.d.ts.map +1 -1
- package/esm/src/transports/http/http_transport.js +15 -62
- package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +36 -39
- package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
- package/esm/src/transports/websocket/_reconnecting_websocket.d.ts +21 -27
- package/esm/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -1
- package/esm/src/transports/websocket/_reconnecting_websocket.js +89 -182
- package/{script/src/transports/websocket/_websocket_request_dispatcher.d.ts → esm/src/transports/websocket/_websocket_async_request.d.ts} +17 -19
- package/esm/src/transports/websocket/_websocket_async_request.d.ts.map +1 -0
- package/esm/src/transports/websocket/_websocket_async_request.js +177 -0
- package/esm/src/transports/websocket/websocket_transport.d.ts +54 -41
- package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/esm/src/transports/websocket/websocket_transport.js +101 -113
- package/esm/src/types/info/accounts.d.ts +1 -0
- package/esm/src/types/info/accounts.d.ts.map +1 -1
- package/esm/src/types/info/assets.d.ts +0 -48
- package/esm/src/types/info/assets.d.ts.map +1 -1
- package/esm/src/types/info/markets.d.ts +52 -0
- package/esm/src/types/info/markets.d.ts.map +1 -0
- package/esm/src/types/info/markets.js +1 -0
- package/esm/src/types/info/requests.d.ts +9 -0
- package/esm/src/types/info/requests.d.ts.map +1 -1
- package/esm/src/types/mod.d.ts +3 -0
- package/esm/src/types/mod.d.ts.map +1 -1
- package/esm/src/types/mod.js +2 -0
- package/package.json +12 -9
- package/script/mod.d.ts +5 -3
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +5 -4
- package/script/src/base.d.ts +1 -47
- package/script/src/base.d.ts.map +1 -1
- package/script/src/base.js +2 -10
- package/{esm/src/clients/wallet.d.ts → script/src/clients/exchange.d.ts} +111 -112
- package/script/src/clients/exchange.d.ts.map +1 -0
- package/script/src/clients/{wallet.js → exchange.js} +98 -308
- package/script/src/clients/{public.d.ts → info.d.ts} +121 -102
- package/script/src/clients/info.d.ts.map +1 -0
- package/script/src/clients/{public.js → info.js} +75 -59
- package/{esm/src/clients/event.d.ts → script/src/clients/subscription.d.ts} +61 -80
- package/script/src/clients/subscription.d.ts.map +1 -0
- package/script/src/clients/{event.js → subscription.js} +108 -138
- package/script/src/signing.d.ts +4 -0
- package/script/src/signing.d.ts.map +1 -1
- package/script/src/signing.js +25 -7
- package/script/src/transports/base.d.ts +47 -0
- package/script/src/transports/base.d.ts.map +1 -0
- package/script/src/transports/base.js +22 -0
- package/script/src/transports/http/http_transport.d.ts +8 -5
- package/script/src/transports/http/http_transport.d.ts.map +1 -1
- package/script/src/transports/http/http_transport.js +16 -63
- package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +36 -39
- package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
- package/script/src/transports/websocket/_reconnecting_websocket.d.ts +21 -27
- package/script/src/transports/websocket/_reconnecting_websocket.d.ts.map +1 -1
- package/script/src/transports/websocket/_reconnecting_websocket.js +90 -183
- package/{esm/src/transports/websocket/_websocket_request_dispatcher.d.ts → script/src/transports/websocket/_websocket_async_request.d.ts} +17 -19
- package/script/src/transports/websocket/_websocket_async_request.d.ts.map +1 -0
- package/script/src/transports/websocket/_websocket_async_request.js +192 -0
- package/script/src/transports/websocket/websocket_transport.d.ts +54 -41
- package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/script/src/transports/websocket/websocket_transport.js +103 -115
- package/script/src/types/info/accounts.d.ts +1 -0
- package/script/src/types/info/accounts.d.ts.map +1 -1
- package/script/src/types/info/assets.d.ts +0 -48
- package/script/src/types/info/assets.d.ts.map +1 -1
- package/script/src/types/info/markets.d.ts +52 -0
- package/script/src/types/info/markets.d.ts.map +1 -0
- package/script/{deps/jsr.io/@noble/hashes/1.8.0/src/crypto.js → src/types/info/markets.js} +0 -2
- package/script/src/types/info/requests.d.ts +9 -0
- package/script/src/types/info/requests.d.ts.map +1 -1
- package/script/src/types/mod.d.ts +3 -0
- package/script/src/types/mod.d.ts.map +1 -1
- package/script/src/types/mod.js +2 -0
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.d.ts +0 -55
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.d.ts.map +0 -1
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.js +0 -66
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.d.ts +0 -2
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.d.ts.map +0 -1
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.js +0 -1
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.d.ts +0 -53
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.d.ts.map +0 -1
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.js +0 -294
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/utils.d.ts +0 -161
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@noble/hashes/1.8.0/src/utils.js +0 -280
- package/esm/src/clients/event.d.ts.map +0 -1
- package/esm/src/clients/public.d.ts.map +0 -1
- package/esm/src/clients/wallet.d.ts.map +0 -1
- package/esm/src/transports/websocket/_websocket_request_dispatcher.d.ts.map +0 -1
- package/esm/src/transports/websocket/_websocket_request_dispatcher.js +0 -191
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.d.ts +0 -55
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.d.ts.map +0 -1
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/_u64.js +0 -99
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.d.ts +0 -2
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/crypto.d.ts.map +0 -1
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.d.ts +0 -53
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.d.ts.map +0 -1
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/sha3.js +0 -309
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/utils.d.ts +0 -161
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@noble/hashes/1.8.0/src/utils.js +0 -322
- package/script/src/clients/event.d.ts.map +0 -1
- package/script/src/clients/public.d.ts.map +0 -1
- package/script/src/clients/wallet.d.ts.map +0 -1
- package/script/src/transports/websocket/_websocket_request_dispatcher.d.ts.map +0 -1
- package/script/src/transports/websocket/_websocket_request_dispatcher.js +0 -206
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import type { ISubscriptionTransport, Subscription } from "../base.js";
|
|
1
|
+
import type { ISubscriptionTransport, Subscription } from "../transports/base.js";
|
|
2
2
|
import type { WsActiveAssetCtxRequest, WsActiveAssetDataRequest, WsAllMidsRequest, WsBboRequest, WsCandleRequest, WsL2BookRequest, WsNotificationRequest, WsOrderUpdatesRequest, WsTradesRequest, WsUserEventsRequest, WsUserFillsRequest, WsUserFundingsRequest, WsUserNonFundingLedgerUpdatesRequest, WsUserTwapHistoryRequest, WsUserTwapSliceFillsRequest, WsWebData2Request } from "../types/subscriptions/requests.js";
|
|
3
3
|
import type { WsActiveAssetCtx, WsActiveAssetData, WsActiveSpotAssetCtx, WsAllMids, WsBbo, WsBlockDetails, WsNotification, WsTrade, WsUserEvent, WsUserFills, WsUserFundings, WsUserNonFundingLedgerUpdates, WsUserTwapHistory, WsUserTwapSliceFills, WsWebData2 } from "../types/subscriptions/responses.js";
|
|
4
4
|
import type { Candle } from "../types/info/assets.js";
|
|
5
5
|
import type { Book, Order, OrderStatus } from "../types/info/orders.js";
|
|
6
6
|
import type { TxDetails } from "../types/explorer/responses.js";
|
|
7
|
-
/** Parameters for the {@linkcode
|
|
8
|
-
export interface
|
|
7
|
+
/** Parameters for the {@linkcode SubscriptionClient} constructor. */
|
|
8
|
+
export interface SubscriptionClientParameters<T extends ISubscriptionTransport = ISubscriptionTransport> {
|
|
9
9
|
/** The transport used to connect to the Hyperliquid API. */
|
|
10
10
|
transport: T;
|
|
11
11
|
}
|
|
12
|
-
/** Parameters for the {@linkcode
|
|
12
|
+
/** Parameters for the {@linkcode SubscriptionClient.activeAssetCtx} method. */
|
|
13
13
|
export type EventActiveAssetCtxParameters = Omit<WsActiveAssetCtxRequest, "type">;
|
|
14
|
-
/** Parameters for the {@linkcode
|
|
14
|
+
/** Parameters for the {@linkcode SubscriptionClient.activeAssetData} method. */
|
|
15
15
|
export type EventActiveAssetDataParameters = Omit<WsActiveAssetDataRequest, "type">;
|
|
16
|
-
/** Parameters for the {@linkcode
|
|
16
|
+
/** Parameters for the {@linkcode SubscriptionClient.allMids} method. */
|
|
17
17
|
export type WsAllMidsParameters = Omit<WsAllMidsRequest, "type">;
|
|
18
|
-
/** Parameters for the {@linkcode
|
|
18
|
+
/** Parameters for the {@linkcode SubscriptionClient.bbo} method. */
|
|
19
19
|
export type EventBboParameters = Omit<WsBboRequest, "type">;
|
|
20
|
-
/** Parameters for the {@linkcode
|
|
20
|
+
/** Parameters for the {@linkcode SubscriptionClient.candle} method. */
|
|
21
21
|
export type EventCandleParameters = Omit<WsCandleRequest, "type">;
|
|
22
|
-
/** Parameters for the {@linkcode
|
|
22
|
+
/** Parameters for the {@linkcode SubscriptionClient.l2Book} method. */
|
|
23
23
|
export type EventL2BookParameters = Omit<WsL2BookRequest, "type">;
|
|
24
|
-
/** Parameters for the {@linkcode
|
|
24
|
+
/** Parameters for the {@linkcode SubscriptionClient.notification} method. */
|
|
25
25
|
export type EventNotificationParameters = Omit<WsNotificationRequest, "type">;
|
|
26
|
-
/** Parameters for the {@linkcode
|
|
26
|
+
/** Parameters for the {@linkcode SubscriptionClient.orderUpdates} method. */
|
|
27
27
|
export type EventOrderUpdatesParameters = Omit<WsOrderUpdatesRequest, "type">;
|
|
28
|
-
/** Parameters for the {@linkcode
|
|
28
|
+
/** Parameters for the {@linkcode SubscriptionClient.trades} method. */
|
|
29
29
|
export type EventTradesParameters = Omit<WsTradesRequest, "type">;
|
|
30
|
-
/** Parameters for the {@linkcode
|
|
30
|
+
/** Parameters for the {@linkcode SubscriptionClient.userEvents} method. */
|
|
31
31
|
export type EventUserEventsParameters = Omit<WsUserEventsRequest, "type">;
|
|
32
|
-
/** Parameters for the {@linkcode
|
|
32
|
+
/** Parameters for the {@linkcode SubscriptionClient.userFills} method. */
|
|
33
33
|
export type EventUserFillsParameters = Omit<WsUserFillsRequest, "type">;
|
|
34
|
-
/** Parameters for the {@linkcode
|
|
34
|
+
/** Parameters for the {@linkcode SubscriptionClient.userFundings} method. */
|
|
35
35
|
export type EventUserFundingsParameters = Omit<WsUserFundingsRequest, "type">;
|
|
36
|
-
/** Parameters for the {@linkcode
|
|
36
|
+
/** Parameters for the {@linkcode SubscriptionClient.userNonFundingLedgerUpdates} method. */
|
|
37
37
|
export type EventUserNonFundingLedgerUpdatesParameters = Omit<WsUserNonFundingLedgerUpdatesRequest, "type">;
|
|
38
|
-
/** Parameters for the {@linkcode
|
|
38
|
+
/** Parameters for the {@linkcode SubscriptionClient.userTwapHistory} method. */
|
|
39
39
|
export type EventUserTwapHistory = Omit<WsUserTwapHistoryRequest, "type">;
|
|
40
|
-
/** Parameters for the {@linkcode
|
|
40
|
+
/** Parameters for the {@linkcode SubscriptionClient.userTwapSliceFills} method. */
|
|
41
41
|
export type EventUserTwapSliceFills = Omit<WsUserTwapSliceFillsRequest, "type">;
|
|
42
|
-
/** Parameters for the {@linkcode
|
|
42
|
+
/** Parameters for the {@linkcode SubscriptionClient.webData2} method. */
|
|
43
43
|
export type EventWebData2Parameters = Omit<WsWebData2Request, "type">;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Subscription client for subscribing to various Hyperliquid events.
|
|
46
46
|
* @typeParam T The type of transport used to connect to the Hyperliquid Websocket API.
|
|
47
47
|
*/
|
|
48
|
-
export declare class
|
|
49
|
-
/** The transport used to connect to the Hyperliquid API. */
|
|
48
|
+
export declare class SubscriptionClient<T extends ISubscriptionTransport = ISubscriptionTransport> implements SubscriptionClientParameters, AsyncDisposable {
|
|
50
49
|
transport: T;
|
|
51
50
|
/**
|
|
52
51
|
* Initialises a new instance.
|
|
@@ -57,15 +56,14 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
57
56
|
* import * as hl from "@nktkas/hyperliquid";
|
|
58
57
|
*
|
|
59
58
|
* const transport = new hl.WebSocketTransport();
|
|
60
|
-
* const
|
|
59
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
61
60
|
* ```
|
|
62
61
|
*/
|
|
63
|
-
constructor(args:
|
|
62
|
+
constructor(args: SubscriptionClientParameters<T>);
|
|
64
63
|
/**
|
|
65
64
|
* Subscribe to context updates for a specific perpetual asset.
|
|
66
65
|
* @param args - The parameters for the subscription.
|
|
67
66
|
* @param listener - The callback function to be called when the event is received.
|
|
68
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
69
67
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
70
68
|
*
|
|
71
69
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -74,19 +72,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
74
72
|
* import * as hl from "@nktkas/hyperliquid";
|
|
75
73
|
*
|
|
76
74
|
* const transport = new hl.WebSocketTransport();
|
|
77
|
-
* const
|
|
75
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
78
76
|
*
|
|
79
77
|
* const sub = await client.activeAssetCtx({ coin: "BTC" }, (data) => {
|
|
80
78
|
* console.log(data);
|
|
81
79
|
* });
|
|
82
80
|
* ```
|
|
83
81
|
*/
|
|
84
|
-
activeAssetCtx(args: EventActiveAssetCtxParameters, listener: (data: WsActiveAssetCtx | WsActiveSpotAssetCtx) => void
|
|
82
|
+
activeAssetCtx(args: EventActiveAssetCtxParameters, listener: (data: WsActiveAssetCtx | WsActiveSpotAssetCtx) => void): Promise<Subscription>;
|
|
85
83
|
/**
|
|
86
84
|
* Subscribe to trading data updates for a specific asset and user.
|
|
87
85
|
* @param args - The parameters for the subscription.
|
|
88
86
|
* @param listener - The callback function to be called when the event is received.
|
|
89
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
90
87
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
91
88
|
*
|
|
92
89
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -95,18 +92,17 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
95
92
|
* import * as hl from "@nktkas/hyperliquid";
|
|
96
93
|
*
|
|
97
94
|
* const transport = new hl.WebSocketTransport();
|
|
98
|
-
* const
|
|
95
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
99
96
|
*
|
|
100
97
|
* const sub = await client.activeAssetData({ coin: "BTC", user: "0x..." }, (data) => {
|
|
101
98
|
* console.log(data);
|
|
102
99
|
* });
|
|
103
100
|
* ```
|
|
104
101
|
*/
|
|
105
|
-
activeAssetData(args: EventActiveAssetDataParameters, listener: (data: WsActiveAssetData) => void
|
|
102
|
+
activeAssetData(args: EventActiveAssetDataParameters, listener: (data: WsActiveAssetData) => void): Promise<Subscription>;
|
|
106
103
|
/**
|
|
107
104
|
* Subscribe to mid prices for all actively traded assets.
|
|
108
105
|
* @param listener - The callback function to be called when the event is received.
|
|
109
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
110
106
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
111
107
|
*
|
|
112
108
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -115,20 +111,19 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
115
111
|
* import * as hl from "@nktkas/hyperliquid";
|
|
116
112
|
*
|
|
117
113
|
* const transport = new hl.WebSocketTransport();
|
|
118
|
-
* const
|
|
114
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
119
115
|
*
|
|
120
116
|
* const sub = await client.allMids((data) => {
|
|
121
117
|
* console.log(data);
|
|
122
118
|
* });
|
|
123
119
|
* ```
|
|
124
120
|
*/
|
|
125
|
-
allMids(listener: (data: WsAllMids) => void
|
|
126
|
-
allMids(args: WsAllMidsParameters, listener: (data: WsAllMids) => void
|
|
121
|
+
allMids(listener: (data: WsAllMids) => void): Promise<Subscription>;
|
|
122
|
+
allMids(args: WsAllMidsParameters, listener: (data: WsAllMids) => void): Promise<Subscription>;
|
|
127
123
|
/**
|
|
128
124
|
* Subscribe to best bid and offer updates for a specific asset.
|
|
129
125
|
* @param args - The parameters for the subscription.
|
|
130
126
|
* @param listener - The callback function to be called when the event is received.
|
|
131
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
132
127
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
133
128
|
*
|
|
134
129
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -137,19 +132,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
137
132
|
* import * as hl from "@nktkas/hyperliquid";
|
|
138
133
|
*
|
|
139
134
|
* const transport = new hl.WebSocketTransport();
|
|
140
|
-
* const
|
|
135
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
141
136
|
*
|
|
142
137
|
* const sub = await client.bbo({ coin: "BTC" }, (data) => {
|
|
143
138
|
* console.log(data);
|
|
144
139
|
* });
|
|
145
140
|
* ```
|
|
146
141
|
*/
|
|
147
|
-
bbo(args: EventBboParameters, listener: (data: WsBbo) => void
|
|
142
|
+
bbo(args: EventBboParameters, listener: (data: WsBbo) => void): Promise<Subscription>;
|
|
148
143
|
/**
|
|
149
144
|
* Subscribe to candlestick data updates for a specific asset.
|
|
150
145
|
* @param args - The parameters for the subscription.
|
|
151
146
|
* @param listener - The callback function to be called when the event is received.
|
|
152
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
153
147
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
154
148
|
*
|
|
155
149
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -158,18 +152,17 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
158
152
|
* import * as hl from "@nktkas/hyperliquid";
|
|
159
153
|
*
|
|
160
154
|
* const transport = new hl.WebSocketTransport();
|
|
161
|
-
* const
|
|
155
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
162
156
|
*
|
|
163
157
|
* const sub = await client.candle({ coin: "BTC", interval: "1h" }, (data) => {
|
|
164
158
|
* console.log(data);
|
|
165
159
|
* });
|
|
166
160
|
* ```
|
|
167
161
|
*/
|
|
168
|
-
candle(args: EventCandleParameters, listener: (data: Candle) => void
|
|
162
|
+
candle(args: EventCandleParameters, listener: (data: Candle) => void): Promise<Subscription>;
|
|
169
163
|
/**
|
|
170
164
|
* Subscribe to explorer block updates.
|
|
171
165
|
* @param listener - The callback function to be called when the event is received.
|
|
172
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
173
166
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
174
167
|
* @note Make sure the endpoint in the {@link transport} supports this method.
|
|
175
168
|
*
|
|
@@ -179,18 +172,17 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
179
172
|
* import * as hl from "@nktkas/hyperliquid";
|
|
180
173
|
*
|
|
181
174
|
* const transport = new hl.WebSocketTransport();
|
|
182
|
-
* const
|
|
175
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
183
176
|
*
|
|
184
177
|
* const sub = await client.explorerBlock((data) => {
|
|
185
178
|
* console.log(data);
|
|
186
179
|
* });
|
|
187
180
|
* ```
|
|
188
181
|
*/
|
|
189
|
-
explorerBlock(listener: (data: WsBlockDetails[]) => void
|
|
182
|
+
explorerBlock(listener: (data: WsBlockDetails[]) => void): Promise<Subscription>;
|
|
190
183
|
/**
|
|
191
184
|
* Subscribe to explorer transaction updates.
|
|
192
185
|
* @param listener - The callback function to be called when the event is received.
|
|
193
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
194
186
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
195
187
|
* @note Make sure the endpoint in the {@link transport} supports this method.
|
|
196
188
|
*
|
|
@@ -200,19 +192,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
200
192
|
* import * as hl from "@nktkas/hyperliquid";
|
|
201
193
|
*
|
|
202
194
|
* const transport = new hl.WebSocketTransport();
|
|
203
|
-
* const
|
|
195
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
204
196
|
*
|
|
205
197
|
* const sub = await client.explorerTxs((data) => {
|
|
206
198
|
* console.log(data);
|
|
207
199
|
* });
|
|
208
200
|
* ```
|
|
209
201
|
*/
|
|
210
|
-
explorerTxs(listener: (data: TxDetails[]) => void
|
|
202
|
+
explorerTxs(listener: (data: TxDetails[]) => void): Promise<Subscription>;
|
|
211
203
|
/**
|
|
212
204
|
* Subscribe to L2 order book updates for a specific asset.
|
|
213
205
|
* @param args - The parameters for the subscription.
|
|
214
206
|
* @param listener - The callback function to be called when the event is received.
|
|
215
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
216
207
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
217
208
|
*
|
|
218
209
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -221,19 +212,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
221
212
|
* import * as hl from "@nktkas/hyperliquid";
|
|
222
213
|
*
|
|
223
214
|
* const transport = new hl.WebSocketTransport();
|
|
224
|
-
* const
|
|
215
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
225
216
|
*
|
|
226
217
|
* const sub = await client.l2Book({ coin: "BTC" }, (data) => {
|
|
227
218
|
* console.log(data);
|
|
228
219
|
* });
|
|
229
220
|
* ```
|
|
230
221
|
*/
|
|
231
|
-
l2Book(args: EventL2BookParameters, listener: (data: Book) => void
|
|
222
|
+
l2Book(args: EventL2BookParameters, listener: (data: Book) => void): Promise<Subscription>;
|
|
232
223
|
/**
|
|
233
224
|
* Subscribe to notification updates for a specific user.
|
|
234
225
|
* @param args - The parameters for the subscription.
|
|
235
226
|
* @param listener - The callback function to be called when the event is received.
|
|
236
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
237
227
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
238
228
|
*
|
|
239
229
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -242,19 +232,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
242
232
|
* import * as hl from "@nktkas/hyperliquid";
|
|
243
233
|
*
|
|
244
234
|
* const transport = new hl.WebSocketTransport();
|
|
245
|
-
* const
|
|
235
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
246
236
|
*
|
|
247
237
|
* const sub = await client.notification({ user: "0x..." }, (data) => {
|
|
248
238
|
* console.log(data);
|
|
249
239
|
* });
|
|
250
240
|
* ```
|
|
251
241
|
*/
|
|
252
|
-
notification(args: EventNotificationParameters, listener: (data: WsNotification) => void
|
|
242
|
+
notification(args: EventNotificationParameters, listener: (data: WsNotification) => void): Promise<Subscription>;
|
|
253
243
|
/**
|
|
254
244
|
* Subscribe to order status updates for a specific user.
|
|
255
245
|
* @param args - The parameters for the subscription.
|
|
256
246
|
* @param listener - The callback function to be called when the event is received.
|
|
257
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
258
247
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
259
248
|
*
|
|
260
249
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -263,19 +252,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
263
252
|
* import * as hl from "@nktkas/hyperliquid";
|
|
264
253
|
*
|
|
265
254
|
* const transport = new hl.WebSocketTransport();
|
|
266
|
-
* const
|
|
255
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
267
256
|
*
|
|
268
257
|
* const sub = await client.orderUpdates({ user: "0x..." }, (data) => {
|
|
269
258
|
* console.log(data);
|
|
270
259
|
* });
|
|
271
260
|
* ```
|
|
272
261
|
*/
|
|
273
|
-
orderUpdates(args: EventOrderUpdatesParameters, listener: (data: OrderStatus<Order>[]) => void
|
|
262
|
+
orderUpdates(args: EventOrderUpdatesParameters, listener: (data: OrderStatus<Order>[]) => void): Promise<Subscription>;
|
|
274
263
|
/**
|
|
275
264
|
* Subscribe to real-time trade updates for a specific asset.
|
|
276
265
|
* @param args - The parameters for the subscription.
|
|
277
266
|
* @param listener - The callback function to be called when the event is received.
|
|
278
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
279
267
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
280
268
|
*
|
|
281
269
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -284,19 +272,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
284
272
|
* import * as hl from "@nktkas/hyperliquid";
|
|
285
273
|
*
|
|
286
274
|
* const transport = new hl.WebSocketTransport();
|
|
287
|
-
* const
|
|
275
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
288
276
|
*
|
|
289
277
|
* const sub = await client.trades({ coin: "BTC" }, (data) => {
|
|
290
278
|
* console.log(data);
|
|
291
279
|
* });
|
|
292
280
|
* ```
|
|
293
281
|
*/
|
|
294
|
-
trades(args: EventTradesParameters, listener: (data: WsTrade[]) => void
|
|
282
|
+
trades(args: EventTradesParameters, listener: (data: WsTrade[]) => void): Promise<Subscription>;
|
|
295
283
|
/**
|
|
296
284
|
* Subscribe to non-order events for a specific user.
|
|
297
285
|
* @param args - The parameters for the subscription.
|
|
298
286
|
* @param listener - The callback function to be called when the event is received.
|
|
299
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
300
287
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
301
288
|
*
|
|
302
289
|
* @note Different subscriptions cannot be distinguished from each other.
|
|
@@ -307,19 +294,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
307
294
|
* import * as hl from "@nktkas/hyperliquid";
|
|
308
295
|
*
|
|
309
296
|
* const transport = new hl.WebSocketTransport();
|
|
310
|
-
* const
|
|
297
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
311
298
|
*
|
|
312
299
|
* const sub = await client.userEvents({ user: "0x..." }, (data) => {
|
|
313
300
|
* console.log(data);
|
|
314
301
|
* });
|
|
315
302
|
* ```
|
|
316
303
|
*/
|
|
317
|
-
userEvents(args: EventUserEventsParameters, listener: (data: WsUserEvent) => void
|
|
304
|
+
userEvents(args: EventUserEventsParameters, listener: (data: WsUserEvent) => void): Promise<Subscription>;
|
|
318
305
|
/**
|
|
319
306
|
* Subscribe to trade fill updates for a specific user.
|
|
320
307
|
* @param args - The parameters for the subscription.
|
|
321
308
|
* @param listener - The callback function to be called when the event is received.
|
|
322
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
323
309
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
324
310
|
*
|
|
325
311
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -328,19 +314,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
328
314
|
* import * as hl from "@nktkas/hyperliquid";
|
|
329
315
|
*
|
|
330
316
|
* const transport = new hl.WebSocketTransport();
|
|
331
|
-
* const
|
|
317
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
332
318
|
*
|
|
333
319
|
* const sub = await client.userFills({ user: "0x..." }, (data) => {
|
|
334
320
|
* console.log(data);
|
|
335
321
|
* });
|
|
336
322
|
* ```
|
|
337
323
|
*/
|
|
338
|
-
userFills(args: EventUserFillsParameters, listener: (data: WsUserFills) => void
|
|
324
|
+
userFills(args: EventUserFillsParameters, listener: (data: WsUserFills) => void): Promise<Subscription>;
|
|
339
325
|
/**
|
|
340
326
|
* Subscribe to funding payment updates for a specific user.
|
|
341
327
|
* @param args - The parameters for the subscription.
|
|
342
328
|
* @param listener - The callback function to be called when the event is received.
|
|
343
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
344
329
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
345
330
|
*
|
|
346
331
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -349,19 +334,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
349
334
|
* import * as hl from "@nktkas/hyperliquid";
|
|
350
335
|
*
|
|
351
336
|
* const transport = new hl.WebSocketTransport();
|
|
352
|
-
* const
|
|
337
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
353
338
|
*
|
|
354
339
|
* const sub = await client.userFundings({ user: "0x..." }, (data) => {
|
|
355
340
|
* console.log(data);
|
|
356
341
|
* });
|
|
357
342
|
* ```
|
|
358
343
|
*/
|
|
359
|
-
userFundings(args: EventUserFundingsParameters, listener: (data: WsUserFundings) => void
|
|
344
|
+
userFundings(args: EventUserFundingsParameters, listener: (data: WsUserFundings) => void): Promise<Subscription>;
|
|
360
345
|
/**
|
|
361
346
|
* Subscribe to non-funding ledger updates for a specific user.
|
|
362
347
|
* @param args - The parameters for the subscription.
|
|
363
348
|
* @param listener - The callback function to be called when the event is received.
|
|
364
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
365
349
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
366
350
|
*
|
|
367
351
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -370,19 +354,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
370
354
|
* import * as hl from "@nktkas/hyperliquid";
|
|
371
355
|
*
|
|
372
356
|
* const transport = new hl.WebSocketTransport();
|
|
373
|
-
* const
|
|
357
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
374
358
|
*
|
|
375
359
|
* const sub = await client.userNonFundingLedgerUpdates({ user: "0x..." }, (data) => {
|
|
376
360
|
* console.log(data);
|
|
377
361
|
* });
|
|
378
362
|
* ```
|
|
379
363
|
*/
|
|
380
|
-
userNonFundingLedgerUpdates(args: EventUserNonFundingLedgerUpdatesParameters, listener: (data: WsUserNonFundingLedgerUpdates) => void
|
|
364
|
+
userNonFundingLedgerUpdates(args: EventUserNonFundingLedgerUpdatesParameters, listener: (data: WsUserNonFundingLedgerUpdates) => void): Promise<Subscription>;
|
|
381
365
|
/**
|
|
382
366
|
* Subscribe to TWAP order history updates for a specific user.
|
|
383
367
|
* @param args - The parameters for the subscription.
|
|
384
368
|
* @param listener - The callback function to be called when the event is received.
|
|
385
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
386
369
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
387
370
|
*
|
|
388
371
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -391,19 +374,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
391
374
|
* import * as hl from "@nktkas/hyperliquid";
|
|
392
375
|
*
|
|
393
376
|
* const transport = new hl.WebSocketTransport();
|
|
394
|
-
* const
|
|
377
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
395
378
|
*
|
|
396
379
|
* const sub = await client.userTwapHistory({ user: "0x..." }, (data) => {
|
|
397
380
|
* console.log(data);
|
|
398
381
|
* });
|
|
399
382
|
* ```
|
|
400
383
|
*/
|
|
401
|
-
userTwapHistory(args: EventUserTwapHistory, listener: (data: WsUserTwapHistory) => void
|
|
384
|
+
userTwapHistory(args: EventUserTwapHistory, listener: (data: WsUserTwapHistory) => void): Promise<Subscription>;
|
|
402
385
|
/**
|
|
403
386
|
* Subscribe to TWAP execution updates for a specific user.
|
|
404
387
|
* @param args - The parameters for the subscription.
|
|
405
388
|
* @param listener - The callback function to be called when the event is received.
|
|
406
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
407
389
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
408
390
|
*
|
|
409
391
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -412,19 +394,18 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
412
394
|
* import * as hl from "@nktkas/hyperliquid";
|
|
413
395
|
*
|
|
414
396
|
* const transport = new hl.WebSocketTransport();
|
|
415
|
-
* const
|
|
397
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
416
398
|
*
|
|
417
399
|
* const sub = await client.userTwapSliceFills({ user: "0x..." }, (data) => {
|
|
418
400
|
* console.log(data);
|
|
419
401
|
* });
|
|
420
402
|
* ```
|
|
421
403
|
*/
|
|
422
|
-
userTwapSliceFills(args: EventUserTwapSliceFills, listener: (data: WsUserTwapSliceFills) => void
|
|
404
|
+
userTwapSliceFills(args: EventUserTwapSliceFills, listener: (data: WsUserTwapSliceFills) => void): Promise<Subscription>;
|
|
423
405
|
/**
|
|
424
406
|
* Subscribe to comprehensive user and market data updates.
|
|
425
407
|
* @param args - The parameters for the subscription.
|
|
426
408
|
* @param listener - The callback function to be called when the event is received.
|
|
427
|
-
* @param signal - An optional abort signal for canceling the subscription request.
|
|
428
409
|
* @returns A promise that resolves with a {@link Subscription} object to manage the subscription lifecycle.
|
|
429
410
|
*
|
|
430
411
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
@@ -433,14 +414,14 @@ export declare class EventClient<T extends ISubscriptionTransport = ISubscriptio
|
|
|
433
414
|
* import * as hl from "@nktkas/hyperliquid";
|
|
434
415
|
*
|
|
435
416
|
* const transport = new hl.WebSocketTransport();
|
|
436
|
-
* const
|
|
417
|
+
* const subsClient = new hl.SubscriptionClient({ transport });
|
|
437
418
|
*
|
|
438
419
|
* const sub = await client.webData2({ user: "0x..." }, (data) => {
|
|
439
420
|
* console.log(data);
|
|
440
421
|
* });
|
|
441
422
|
* ```
|
|
442
423
|
*/
|
|
443
|
-
webData2(args: EventWebData2Parameters, listener: (data: WsWebData2) => void
|
|
424
|
+
webData2(args: EventWebData2Parameters, listener: (data: WsWebData2) => void): Promise<Subscription>;
|
|
444
425
|
[Symbol.asyncDispose](): Promise<void>;
|
|
445
426
|
}
|
|
446
|
-
//# sourceMappingURL=
|
|
427
|
+
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/src/clients/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAK,EACR,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EAGf,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,oCAAoC,EACpC,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EACR,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,KAAK,EACL,cAAc,EACd,cAAc,EACd,OAAO,EACP,WAAW,EACX,WAAW,EACX,cAAc,EACd,6BAA6B,EAC7B,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACb,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAEhE,qEAAqE;AACrE,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sB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