@nktkas/hyperliquid 0.24.2 → 0.24.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.
@@ -15,7 +15,7 @@ class InfoClient {
15
15
  * ```ts
16
16
  * import * as hl from "@nktkas/hyperliquid";
17
17
  *
18
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
18
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
19
19
  * const infoClient = new hl.InfoClient({ transport });
20
20
  * ```
21
21
  */
@@ -35,7 +35,7 @@ class InfoClient {
35
35
  * ```ts
36
36
  * import * as hl from "@nktkas/hyperliquid";
37
37
  *
38
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
38
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
39
39
  * const infoClient = new hl.InfoClient({ transport });
40
40
  *
41
41
  * const data = await infoClient.activeAssetData({ user: "0x...", coin: "ETH" });
@@ -88,7 +88,7 @@ class InfoClient {
88
88
  * ```ts
89
89
  * import * as hl from "@nktkas/hyperliquid";
90
90
  *
91
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
91
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
92
92
  * const infoClient = new hl.InfoClient({ transport });
93
93
  *
94
94
  * const data = await infoClient.candleSnapshot({
@@ -115,7 +115,7 @@ class InfoClient {
115
115
  * ```ts
116
116
  * import * as hl from "@nktkas/hyperliquid";
117
117
  *
118
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
118
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
119
119
  * const infoClient = new hl.InfoClient({ transport });
120
120
  *
121
121
  * const data = await infoClient.clearinghouseState({ user: "0x..." });
@@ -138,7 +138,7 @@ class InfoClient {
138
138
  * ```ts
139
139
  * import * as hl from "@nktkas/hyperliquid";
140
140
  *
141
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
141
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
142
142
  * const infoClient = new hl.InfoClient({ transport });
143
143
  *
144
144
  * const data = await infoClient.delegations({ user: "0x..." });
@@ -161,7 +161,7 @@ class InfoClient {
161
161
  * ```ts
162
162
  * import * as hl from "@nktkas/hyperliquid";
163
163
  *
164
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
164
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
165
165
  * const infoClient = new hl.InfoClient({ transport });
166
166
  *
167
167
  * const data = await infoClient.delegatorHistory({ user: "0x..." });
@@ -184,7 +184,7 @@ class InfoClient {
184
184
  * ```ts
185
185
  * import * as hl from "@nktkas/hyperliquid";
186
186
  *
187
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
187
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
188
188
  * const infoClient = new hl.InfoClient({ transport });
189
189
  *
190
190
  * const data = await infoClient.delegatorRewards({ user: "0x..." });
@@ -207,7 +207,7 @@ class InfoClient {
207
207
  * ```ts
208
208
  * import * as hl from "@nktkas/hyperliquid";
209
209
  *
210
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
210
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
211
211
  * const infoClient = new hl.InfoClient({ transport });
212
212
  *
213
213
  * const data = await infoClient.delegatorSummary({ user: "0x..." });
@@ -229,7 +229,7 @@ class InfoClient {
229
229
  * ```ts
230
230
  * import * as hl from "@nktkas/hyperliquid";
231
231
  *
232
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
232
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
233
233
  * const infoClient = new hl.InfoClient({ transport });
234
234
  *
235
235
  * const data = await infoClient.exchangeStatus();
@@ -252,7 +252,7 @@ class InfoClient {
252
252
  * ```ts
253
253
  * import * as hl from "@nktkas/hyperliquid";
254
254
  *
255
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
255
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
256
256
  * const infoClient = new hl.InfoClient({ transport });
257
257
  *
258
258
  * const data = await infoClient.extraAgents({ user: "0x..." });
@@ -275,7 +275,7 @@ class InfoClient {
275
275
  * ```ts
276
276
  * import * as hl from "@nktkas/hyperliquid";
277
277
  *
278
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
278
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
279
279
  * const infoClient = new hl.InfoClient({ transport });
280
280
  *
281
281
  * const data = await infoClient.frontendOpenOrders({ user: "0x..." });
@@ -298,7 +298,7 @@ class InfoClient {
298
298
  * ```ts
299
299
  * import * as hl from "@nktkas/hyperliquid";
300
300
  *
301
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
301
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
302
302
  * const infoClient = new hl.InfoClient({ transport });
303
303
  *
304
304
  * const data = await infoClient.fundingHistory({
@@ -324,7 +324,7 @@ class InfoClient {
324
324
  * ```ts
325
325
  * import * as hl from "@nktkas/hyperliquid";
326
326
  *
327
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
327
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
328
328
  * const infoClient = new hl.InfoClient({ transport });
329
329
  *
330
330
  * const data = await infoClient.historicalOrders({ user: "0x..." });
@@ -347,7 +347,7 @@ class InfoClient {
347
347
  * ```ts
348
348
  * import * as hl from "@nktkas/hyperliquid";
349
349
  *
350
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
350
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
351
351
  * const infoClient = new hl.InfoClient({ transport });
352
352
  *
353
353
  * const data = await infoClient.isVip({ user: "0x..." });
@@ -370,7 +370,7 @@ class InfoClient {
370
370
  * ```ts
371
371
  * import * as hl from "@nktkas/hyperliquid";
372
372
  *
373
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
373
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
374
374
  * const infoClient = new hl.InfoClient({ transport });
375
375
  *
376
376
  * const data = await infoClient.l2Book({ coin: "ETH", nSigFigs: 2 });
@@ -393,7 +393,7 @@ class InfoClient {
393
393
  * ```ts
394
394
  * import * as hl from "@nktkas/hyperliquid";
395
395
  *
396
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
396
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
397
397
  * const infoClient = new hl.InfoClient({ transport });
398
398
  *
399
399
  * const data = await infoClient.leadingVaults({ user: "0x..." });
@@ -416,7 +416,7 @@ class InfoClient {
416
416
  * ```ts
417
417
  * import * as hl from "@nktkas/hyperliquid";
418
418
  *
419
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
419
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
420
420
  * const infoClient = new hl.InfoClient({ transport });
421
421
  *
422
422
  * const data = await infoClient.legalCheck({ user: "0x..." });
@@ -438,7 +438,7 @@ class InfoClient {
438
438
  * ```ts
439
439
  * import * as hl from "@nktkas/hyperliquid";
440
440
  *
441
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
441
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
442
442
  * const infoClient = new hl.InfoClient({ transport });
443
443
  *
444
444
  * const data = await infoClient.liquidatable();
@@ -461,7 +461,7 @@ class InfoClient {
461
461
  * ```ts
462
462
  * import * as hl from "@nktkas/hyperliquid";
463
463
  *
464
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
464
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
465
465
  * const infoClient = new hl.InfoClient({ transport });
466
466
  *
467
467
  * const data = await infoClient.marginTable({ id: 1 });
@@ -484,7 +484,7 @@ class InfoClient {
484
484
  * ```ts
485
485
  * import * as hl from "@nktkas/hyperliquid";
486
486
  *
487
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
487
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
488
488
  * const infoClient = new hl.InfoClient({ transport });
489
489
  *
490
490
  * const data = await infoClient.maxBuilderFee({ user: "0x...", builder: "0x..." });
@@ -506,7 +506,7 @@ class InfoClient {
506
506
  * ```ts
507
507
  * import * as hl from "@nktkas/hyperliquid";
508
508
  *
509
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
509
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
510
510
  * const infoClient = new hl.InfoClient({ transport });
511
511
  *
512
512
  * const data = await infoClient.maxMarketOrderNtls();
@@ -522,26 +522,10 @@ class InfoClient {
522
522
  const request = { type: "meta", ...params };
523
523
  return this.transport.request("info", request, signal);
524
524
  }
525
- /**
526
- * Request metadata and asset contexts.
527
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
528
- * @returns Metadata and context for perpetual assets.
529
- *
530
- * @throws {TransportError} When the transport layer throws an error.
531
- *
532
- * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-perpetuals-asset-contexts-includes-mark-price-current-funding-open-interest-etc
533
- * @example
534
- * ```ts
535
- * import * as hl from "@nktkas/hyperliquid";
536
- *
537
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
538
- * const infoClient = new hl.InfoClient({ transport });
539
- *
540
- * const data = await infoClient.metaAndAssetCtxs();
541
- * ```
542
- */
543
- metaAndAssetCtxs(signal) {
544
- const request = { type: "metaAndAssetCtxs" };
525
+ metaAndAssetCtxs(params_or_signal, maybeSignal) {
526
+ const params = params_or_signal instanceof AbortSignal ? {} : params_or_signal;
527
+ const signal = params_or_signal instanceof AbortSignal ? params_or_signal : maybeSignal;
528
+ const request = { type: "metaAndAssetCtxs", ...params };
545
529
  return this.transport.request("info", request, signal);
546
530
  }
547
531
  /**
@@ -557,7 +541,7 @@ class InfoClient {
557
541
  * ```ts
558
542
  * import * as hl from "@nktkas/hyperliquid";
559
543
  *
560
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
544
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
561
545
  * const infoClient = new hl.InfoClient({ transport });
562
546
  *
563
547
  * const data = await infoClient.openOrders({ user: "0x..." });
@@ -580,7 +564,7 @@ class InfoClient {
580
564
  * ```ts
581
565
  * import * as hl from "@nktkas/hyperliquid";
582
566
  *
583
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
567
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
584
568
  * const infoClient = new hl.InfoClient({ transport });
585
569
  *
586
570
  * const data = await infoClient.orderStatus({ user: "0x...", oid: 12345 });
@@ -602,7 +586,7 @@ class InfoClient {
602
586
  * ```ts
603
587
  * import * as hl from "@nktkas/hyperliquid";
604
588
  *
605
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
589
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
606
590
  * const infoClient = new hl.InfoClient({ transport });
607
591
  *
608
592
  * const data = await infoClient.perpDeployAuctionStatus();
@@ -624,7 +608,7 @@ class InfoClient {
624
608
  * ```ts
625
609
  * import * as hl from "@nktkas/hyperliquid";
626
610
  *
627
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
611
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
628
612
  * const infoClient = new hl.InfoClient({ transport });
629
613
  *
630
614
  * const data = await infoClient.perpDexs();
@@ -634,26 +618,10 @@ class InfoClient {
634
618
  const request = { type: "perpDexs" };
635
619
  return this.transport.request("info", request, signal);
636
620
  }
637
- /**
638
- * Request perpetuals at open interest cap.
639
- * @param signal - An {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal | AbortSignal}. If this option is set, the request can be canceled by calling {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort | abort()} on the corresponding {@linkcode https://developer.mozilla.org/en-US/docs/Web/API/AbortController | AbortController}.
640
- * @returns Array of perpetuals at open interest caps.
641
- *
642
- * @throws {TransportError} When the transport layer throws an error.
643
- *
644
- * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#query-perps-at-open-interest-caps
645
- * @example
646
- * ```ts
647
- * import * as hl from "@nktkas/hyperliquid";
648
- *
649
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
650
- * const infoClient = new hl.InfoClient({ transport });
651
- *
652
- * const data = await infoClient.perpsAtOpenInterestCap();
653
- * ```
654
- */
655
- perpsAtOpenInterestCap(signal) {
656
- const request = { type: "perpsAtOpenInterestCap" };
621
+ perpsAtOpenInterestCap(params_or_signal, maybeSignal) {
622
+ const params = params_or_signal instanceof AbortSignal ? {} : params_or_signal;
623
+ const signal = params_or_signal instanceof AbortSignal ? params_or_signal : maybeSignal;
624
+ const request = { type: "perpsAtOpenInterestCap", ...params };
657
625
  return this.transport.request("info", request, signal);
658
626
  }
659
627
  /**
@@ -669,7 +637,7 @@ class InfoClient {
669
637
  * ```ts
670
638
  * import * as hl from "@nktkas/hyperliquid";
671
639
  *
672
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
640
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
673
641
  * const infoClient = new hl.InfoClient({ transport });
674
642
  *
675
643
  * const data = await infoClient.portfolio({ user: "0x..." });
@@ -691,7 +659,7 @@ class InfoClient {
691
659
  * ```ts
692
660
  * import * as hl from "@nktkas/hyperliquid";
693
661
  *
694
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
662
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
695
663
  * const infoClient = new hl.InfoClient({ transport });
696
664
  *
697
665
  * const data = await infoClient.predictedFundings();
@@ -714,7 +682,7 @@ class InfoClient {
714
682
  * ```ts
715
683
  * import * as hl from "@nktkas/hyperliquid";
716
684
  *
717
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
685
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
718
686
  * const infoClient = new hl.InfoClient({ transport });
719
687
  *
720
688
  * const data = await infoClient.preTransferCheck({ user: "0x...", source: "0x..." });
@@ -737,7 +705,7 @@ class InfoClient {
737
705
  * ```ts
738
706
  * import * as hl from "@nktkas/hyperliquid";
739
707
  *
740
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
708
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
741
709
  * const infoClient = new hl.InfoClient({ transport });
742
710
  *
743
711
  * const data = await infoClient.referral({ user: "0x..." });
@@ -760,7 +728,7 @@ class InfoClient {
760
728
  * ```ts
761
729
  * import * as hl from "@nktkas/hyperliquid";
762
730
  *
763
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
731
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
764
732
  * const infoClient = new hl.InfoClient({ transport });
765
733
  *
766
734
  * const data = await infoClient.spotClearinghouseState({ user: "0x..." });
@@ -783,7 +751,7 @@ class InfoClient {
783
751
  * ```ts
784
752
  * import * as hl from "@nktkas/hyperliquid";
785
753
  *
786
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
754
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
787
755
  * const infoClient = new hl.InfoClient({ transport });
788
756
  *
789
757
  * const data = await infoClient.spotDeployState({ user: "0x..." });
@@ -805,7 +773,7 @@ class InfoClient {
805
773
  * ```ts
806
774
  * import * as hl from "@nktkas/hyperliquid";
807
775
  *
808
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
776
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
809
777
  * const infoClient = new hl.InfoClient({ transport });
810
778
  *
811
779
  * const data = await infoClient.spotPairDeployAuctionStatus();
@@ -827,7 +795,7 @@ class InfoClient {
827
795
  * ```ts
828
796
  * import * as hl from "@nktkas/hyperliquid";
829
797
  *
830
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
798
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
831
799
  * const infoClient = new hl.InfoClient({ transport });
832
800
  *
833
801
  * const data = await infoClient.spotMeta();
@@ -849,7 +817,7 @@ class InfoClient {
849
817
  * ```ts
850
818
  * import * as hl from "@nktkas/hyperliquid";
851
819
  *
852
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
820
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
853
821
  * const infoClient = new hl.InfoClient({ transport });
854
822
  *
855
823
  * const data = await infoClient.spotMetaAndAssetCtxs();
@@ -872,7 +840,7 @@ class InfoClient {
872
840
  * ```ts
873
841
  * import * as hl from "@nktkas/hyperliquid";
874
842
  *
875
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
843
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
876
844
  * const infoClient = new hl.InfoClient({ transport });
877
845
  *
878
846
  * const data = await infoClient.subAccounts({ user: "0x..." });
@@ -895,7 +863,7 @@ class InfoClient {
895
863
  * ```ts
896
864
  * import * as hl from "@nktkas/hyperliquid";
897
865
  *
898
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
866
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
899
867
  * const infoClient = new hl.InfoClient({ transport });
900
868
  *
901
869
  * const data = await infoClient.tokenDetails({ tokenId: "0x..." });
@@ -918,7 +886,7 @@ class InfoClient {
918
886
  * ```ts
919
887
  * import * as hl from "@nktkas/hyperliquid";
920
888
  *
921
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
889
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
922
890
  * const infoClient = new hl.InfoClient({ transport });
923
891
  *
924
892
  * const data = await infoClient.twapHistory({ user: "0x..." });
@@ -989,7 +957,7 @@ class InfoClient {
989
957
  * ```ts
990
958
  * import * as hl from "@nktkas/hyperliquid";
991
959
  *
992
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
960
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
993
961
  * const infoClient = new hl.InfoClient({ transport });
994
962
  *
995
963
  * const data = await infoClient.userFees({ user: "0x..." });
@@ -1012,7 +980,7 @@ class InfoClient {
1012
980
  * ```ts
1013
981
  * import * as hl from "@nktkas/hyperliquid";
1014
982
  *
1015
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
983
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1016
984
  * const infoClient = new hl.InfoClient({ transport });
1017
985
  *
1018
986
  * const data = await infoClient.userFills({ user: "0x..." });
@@ -1035,7 +1003,7 @@ class InfoClient {
1035
1003
  * ```ts
1036
1004
  * import * as hl from "@nktkas/hyperliquid";
1037
1005
  *
1038
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1006
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1039
1007
  * const infoClient = new hl.InfoClient({ transport });
1040
1008
  *
1041
1009
  * const data = await infoClient.userFillsByTime({
@@ -1061,7 +1029,7 @@ class InfoClient {
1061
1029
  * ```ts
1062
1030
  * import * as hl from "@nktkas/hyperliquid";
1063
1031
  *
1064
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1032
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1065
1033
  * const infoClient = new hl.InfoClient({ transport });
1066
1034
  *
1067
1035
  * const data = await infoClient.userFunding({
@@ -1087,7 +1055,7 @@ class InfoClient {
1087
1055
  * ```ts
1088
1056
  * import * as hl from "@nktkas/hyperliquid";
1089
1057
  *
1090
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1058
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1091
1059
  * const infoClient = new hl.InfoClient({ transport });
1092
1060
  *
1093
1061
  * const data = await infoClient.userNonFundingLedgerUpdates({
@@ -1113,7 +1081,7 @@ class InfoClient {
1113
1081
  * ```ts
1114
1082
  * import * as hl from "@nktkas/hyperliquid";
1115
1083
  *
1116
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1084
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1117
1085
  * const infoClient = new hl.InfoClient({ transport });
1118
1086
  *
1119
1087
  * const data = await infoClient.userRateLimit({ user: "0x..." });
@@ -1136,7 +1104,7 @@ class InfoClient {
1136
1104
  * ```ts
1137
1105
  * import * as hl from "@nktkas/hyperliquid";
1138
1106
  *
1139
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1107
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1140
1108
  * const infoClient = new hl.InfoClient({ transport });
1141
1109
  *
1142
1110
  * const data = await infoClient.userRole({ user: "0x..." });
@@ -1159,7 +1127,7 @@ class InfoClient {
1159
1127
  * ```ts
1160
1128
  * import * as hl from "@nktkas/hyperliquid";
1161
1129
  *
1162
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1130
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1163
1131
  * const infoClient = new hl.InfoClient({ transport });
1164
1132
  *
1165
1133
  * const data = await infoClient.userToMultiSigSigners({ user: "0x..." });
@@ -1182,7 +1150,7 @@ class InfoClient {
1182
1150
  * ```ts
1183
1151
  * import * as hl from "@nktkas/hyperliquid";
1184
1152
  *
1185
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1153
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1186
1154
  * const infoClient = new hl.InfoClient({ transport });
1187
1155
  *
1188
1156
  * const data = await infoClient.userTwapSliceFills({ user: "0x..." });
@@ -1205,7 +1173,7 @@ class InfoClient {
1205
1173
  * ```ts
1206
1174
  * import * as hl from "@nktkas/hyperliquid";
1207
1175
  *
1208
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1176
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1209
1177
  * const infoClient = new hl.InfoClient({ transport });
1210
1178
  *
1211
1179
  * const data = await infoClient.userTwapSliceFillsByTime({
@@ -1231,7 +1199,7 @@ class InfoClient {
1231
1199
  * ```ts
1232
1200
  * import * as hl from "@nktkas/hyperliquid";
1233
1201
  *
1234
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1202
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1235
1203
  * const infoClient = new hl.InfoClient({ transport });
1236
1204
  *
1237
1205
  * const data = await infoClient.userVaultEquities({ user: "0x..." });
@@ -1253,7 +1221,7 @@ class InfoClient {
1253
1221
  * ```ts
1254
1222
  * import * as hl from "@nktkas/hyperliquid";
1255
1223
  *
1256
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1224
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1257
1225
  * const infoClient = new hl.InfoClient({ transport });
1258
1226
  *
1259
1227
  * const data = await infoClient.validatorL1Votes();
@@ -1275,7 +1243,7 @@ class InfoClient {
1275
1243
  * ```ts
1276
1244
  * import * as hl from "@nktkas/hyperliquid";
1277
1245
  *
1278
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1246
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1279
1247
  * const infoClient = new hl.InfoClient({ transport });
1280
1248
  *
1281
1249
  * const data = await infoClient.validatorSummaries();
@@ -1298,7 +1266,7 @@ class InfoClient {
1298
1266
  * ```ts
1299
1267
  * import * as hl from "@nktkas/hyperliquid";
1300
1268
  *
1301
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1269
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1302
1270
  * const infoClient = new hl.InfoClient({ transport });
1303
1271
  *
1304
1272
  * const data = await infoClient.vaultDetails({ vaultAddress: "0x..." });
@@ -1320,7 +1288,7 @@ class InfoClient {
1320
1288
  * ```ts
1321
1289
  * import * as hl from "@nktkas/hyperliquid";
1322
1290
  *
1323
- * const transport = new hl.HttpTransport(); // or WebSocketTransport
1291
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1324
1292
  * const infoClient = new hl.InfoClient({ transport });
1325
1293
  *
1326
1294
  * const data = await infoClient.vaultSummaries();