@nktkas/hyperliquid 0.21.0 → 0.22.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/CONTRIBUTING.md +19 -34
- package/README.md +212 -87
- package/esm/mod.d.ts +4 -3
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +3 -2
- package/esm/src/clients/exchange.d.ts +102 -59
- package/esm/src/clients/exchange.d.ts.map +1 -1
- package/esm/src/clients/exchange.js +233 -516
- package/esm/src/clients/info.d.ts +55 -55
- package/esm/src/clients/info.d.ts.map +1 -1
- package/esm/src/clients/info.js +57 -54
- package/esm/src/clients/multiSign.d.ts +1293 -0
- package/esm/src/clients/multiSign.d.ts.map +1 -0
- package/esm/src/clients/multiSign.js +2156 -0
- package/esm/src/clients/subscription.d.ts +19 -19
- package/esm/src/clients/subscription.d.ts.map +1 -1
- package/esm/src/clients/subscription.js +17 -17
- package/esm/src/signing.d.ts +164 -40
- package/esm/src/signing.d.ts.map +1 -1
- package/esm/src/signing.js +710 -9
- package/esm/src/types/exchange/requests.d.ts +240 -245
- package/esm/src/types/exchange/requests.d.ts.map +1 -1
- package/esm/src/types/info/accounts.d.ts +11 -0
- package/esm/src/types/info/accounts.d.ts.map +1 -1
- package/package.json +2 -1
- package/script/mod.d.ts +4 -3
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +4 -3
- package/script/src/clients/exchange.d.ts +102 -59
- package/script/src/clients/exchange.d.ts.map +1 -1
- package/script/src/clients/exchange.js +232 -515
- package/script/src/clients/info.d.ts +55 -55
- package/script/src/clients/info.d.ts.map +1 -1
- package/script/src/clients/info.js +57 -54
- package/script/src/clients/multiSign.d.ts +1293 -0
- package/script/src/clients/multiSign.d.ts.map +1 -0
- package/script/src/clients/multiSign.js +2170 -0
- package/script/src/clients/subscription.d.ts +19 -19
- package/script/src/clients/subscription.d.ts.map +1 -1
- package/script/src/clients/subscription.js +17 -17
- package/script/src/signing.d.ts +164 -40
- package/script/src/signing.d.ts.map +1 -1
- package/script/src/signing.js +711 -10
- package/script/src/types/exchange/requests.d.ts +240 -245
- package/script/src/types/exchange/requests.d.ts.map +1 -1
- package/script/src/types/info/accounts.d.ts +11 -0
- package/script/src/types/info/accounts.d.ts.map +1 -1
|
@@ -54,15 +54,16 @@
|
|
|
54
54
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
55
55
|
* const infoClient = new hl.InfoClient({ transport });
|
|
56
56
|
*
|
|
57
|
-
* const
|
|
57
|
+
* const data = await infoClient.blockDetails({ height: 123 });
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
blockDetails(args, signal) {
|
|
60
|
+
async blockDetails(args, signal) {
|
|
61
61
|
const request = {
|
|
62
62
|
type: "blockDetails",
|
|
63
63
|
...args,
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
const { blockDetails } = await this.transport.request("explorer", request, signal);
|
|
66
|
+
return blockDetails;
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
69
|
* Request candlestick snapshots.
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
79
80
|
* const infoClient = new hl.InfoClient({ transport });
|
|
80
81
|
*
|
|
81
|
-
* const
|
|
82
|
+
* const data = await infoClient.candleSnapshot({
|
|
82
83
|
* coin: "ETH",
|
|
83
84
|
* interval: "1h",
|
|
84
85
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
107
108
|
* const infoClient = new hl.InfoClient({ transport });
|
|
108
109
|
*
|
|
109
|
-
* const
|
|
110
|
+
* const data = await infoClient.clearinghouseState({ user: "0x..." });
|
|
110
111
|
* ```
|
|
111
112
|
*/
|
|
112
113
|
clearinghouseState(args, signal) {
|
|
@@ -130,7 +131,7 @@
|
|
|
130
131
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
131
132
|
* const infoClient = new hl.InfoClient({ transport });
|
|
132
133
|
*
|
|
133
|
-
* const
|
|
134
|
+
* const data = await infoClient.delegations({ user: "0x..." });
|
|
134
135
|
* ```
|
|
135
136
|
*/
|
|
136
137
|
delegations(args, signal) {
|
|
@@ -154,7 +155,7 @@
|
|
|
154
155
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
155
156
|
* const infoClient = new hl.InfoClient({ transport });
|
|
156
157
|
*
|
|
157
|
-
* const
|
|
158
|
+
* const data = await infoClient.delegatorHistory({ user: "0x..." });
|
|
158
159
|
* ```
|
|
159
160
|
*/
|
|
160
161
|
delegatorHistory(args, signal) {
|
|
@@ -178,7 +179,7 @@
|
|
|
178
179
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
179
180
|
* const infoClient = new hl.InfoClient({ transport });
|
|
180
181
|
*
|
|
181
|
-
* const
|
|
182
|
+
* const data = await infoClient.delegatorRewards({ user: "0x..." });
|
|
182
183
|
* ```
|
|
183
184
|
*/
|
|
184
185
|
delegatorRewards(args, signal) {
|
|
@@ -202,7 +203,7 @@
|
|
|
202
203
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
203
204
|
* const infoClient = new hl.InfoClient({ transport });
|
|
204
205
|
*
|
|
205
|
-
* const
|
|
206
|
+
* const data = await infoClient.delegatorSummary({ user: "0x..." });
|
|
206
207
|
* ```
|
|
207
208
|
*/
|
|
208
209
|
delegatorSummary(args, signal) {
|
|
@@ -226,7 +227,7 @@
|
|
|
226
227
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
227
228
|
* const infoClient = new hl.InfoClient({ transport });
|
|
228
229
|
*
|
|
229
|
-
* const
|
|
230
|
+
* const data = await infoClient.extraAgents({ user: "0x..." });
|
|
230
231
|
* ```
|
|
231
232
|
*/
|
|
232
233
|
extraAgents(args, signal) {
|
|
@@ -250,7 +251,7 @@
|
|
|
250
251
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
251
252
|
* const infoClient = new hl.InfoClient({ transport });
|
|
252
253
|
*
|
|
253
|
-
* const
|
|
254
|
+
* const data = await infoClient.frontendOpenOrders({ user: "0x..." });
|
|
254
255
|
* ```
|
|
255
256
|
*/
|
|
256
257
|
frontendOpenOrders(args, signal) {
|
|
@@ -274,7 +275,7 @@
|
|
|
274
275
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
275
276
|
* const infoClient = new hl.InfoClient({ transport });
|
|
276
277
|
*
|
|
277
|
-
* const
|
|
278
|
+
* const data = await infoClient.fundingHistory({
|
|
278
279
|
* coin: "ETH",
|
|
279
280
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
280
281
|
* });
|
|
@@ -301,7 +302,7 @@
|
|
|
301
302
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
302
303
|
* const infoClient = new hl.InfoClient({ transport });
|
|
303
304
|
*
|
|
304
|
-
* const
|
|
305
|
+
* const data = await infoClient.historicalOrders({ user: "0x..." });
|
|
305
306
|
* ```
|
|
306
307
|
*/
|
|
307
308
|
historicalOrders(args, signal) {
|
|
@@ -325,7 +326,7 @@
|
|
|
325
326
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
326
327
|
* const infoClient = new hl.InfoClient({ transport });
|
|
327
328
|
*
|
|
328
|
-
* const
|
|
329
|
+
* const data = await infoClient.isVip({ user: "0x..." });
|
|
329
330
|
* ```
|
|
330
331
|
*/
|
|
331
332
|
isVip(args, signal) {
|
|
@@ -349,7 +350,7 @@
|
|
|
349
350
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
350
351
|
* const infoClient = new hl.InfoClient({ transport });
|
|
351
352
|
*
|
|
352
|
-
* const
|
|
353
|
+
* const data = await infoClient.l2Book({ coin: "ETH", nSigFigs: 2 });
|
|
353
354
|
* ```
|
|
354
355
|
*/
|
|
355
356
|
l2Book(args, signal) {
|
|
@@ -373,7 +374,7 @@
|
|
|
373
374
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
374
375
|
* const infoClient = new hl.InfoClient({ transport });
|
|
375
376
|
*
|
|
376
|
-
* const
|
|
377
|
+
* const data = await infoClient.legalCheck({ user: "0x..." });
|
|
377
378
|
* ```
|
|
378
379
|
*/
|
|
379
380
|
legalCheck(args, signal) {
|
|
@@ -397,7 +398,7 @@
|
|
|
397
398
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
398
399
|
* const infoClient = new hl.InfoClient({ transport });
|
|
399
400
|
*
|
|
400
|
-
* const
|
|
401
|
+
* const data = await infoClient.maxBuilderFee({ user: "0x...", builder: "0x..." });
|
|
401
402
|
* ```
|
|
402
403
|
*/
|
|
403
404
|
maxBuilderFee(args, signal) {
|
|
@@ -429,7 +430,7 @@
|
|
|
429
430
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
430
431
|
* const infoClient = new hl.InfoClient({ transport });
|
|
431
432
|
*
|
|
432
|
-
* const
|
|
433
|
+
* const data = await infoClient.metaAndAssetCtxs();
|
|
433
434
|
* ```
|
|
434
435
|
*/
|
|
435
436
|
metaAndAssetCtxs(signal) {
|
|
@@ -452,7 +453,7 @@
|
|
|
452
453
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
453
454
|
* const infoClient = new hl.InfoClient({ transport });
|
|
454
455
|
*
|
|
455
|
-
* const
|
|
456
|
+
* const data = await infoClient.openOrders({ user: "0x..." });
|
|
456
457
|
* ```
|
|
457
458
|
*/
|
|
458
459
|
openOrders(args, signal) {
|
|
@@ -476,7 +477,7 @@
|
|
|
476
477
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
477
478
|
* const infoClient = new hl.InfoClient({ transport });
|
|
478
479
|
*
|
|
479
|
-
* const
|
|
480
|
+
* const data = await infoClient.orderStatus({ user: "0x...", oid: 12345 });
|
|
480
481
|
* ```
|
|
481
482
|
*/
|
|
482
483
|
orderStatus(args, signal) {
|
|
@@ -499,7 +500,7 @@
|
|
|
499
500
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
500
501
|
* const infoClient = new hl.InfoClient({ transport });
|
|
501
502
|
*
|
|
502
|
-
* const
|
|
503
|
+
* const data = await infoClient.perpDeployAuctionStatus();
|
|
503
504
|
* ```
|
|
504
505
|
*/
|
|
505
506
|
perpDeployAuctionStatus(signal) {
|
|
@@ -521,7 +522,7 @@
|
|
|
521
522
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
522
523
|
* const infoClient = new hl.InfoClient({ transport });
|
|
523
524
|
*
|
|
524
|
-
* const
|
|
525
|
+
* const data = await infoClient.perpDexs();
|
|
525
526
|
* ```
|
|
526
527
|
*/
|
|
527
528
|
perpDexs(signal) {
|
|
@@ -544,7 +545,7 @@
|
|
|
544
545
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
545
546
|
* const infoClient = new hl.InfoClient({ transport });
|
|
546
547
|
*
|
|
547
|
-
* const
|
|
548
|
+
* const data = await infoClient.perpsAtOpenInterestCap();
|
|
548
549
|
* ```
|
|
549
550
|
*/
|
|
550
551
|
perpsAtOpenInterestCap(signal) {
|
|
@@ -567,7 +568,7 @@
|
|
|
567
568
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
568
569
|
* const infoClient = new hl.InfoClient({ transport });
|
|
569
570
|
*
|
|
570
|
-
* const
|
|
571
|
+
* const data = await infoClient.portfolio({ user: "0x..." });
|
|
571
572
|
* ```
|
|
572
573
|
*/
|
|
573
574
|
portfolio(args, signal) {
|
|
@@ -590,7 +591,7 @@
|
|
|
590
591
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
591
592
|
* const infoClient = new hl.InfoClient({ transport });
|
|
592
593
|
*
|
|
593
|
-
* const
|
|
594
|
+
* const data = await infoClient.predictedFundings();
|
|
594
595
|
* ```
|
|
595
596
|
*/
|
|
596
597
|
predictedFundings(signal) {
|
|
@@ -613,7 +614,7 @@
|
|
|
613
614
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
614
615
|
* const infoClient = new hl.InfoClient({ transport });
|
|
615
616
|
*
|
|
616
|
-
* const
|
|
617
|
+
* const data = await infoClient.preTransferCheck({ user: "0x...", source: "0x..." });
|
|
617
618
|
* ```
|
|
618
619
|
*/
|
|
619
620
|
preTransferCheck(args, signal) {
|
|
@@ -637,7 +638,7 @@
|
|
|
637
638
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
638
639
|
* const infoClient = new hl.InfoClient({ transport });
|
|
639
640
|
*
|
|
640
|
-
* const
|
|
641
|
+
* const data = await infoClient.referral({ user: "0x..." });
|
|
641
642
|
* ```
|
|
642
643
|
*/
|
|
643
644
|
referral(args, signal) {
|
|
@@ -661,7 +662,7 @@
|
|
|
661
662
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
662
663
|
* const infoClient = new hl.InfoClient({ transport });
|
|
663
664
|
*
|
|
664
|
-
* const
|
|
665
|
+
* const data = await infoClient.spotClearinghouseState({ user: "0x..." });
|
|
665
666
|
* ```
|
|
666
667
|
*/
|
|
667
668
|
spotClearinghouseState(args, signal) {
|
|
@@ -685,7 +686,7 @@
|
|
|
685
686
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
686
687
|
* const infoClient = new hl.InfoClient({ transport });
|
|
687
688
|
*
|
|
688
|
-
* const
|
|
689
|
+
* const data = await infoClient.spotDeployState({ user: "0x..." });
|
|
689
690
|
* ```
|
|
690
691
|
*/
|
|
691
692
|
spotDeployState(args, signal) {
|
|
@@ -708,7 +709,7 @@
|
|
|
708
709
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
709
710
|
* const infoClient = new hl.InfoClient({ transport });
|
|
710
711
|
*
|
|
711
|
-
* const
|
|
712
|
+
* const data = await infoClient.spotMeta();
|
|
712
713
|
* ```
|
|
713
714
|
*/
|
|
714
715
|
spotMeta(signal) {
|
|
@@ -730,7 +731,7 @@
|
|
|
730
731
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
731
732
|
* const infoClient = new hl.InfoClient({ transport });
|
|
732
733
|
*
|
|
733
|
-
* const
|
|
734
|
+
* const data = await infoClient.spotMetaAndAssetCtxs();
|
|
734
735
|
* ```
|
|
735
736
|
*/
|
|
736
737
|
spotMetaAndAssetCtxs(signal) {
|
|
@@ -753,7 +754,7 @@
|
|
|
753
754
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
754
755
|
* const infoClient = new hl.InfoClient({ transport });
|
|
755
756
|
*
|
|
756
|
-
* const
|
|
757
|
+
* const data = await infoClient.subAccounts({ user: "0x..." });
|
|
757
758
|
* ```
|
|
758
759
|
*/
|
|
759
760
|
subAccounts(args, signal) {
|
|
@@ -777,7 +778,7 @@
|
|
|
777
778
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
778
779
|
* const infoClient = new hl.InfoClient({ transport });
|
|
779
780
|
*
|
|
780
|
-
* const
|
|
781
|
+
* const data = await infoClient.tokenDetails({ tokenId: "0x..." });
|
|
781
782
|
* ```
|
|
782
783
|
*/
|
|
783
784
|
tokenDetails(args, signal) {
|
|
@@ -801,7 +802,7 @@
|
|
|
801
802
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
802
803
|
* const infoClient = new hl.InfoClient({ transport });
|
|
803
804
|
*
|
|
804
|
-
* const
|
|
805
|
+
* const data = await infoClient.twapHistory({ user: "0x..." });
|
|
805
806
|
* ```
|
|
806
807
|
*/
|
|
807
808
|
twapHistory(args, signal) {
|
|
@@ -825,15 +826,16 @@
|
|
|
825
826
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
826
827
|
* const infoClient = new hl.InfoClient({ transport });
|
|
827
828
|
*
|
|
828
|
-
* const
|
|
829
|
+
* const data = await infoClient.txDetails({ hash: "0x..." });
|
|
829
830
|
* ```
|
|
830
831
|
*/
|
|
831
|
-
txDetails(args, signal) {
|
|
832
|
+
async txDetails(args, signal) {
|
|
832
833
|
const request = {
|
|
833
834
|
type: "txDetails",
|
|
834
835
|
...args,
|
|
835
836
|
};
|
|
836
|
-
|
|
837
|
+
const { tx } = await this.transport.request("explorer", request, signal);
|
|
838
|
+
return tx;
|
|
837
839
|
}
|
|
838
840
|
/**
|
|
839
841
|
* User details by user's address.
|
|
@@ -849,15 +851,16 @@
|
|
|
849
851
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
850
852
|
* const infoClient = new hl.InfoClient({ transport });
|
|
851
853
|
*
|
|
852
|
-
* const
|
|
854
|
+
* const data = await infoClient.userDetails({ user: "0x..." });
|
|
853
855
|
* ```
|
|
854
856
|
*/
|
|
855
|
-
userDetails(args, signal) {
|
|
857
|
+
async userDetails(args, signal) {
|
|
856
858
|
const request = {
|
|
857
859
|
type: "userDetails",
|
|
858
860
|
...args,
|
|
859
861
|
};
|
|
860
|
-
|
|
862
|
+
const { txs } = await this.transport.request("explorer", request, signal);
|
|
863
|
+
return txs;
|
|
861
864
|
}
|
|
862
865
|
/**
|
|
863
866
|
* Request user fees.
|
|
@@ -873,7 +876,7 @@
|
|
|
873
876
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
874
877
|
* const infoClient = new hl.InfoClient({ transport });
|
|
875
878
|
*
|
|
876
|
-
* const
|
|
879
|
+
* const data = await infoClient.userFees({ user: "0x..." });
|
|
877
880
|
* ```
|
|
878
881
|
*/
|
|
879
882
|
userFees(args, signal) {
|
|
@@ -897,7 +900,7 @@
|
|
|
897
900
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
898
901
|
* const infoClient = new hl.InfoClient({ transport });
|
|
899
902
|
*
|
|
900
|
-
* const
|
|
903
|
+
* const data = await infoClient.userFills({ user: "0x..." });
|
|
901
904
|
* ```
|
|
902
905
|
*/
|
|
903
906
|
userFills(args, signal) {
|
|
@@ -921,7 +924,7 @@
|
|
|
921
924
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
922
925
|
* const infoClient = new hl.InfoClient({ transport });
|
|
923
926
|
*
|
|
924
|
-
* const
|
|
927
|
+
* const data = await infoClient.userFillsByTime({
|
|
925
928
|
* user: "0x...",
|
|
926
929
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
927
930
|
* });
|
|
@@ -948,7 +951,7 @@
|
|
|
948
951
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
949
952
|
* const infoClient = new hl.InfoClient({ transport });
|
|
950
953
|
*
|
|
951
|
-
* const
|
|
954
|
+
* const data = await infoClient.userFunding({
|
|
952
955
|
* user: "0x...",
|
|
953
956
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
954
957
|
* });
|
|
@@ -975,7 +978,7 @@
|
|
|
975
978
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
976
979
|
* const infoClient = new hl.InfoClient({ transport });
|
|
977
980
|
*
|
|
978
|
-
* const
|
|
981
|
+
* const data = await infoClient.userNonFundingLedgerUpdates({
|
|
979
982
|
* user: "0x...",
|
|
980
983
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
981
984
|
* });
|
|
@@ -1002,7 +1005,7 @@
|
|
|
1002
1005
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1003
1006
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1004
1007
|
*
|
|
1005
|
-
* const
|
|
1008
|
+
* const data = await infoClient.userRateLimit({ user: "0x..." });
|
|
1006
1009
|
* ```
|
|
1007
1010
|
*/
|
|
1008
1011
|
userRateLimit(args, signal) {
|
|
@@ -1026,7 +1029,7 @@
|
|
|
1026
1029
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1027
1030
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1028
1031
|
*
|
|
1029
|
-
* const
|
|
1032
|
+
* const data = await infoClient.userRole({ user: "0x..." });
|
|
1030
1033
|
* ```
|
|
1031
1034
|
*/
|
|
1032
1035
|
userRole(args, signal) {
|
|
@@ -1050,7 +1053,7 @@
|
|
|
1050
1053
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1051
1054
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1052
1055
|
*
|
|
1053
|
-
* const
|
|
1056
|
+
* const data = await infoClient.userToMultiSigSigners({ user: "0x..." });
|
|
1054
1057
|
* ```
|
|
1055
1058
|
*/
|
|
1056
1059
|
userToMultiSigSigners(args, signal) {
|
|
@@ -1074,7 +1077,7 @@
|
|
|
1074
1077
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1075
1078
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1076
1079
|
*
|
|
1077
|
-
* const
|
|
1080
|
+
* const data = await infoClient.userTwapSliceFills({ user: "0x..." });
|
|
1078
1081
|
* ```
|
|
1079
1082
|
*/
|
|
1080
1083
|
userTwapSliceFills(args, signal) {
|
|
@@ -1098,7 +1101,7 @@
|
|
|
1098
1101
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1099
1102
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1100
1103
|
*
|
|
1101
|
-
* const
|
|
1104
|
+
* const data = await infoClient.userTwapSliceFillsByTime({
|
|
1102
1105
|
* user: "0x...",
|
|
1103
1106
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
1104
1107
|
* });
|
|
@@ -1125,7 +1128,7 @@
|
|
|
1125
1128
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1126
1129
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1127
1130
|
*
|
|
1128
|
-
* const
|
|
1131
|
+
* const data = await infoClient.userVaultDeposits({ user: "0x..." });
|
|
1129
1132
|
* ```
|
|
1130
1133
|
*/
|
|
1131
1134
|
userVaultEquities(args, signal) {
|
|
@@ -1148,7 +1151,7 @@
|
|
|
1148
1151
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1149
1152
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1150
1153
|
*
|
|
1151
|
-
* const
|
|
1154
|
+
* const data = await infoClient.validatorSummaries();
|
|
1152
1155
|
* ```
|
|
1153
1156
|
*/
|
|
1154
1157
|
validatorSummaries(signal) {
|
|
@@ -1171,7 +1174,7 @@
|
|
|
1171
1174
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1172
1175
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1173
1176
|
*
|
|
1174
|
-
* const
|
|
1177
|
+
* const data = await infoClient.vaultDetails({ vaultAddress: "0x..." });
|
|
1175
1178
|
* ```
|
|
1176
1179
|
*/
|
|
1177
1180
|
vaultDetails(args, signal) {
|
|
@@ -1195,7 +1198,7 @@
|
|
|
1195
1198
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1196
1199
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1197
1200
|
*
|
|
1198
|
-
* const
|
|
1201
|
+
* const data = await infoClient.vaultSummaries();
|
|
1199
1202
|
* ```
|
|
1200
1203
|
*/
|
|
1201
1204
|
vaultSummaries(signal) {
|