@pear-protocol/hyperliquid-sdk 0.0.59 → 0.0.60-beta-usdh

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.
@@ -2,7 +2,7 @@ import type { ApiResponse, CandleInterval, CandleData, ExternalFillDto, AllPerpM
2
2
  /**
3
3
  * Fetch historical candle data from HyperLiquid API
4
4
  */
5
- export declare const fetchHistoricalCandles: (coin: string, startTime: number, endTime: number, interval: CandleInterval, displayToFull: Map<string, string>) => Promise<ApiResponse<CandleData[]>>;
5
+ export declare const fetchHistoricalCandles: (coin: string, startTime: number, endTime: number, interval: CandleInterval, hip3Assets: Map<string, string[]>) => Promise<ApiResponse<CandleData[]>>;
6
6
  /**
7
7
  * Retrieve recent user fills from HyperLiquid and map to ExternalFillDto[]
8
8
  */
@@ -56,7 +56,7 @@ export interface CreatePositionResponseDto {
56
56
  * Authorization is derived from headers (Axios defaults or browser localStorage fallback)
57
57
  * @throws MinimumPositionSizeError if any asset has less than $11 USD value
58
58
  */
59
- export declare function createPosition(baseUrl: string, payload: CreatePositionRequestInput, displayToFull: Map<string, string>): Promise<ApiResponse<CreatePositionResponseDto>>;
59
+ export declare function createPosition(baseUrl: string, payload: CreatePositionRequestInput, hip3Assets: Map<string, string[]>): Promise<ApiResponse<CreatePositionResponseDto>>;
60
60
  export interface UpdateRiskParametersRequestInput {
61
61
  stopLoss?: TpSlThresholdInput | null;
62
62
  takeProfit?: TpSlThresholdInput | null;
@@ -123,5 +123,5 @@ export interface AdjustAdvanceResponseDto {
123
123
  status: string;
124
124
  executedAt: string;
125
125
  }
126
- export declare function adjustAdvancePosition(baseUrl: string, positionId: string, payload: AdjustAdvanceItemInput[], displayToFull: Map<string, string>): Promise<ApiResponse<AdjustAdvanceResponseDto>>;
126
+ export declare function adjustAdvancePosition(baseUrl: string, positionId: string, payload: AdjustAdvanceItemInput[], hip3Assets: Map<string, string[]>): Promise<ApiResponse<AdjustAdvanceResponseDto>>;
127
127
  export declare function cancelTwap(baseUrl: string, orderId: string): Promise<ApiResponse<CancelTwapResponseDto>>;
@@ -1,2 +1,2 @@
1
1
  import type { ApiResponse, ToggleWatchlistResponseDto, WatchlistAssetDto } from '../types';
2
- export declare function toggleWatchlist(baseUrl: string, longAssets: WatchlistAssetDto[], shortAssets: WatchlistAssetDto[], displayToFull: Map<string, string>): Promise<ApiResponse<ToggleWatchlistResponseDto>>;
2
+ export declare function toggleWatchlist(baseUrl: string, longAssets: WatchlistAssetDto[], shortAssets: WatchlistAssetDto[], hip3Assets: Map<string, string[]>): Promise<ApiResponse<ToggleWatchlistResponseDto>>;
@@ -1,10 +1,12 @@
1
- import type { ActiveAssetGroupItem, ActiveAssetsResponse, ActiveAssetsAllResponse } from '../types';
1
+ import type { ActiveAssetGroupItem, ActiveAssetsResponse, ActiveAssetsAllResponse, UniverseAsset } from '../types';
2
+ export type CollateralFilter = 'USDC' | 'USDH' | 'ALL';
2
3
  export declare const useMarketDataPayload: () => ActiveAssetsResponse | null;
3
4
  export declare const useMarketDataAllPayload: () => ActiveAssetsAllResponse | null;
4
- export declare const useActiveBaskets: () => ActiveAssetGroupItem[];
5
- export declare const useTopGainers: (limit?: number) => ActiveAssetGroupItem[];
6
- export declare const useTopLosers: (limit?: number) => ActiveAssetGroupItem[];
7
- export declare const useHighlightedBaskets: () => ActiveAssetGroupItem[];
8
- export declare const useWatchlistBaskets: () => ActiveAssetGroupItem[];
9
- export declare const useAllBaskets: () => ActiveAssetGroupItem[];
5
+ export declare const usePerpMetaAssets: () => UniverseAsset[] | null;
6
+ export declare const useActiveBaskets: (collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
7
+ export declare const useTopGainers: (limit?: number, collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
8
+ export declare const useTopLosers: (limit?: number, collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
9
+ export declare const useHighlightedBaskets: (collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
10
+ export declare const useWatchlistBaskets: (collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
11
+ export declare const useAllBaskets: (collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
10
12
  export declare const useFindBasket: (longs: string[], shorts: string[]) => ActiveAssetGroupItem | undefined;
@@ -1,12 +1,30 @@
1
- import type { AssetMarketData, ClearinghouseState } from '../types';
1
+ import type { ClearinghouseState, MarketDataBySymbol } from '../types';
2
2
  /**
3
3
  * Hook to access webData and native WebSocket state
4
4
  */
5
5
  export declare const useWebData: () => {
6
6
  clearinghouseState: ClearinghouseState | null;
7
7
  perpsAtOpenInterestCap: string[] | null;
8
- marketDataBySymbol: Record<string, AssetMarketData>;
9
- hip3Assets: Map<string, string>;
8
+ /**
9
+ * Market data keyed by symbol, with nested market variants.
10
+ * Each symbol maps to its market variants (keyed by prefix).
11
+ * For non-HIP3 assets, use "default" as the key.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * // HIP-3 asset with multiple markets
16
+ * marketDataBySymbol["TSLA"]["xyz"] // { asset, universe: { collateralToken: "USDC" } }
17
+ * marketDataBySymbol["TSLA"]["flx"] // { asset, universe: { collateralToken: "USDH" } }
18
+ *
19
+ * // Regular asset
20
+ * marketDataBySymbol["BTC"]["default"] // { asset, universe }
21
+ * ```
22
+ */
23
+ marketDataBySymbol: MarketDataBySymbol;
24
+ /** Map of display name -> all full market names (e.g., "TSLA" -> ["xyz:TSLA", "flx:TSLA"]) */
25
+ hip3Assets: Map<string, string[]>;
26
+ /** Map of full market name -> prefix (e.g., "xyz:TSLA" -> "xyz") */
27
+ hip3MarketPrefixes: Map<string, string>;
10
28
  isConnected: boolean;
11
29
  error: string | null;
12
30
  };
package/dist/index.d.ts CHANGED
@@ -226,6 +226,8 @@ interface PositionAssetDetailDto {
226
226
  liquidationPrice: number;
227
227
  initialWeight: number;
228
228
  fundingPaid?: number;
229
+ marketPrefix?: string | null;
230
+ collateralToken?: CollateralToken;
229
231
  }
230
232
  interface TpSlThreshold {
231
233
  type: 'PERCENTAGE' | 'DOLLAR' | 'POSITION_VALUE';
@@ -397,7 +399,7 @@ interface AgentWalletState {
397
399
  * WebSocket message from HyperLiquid native API
398
400
  */
399
401
  interface WebSocketMessage {
400
- method: "subscribe" | "unsubscribe";
402
+ method: 'subscribe' | 'unsubscribe';
401
403
  subscription: {
402
404
  type: string;
403
405
  dex?: string;
@@ -471,6 +473,12 @@ interface AssetCtx {
471
473
  impactPxs?: string[];
472
474
  oraclePx: string;
473
475
  }
476
+ /**
477
+ * Collateral token type
478
+ * 0 = USDC
479
+ * 360 = USDH
480
+ */
481
+ type CollateralToken = 'USDC' | 'USDH';
474
482
  /**
475
483
  * Universe asset metadata
476
484
  */
@@ -480,6 +488,8 @@ interface UniverseAsset {
480
488
  maxLeverage: number;
481
489
  onlyIsolated?: boolean;
482
490
  isDelisted?: boolean;
491
+ marketPrefix?: string;
492
+ collateralToken?: CollateralToken;
483
493
  }
484
494
  interface ClearinghouseState {
485
495
  assetPositions: AssetPosition[];
@@ -597,6 +607,7 @@ interface TokenMetadata {
597
607
  leverage?: LeverageInfo;
598
608
  maxTradeSzs?: [string, string];
599
609
  availableToTrade?: [string, string];
610
+ collateralToken?: CollateralToken;
600
611
  }
601
612
  /**
602
613
  * Enhanced token selection with weight and metadata for basket trading
@@ -617,9 +628,30 @@ interface AssetMarketData {
617
628
  asset: WebData3AssetCtx | AssetCtx;
618
629
  universe: UniverseAsset;
619
630
  }
631
+ /**
632
+ * Nested market data structure for multi-market assets.
633
+ * Each symbol maps to its market variants (keyed by prefix).
634
+ * For non-HIP3 assets, use "default" as the key.
635
+ *
636
+ * @example
637
+ * ```ts
638
+ * {
639
+ * "TSLA": {
640
+ * "xyz": { asset: {...}, universe: { collateralToken: "USDC", ... } },
641
+ * "flx": { asset: {...}, universe: { collateralToken: "USDH", ... } }
642
+ * },
643
+ * "BTC": {
644
+ * "default": { asset: {...}, universe: {...} }
645
+ * }
646
+ * }
647
+ * ```
648
+ */
649
+ type MarketDataBySymbol = Record<string, Record<string, AssetMarketData>>;
620
650
  interface PairAssetDto {
621
651
  asset: string;
622
652
  weight: number;
653
+ collateralToken: CollateralToken;
654
+ marketPrefix: string | null;
623
655
  }
624
656
  interface ActiveAssetGroupItem {
625
657
  longAssets: PairAssetDto[];
@@ -633,6 +665,7 @@ interface ActiveAssetGroupItem {
633
665
  weightedRatio?: string;
634
666
  weightedPrevRatio?: string;
635
667
  weightedChange24h?: string;
668
+ collateralType: 'USDC' | 'USDH' | 'MIXED';
636
669
  }
637
670
  interface ActiveAssetsResponse {
638
671
  active: ActiveAssetGroupItem[];
@@ -650,7 +683,7 @@ interface ActiveAssetsAllResponse {
650
683
  /**
651
684
  * Candle interval options
652
685
  */
653
- type CandleInterval = "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1M";
686
+ type CandleInterval = '1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M';
654
687
  /**
655
688
  * Candle data structure from WebSocket
656
689
  */
@@ -678,7 +711,7 @@ interface CandleSnapshotRequest {
678
711
  endTime: number;
679
712
  interval: CandleInterval;
680
713
  };
681
- type: "candleSnapshot";
714
+ type: 'candleSnapshot';
682
715
  }
683
716
  interface TokenSelectorConfig {
684
717
  isLong: boolean;
@@ -734,8 +767,26 @@ declare const useUserSelection: () => UserSelectionState;
734
767
  declare const useWebData: () => {
735
768
  clearinghouseState: ClearinghouseState | null;
736
769
  perpsAtOpenInterestCap: string[] | null;
737
- marketDataBySymbol: Record<string, AssetMarketData>;
738
- hip3Assets: Map<string, string>;
770
+ /**
771
+ * Market data keyed by symbol, with nested market variants.
772
+ * Each symbol maps to its market variants (keyed by prefix).
773
+ * For non-HIP3 assets, use "default" as the key.
774
+ *
775
+ * @example
776
+ * ```ts
777
+ * // HIP-3 asset with multiple markets
778
+ * marketDataBySymbol["TSLA"]["xyz"] // { asset, universe: { collateralToken: "USDC" } }
779
+ * marketDataBySymbol["TSLA"]["flx"] // { asset, universe: { collateralToken: "USDH" } }
780
+ *
781
+ * // Regular asset
782
+ * marketDataBySymbol["BTC"]["default"] // { asset, universe }
783
+ * ```
784
+ */
785
+ marketDataBySymbol: MarketDataBySymbol;
786
+ /** Map of display name -> all full market names (e.g., "TSLA" -> ["xyz:TSLA", "flx:TSLA"]) */
787
+ hip3Assets: Map<string, string[]>;
788
+ /** Map of full market name -> prefix (e.g., "xyz:TSLA" -> "xyz") */
789
+ hip3MarketPrefixes: Map<string, string>;
739
790
  isConnected: boolean;
740
791
  error: string | null;
741
792
  };
@@ -926,7 +977,7 @@ interface CreatePositionResponseDto {
926
977
  * Authorization is derived from headers (Axios defaults or browser localStorage fallback)
927
978
  * @throws MinimumPositionSizeError if any asset has less than $11 USD value
928
979
  */
929
- declare function createPosition(baseUrl: string, payload: CreatePositionRequestInput, displayToFull: Map<string, string>): Promise<ApiResponse<CreatePositionResponseDto>>;
980
+ declare function createPosition(baseUrl: string, payload: CreatePositionRequestInput, hip3Assets: Map<string, string[]>): Promise<ApiResponse<CreatePositionResponseDto>>;
930
981
  interface UpdateRiskParametersRequestInput {
931
982
  stopLoss?: TpSlThresholdInput | null;
932
983
  takeProfit?: TpSlThresholdInput | null;
@@ -993,7 +1044,7 @@ interface AdjustAdvanceResponseDto {
993
1044
  status: string;
994
1045
  executedAt: string;
995
1046
  }
996
- declare function adjustAdvancePosition(baseUrl: string, positionId: string, payload: AdjustAdvanceItemInput[], displayToFull: Map<string, string>): Promise<ApiResponse<AdjustAdvanceResponseDto>>;
1047
+ declare function adjustAdvancePosition(baseUrl: string, positionId: string, payload: AdjustAdvanceItemInput[], hip3Assets: Map<string, string[]>): Promise<ApiResponse<AdjustAdvanceResponseDto>>;
997
1048
  declare function cancelTwap(baseUrl: string, orderId: string): Promise<ApiResponse<CancelTwapResponseDto>>;
998
1049
 
999
1050
  declare function usePosition(): {
@@ -1036,14 +1087,16 @@ interface UseNotificationsResult {
1036
1087
  */
1037
1088
  declare function useNotifications(): UseNotificationsResult;
1038
1089
 
1090
+ type CollateralFilter = 'USDC' | 'USDH' | 'ALL';
1039
1091
  declare const useMarketDataPayload: () => ActiveAssetsResponse | null;
1040
1092
  declare const useMarketDataAllPayload: () => ActiveAssetsAllResponse | null;
1041
- declare const useActiveBaskets: () => ActiveAssetGroupItem[];
1042
- declare const useTopGainers: (limit?: number) => ActiveAssetGroupItem[];
1043
- declare const useTopLosers: (limit?: number) => ActiveAssetGroupItem[];
1044
- declare const useHighlightedBaskets: () => ActiveAssetGroupItem[];
1045
- declare const useWatchlistBaskets: () => ActiveAssetGroupItem[];
1046
- declare const useAllBaskets: () => ActiveAssetGroupItem[];
1093
+ declare const usePerpMetaAssets: () => UniverseAsset[] | null;
1094
+ declare const useActiveBaskets: (collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
1095
+ declare const useTopGainers: (limit?: number, collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
1096
+ declare const useTopLosers: (limit?: number, collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
1097
+ declare const useHighlightedBaskets: (collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
1098
+ declare const useWatchlistBaskets: (collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
1099
+ declare const useAllBaskets: (collateralFilter?: CollateralFilter) => ActiveAssetGroupItem[];
1047
1100
  declare const useFindBasket: (longs: string[], shorts: string[]) => ActiveAssetGroupItem | undefined;
1048
1101
 
1049
1102
  declare function useWatchlist(): {
@@ -1150,7 +1203,7 @@ declare function markNotificationReadById(baseUrl: string, id: string): Promise<
1150
1203
  updated: number;
1151
1204
  }>>;
1152
1205
 
1153
- declare function toggleWatchlist(baseUrl: string, longAssets: WatchlistAssetDto[], shortAssets: WatchlistAssetDto[], displayToFull: Map<string, string>): Promise<ApiResponse<ToggleWatchlistResponseDto>>;
1206
+ declare function toggleWatchlist(baseUrl: string, longAssets: WatchlistAssetDto[], shortAssets: WatchlistAssetDto[], hip3Assets: Map<string, string[]>): Promise<ApiResponse<ToggleWatchlistResponseDto>>;
1154
1207
 
1155
1208
  /**
1156
1209
  * Account summary calculation utility class
@@ -1189,24 +1242,28 @@ declare class ConflictDetector {
1189
1242
  declare class TokenMetadataExtractor {
1190
1243
  /**
1191
1244
  * Extracts comprehensive token metadata
1192
- * @param symbol - Token symbol
1245
+ * @param symbol - Token symbol (base symbol without prefix, e.g., "TSLA")
1193
1246
  * @param perpMetaAssets - Aggregated universe assets (flattened across dexes)
1194
1247
  * @param finalAssetContexts - Aggregated asset contexts (flattened across dexes)
1195
1248
  * @param allMids - AllMids data containing current prices
1196
1249
  * @param activeAssetData - Optional active asset data containing leverage information
1250
+ * @param marketPrefix - Optional market prefix (e.g., "xyz", "flx") for HIP3 multi-market assets
1197
1251
  * @returns TokenMetadata or null if token not found
1198
1252
  */
1199
- static extractTokenMetadata(symbol: string, perpMetaAssets: UniverseAsset[] | null, finalAssetContexts: WebData3AssetCtx[] | null, allMids: WsAllMidsData | null, activeAssetData?: Record<string, ActiveAssetData> | null): TokenMetadata | null;
1253
+ static extractTokenMetadata(symbol: string, perpMetaAssets: UniverseAsset[] | null, finalAssetContexts: WebData3AssetCtx[] | null, allMids: WsAllMidsData | null, activeAssetData?: Record<string, ActiveAssetData> | null, marketPrefix?: string | null): TokenMetadata | null;
1200
1254
  /**
1201
1255
  * Extracts metadata for multiple tokens
1202
- * @param symbols - Array of token symbols
1256
+ * @param tokens - Array of token objects with symbol and optional marketPrefix
1203
1257
  * @param perpMetaAssets - Aggregated universe assets
1204
1258
  * @param finalAssetContexts - Aggregated asset contexts
1205
1259
  * @param allMids - AllMids data
1206
1260
  * @param activeAssetData - Optional active asset data containing leverage information
1207
- * @returns Record of symbol to TokenMetadata
1261
+ * @returns Record of unique key to TokenMetadata. Key is "{prefix}:{symbol}" for HIP3 assets, or just "{symbol}" otherwise
1208
1262
  */
1209
- static extractMultipleTokensMetadata(symbols: string[], perpMetaAssets: UniverseAsset[] | null, finalAssetContexts: WebData3AssetCtx[] | null, allMids: WsAllMidsData | null, activeAssetData?: Record<string, ActiveAssetData> | null): Record<string, TokenMetadata | null>;
1263
+ static extractMultipleTokensMetadata(tokens: Array<{
1264
+ symbol: string;
1265
+ marketPrefix?: string | null;
1266
+ }>, perpMetaAssets: UniverseAsset[] | null, finalAssetContexts: WebData3AssetCtx[] | null, allMids: WsAllMidsData | null, activeAssetData?: Record<string, ActiveAssetData> | null): Record<string, TokenMetadata | null>;
1210
1267
  /**
1211
1268
  * Checks if token data is available in aggregated universe assets
1212
1269
  * @param symbol - Token symbol
@@ -1290,7 +1347,48 @@ declare function validatePositionSize(usdValue: number, longAssets?: PairAssetIn
1290
1347
  minimumRequired?: number;
1291
1348
  };
1292
1349
 
1350
+ /**
1351
+ * Convert a full/prefixed symbol (e.g., "xyz:XYZ100") to a display symbol (e.g., "XYZ100").
1352
+ */
1353
+ declare function toDisplaySymbol(symbol: string): string;
1354
+ /**
1355
+ * Convert a display symbol back to backend form using a provided map.
1356
+ * If mapping is missing, returns the original symbol.
1357
+ * For multi-market assets, returns the first available market.
1358
+ * @param displaySymbol e.g., "TSLA"
1359
+ * @param hip3Assets map of display -> all full market names (e.g., "TSLA" -> ["xyz:TSLA", "flx:TSLA"])
1360
+ */
1361
+ declare function toBackendSymbol(displaySymbol: string, hip3Assets: Map<string, string[]>): string;
1362
+ /**
1363
+ * Convert a display symbol to backend form for a specific market prefix.
1364
+ * This is useful when an asset is available on multiple markets (e.g., xyz:TSLA and flx:TSLA).
1365
+ * @param displaySymbol e.g., "TSLA"
1366
+ * @param marketPrefix e.g., "xyz" or "flx"
1367
+ * @param hip3Assets map of display -> all full market names
1368
+ * @returns Full market name if found, null if prefix not specified for multi-market asset, otherwise displaySymbol with prefix
1369
+ */
1370
+ declare function toBackendSymbolWithMarket(displaySymbol: string, marketPrefix: string | undefined, hip3Assets: Map<string, string[]>): string | null;
1371
+ /**
1372
+ * Get all available markets for a display symbol.
1373
+ * @param displaySymbol e.g., "TSLA"
1374
+ * @param hip3Assets map of display -> all full market names
1375
+ * @returns Array of full market names, e.g., ["xyz:TSLA", "flx:TSLA"]
1376
+ */
1377
+ declare function getAvailableMarkets(displaySymbol: string, hip3Assets: Map<string, string[]>): string[];
1378
+ /**
1379
+ * Extract the market prefix from a full market name.
1380
+ * @param fullSymbol e.g., "xyz:TSLA"
1381
+ * @returns The prefix (e.g., "xyz") or undefined if no prefix
1382
+ */
1383
+ declare function getMarketPrefix(fullSymbol: string): string | undefined;
1384
+ /**
1385
+ * Check if a symbol is a HIP-3 market (has a prefix).
1386
+ * @param symbol e.g., "xyz:TSLA" or "TSLA"
1387
+ * @returns true if the symbol has a market prefix
1388
+ */
1389
+ declare function isHip3Market(symbol: string): boolean;
1390
+
1293
1391
  declare const useMarketData: any;
1294
1392
 
1295
- export { AccountSummaryCalculator, ConflictDetector, MINIMUM_ASSET_USD_VALUE, MinimumPositionSizeError, PearHyperliquidProvider, TokenMetadataExtractor, adjustAdvancePosition, adjustOrder, adjustPosition, calculateMinimumPositionValue, calculateWeightedRatio, cancelOrder, cancelTwap, cancelTwapOrder, closeAllPositions, closePosition, computeBasketCandles, createCandleLookups, createPosition, getCompleteTimestamps, getPortfolio, mapCandleIntervalToTradingViewInterval, mapTradingViewIntervalToCandleInterval, markNotificationReadById, markNotificationsRead, toggleWatchlist, updateRiskParameters, useAccountSummary, useActiveBaskets, useAgentWallet, useAllBaskets, useAuth, useAutoSyncFills, useBasketCandles, useFindBasket, useHighlightedBaskets, useHistoricalPriceData, useHistoricalPriceDataStore, useHyperliquidNativeWebSocket, useHyperliquidWebSocket, useMarketData, useMarketDataAllPayload, useMarketDataPayload, useNotifications, useOpenOrders, useOrders, usePearHyperliquid, usePerformanceOverlays, usePortfolio, usePosition, useTokenSelectionMetadata, useTopGainers, useTopLosers, useTradeHistories, useTwap, useUserSelection, useWatchlist, useWatchlistBaskets, useWebData, validateMinimumAssetSize, validatePositionSize };
1296
- export type { AccountSummaryResponseDto, ActiveAssetGroupItem, ActiveAssetsResponse, AdjustAdvanceAssetInput, AdjustAdvanceItemInput, AdjustAdvanceResponseDto, AdjustExecutionType, AdjustOrderRequestInput, AdjustOrderResponseDto, AdjustPositionRequestInput, AdjustPositionResponseDto, AgentWalletDto, AgentWalletState, ApiErrorResponse, ApiResponse, AssetCtx, AssetInformationDetail, AssetMarketData, AssetPosition, AutoSyncFillsOptions, AutoSyncFillsState, BalanceSummaryDto, CancelOrderResponseDto, CancelTwapResponseDto, CandleChartData, CandleData, CandleInterval, CandleSnapshotRequest, ClearinghouseState, CloseAllPositionsResponseDto, CloseAllPositionsResultDto, CloseExecutionType, ClosePositionRequestInput, ClosePositionResponseDto, CreatePositionRequestInput, CreatePositionResponseDto, CrossMarginSummaryDto, CumFundingDto, ExecutionType, ExtraAgent, HLWebSocketResponse, HistoricalRange, LadderConfigInput, MarginSummaryDto, NotificationCategory, NotificationDto, OpenLimitOrderDto, OpenPositionDto, OrderAssetDto, OrderStatus, PairAssetDto, PairAssetInput, PerformanceOverlay, PlatformAccountSummaryResponseDto, PortfolioBucketDto, PortfolioInterval, PortfolioIntervalsDto, PortfolioOverallDto, PortfolioResponseDto, PositionAdjustmentType, PositionAssetDetailDto, PositionAssetSummaryDto, PositionResponseStatus, RealtimeBar, RealtimeBarsCallback, ToggleWatchlistResponseDto, TokenConflict, TokenHistoricalPriceData, TokenMetadata, TokenSelection, TpSlThresholdInput, TpSlThresholdType, TradeHistoryAssetDataDto, TradeHistoryDataDto, TwapChunkStatusDto, TwapMonitoringDto, TwapSliceFillResponseItem, UniverseAsset, UpdateRiskParametersRequestInput, UpdateRiskParametersResponseDto, UseAuthOptions, UseBasketCandlesReturn, UseHistoricalPriceDataReturn, UseNotificationsResult, UsePerformanceOverlaysReturn, UsePortfolioResult, UseTokenSelectionMetadataReturn, UserProfile, UserSelectionState, WatchlistItemDto, WebSocketAckResponse, WebSocketChannel, WebSocketConnectionState, WebSocketDataMessage, WebSocketMessage, WebSocketSubscribeMessage, WsAllMidsData };
1393
+ export { AccountSummaryCalculator, ConflictDetector, MINIMUM_ASSET_USD_VALUE, MinimumPositionSizeError, PearHyperliquidProvider, TokenMetadataExtractor, adjustAdvancePosition, adjustOrder, adjustPosition, calculateMinimumPositionValue, calculateWeightedRatio, cancelOrder, cancelTwap, cancelTwapOrder, closeAllPositions, closePosition, computeBasketCandles, createCandleLookups, createPosition, getAvailableMarkets, getCompleteTimestamps, getMarketPrefix, getPortfolio, isHip3Market, mapCandleIntervalToTradingViewInterval, mapTradingViewIntervalToCandleInterval, markNotificationReadById, markNotificationsRead, toBackendSymbol, toBackendSymbolWithMarket, toDisplaySymbol, toggleWatchlist, updateRiskParameters, useAccountSummary, useActiveBaskets, useAgentWallet, useAllBaskets, useAuth, useAutoSyncFills, useBasketCandles, useFindBasket, useHighlightedBaskets, useHistoricalPriceData, useHistoricalPriceDataStore, useHyperliquidNativeWebSocket, useHyperliquidWebSocket, useMarketData, useMarketDataAllPayload, useMarketDataPayload, useNotifications, useOpenOrders, useOrders, usePearHyperliquid, usePerformanceOverlays, usePerpMetaAssets, usePortfolio, usePosition, useTokenSelectionMetadata, useTopGainers, useTopLosers, useTradeHistories, useTwap, useUserSelection, useWatchlist, useWatchlistBaskets, useWebData, validateMinimumAssetSize, validatePositionSize };
1394
+ export type { AccountSummaryResponseDto, ActiveAssetGroupItem, ActiveAssetsResponse, AdjustAdvanceAssetInput, AdjustAdvanceItemInput, AdjustAdvanceResponseDto, AdjustExecutionType, AdjustOrderRequestInput, AdjustOrderResponseDto, AdjustPositionRequestInput, AdjustPositionResponseDto, AgentWalletDto, AgentWalletState, ApiErrorResponse, ApiResponse, AssetCtx, AssetInformationDetail, AssetMarketData, AssetPosition, AutoSyncFillsOptions, AutoSyncFillsState, BalanceSummaryDto, CancelOrderResponseDto, CancelTwapResponseDto, CandleChartData, CandleData, CandleInterval, CandleSnapshotRequest, ClearinghouseState, CloseAllPositionsResponseDto, CloseAllPositionsResultDto, CloseExecutionType, ClosePositionRequestInput, ClosePositionResponseDto, CollateralFilter, CollateralToken, CreatePositionRequestInput, CreatePositionResponseDto, CrossMarginSummaryDto, CumFundingDto, ExecutionType, ExtraAgent, HLWebSocketResponse, HistoricalRange, LadderConfigInput, MarginSummaryDto, MarketDataBySymbol, NotificationCategory, NotificationDto, OpenLimitOrderDto, OpenPositionDto, OrderAssetDto, OrderStatus, PairAssetDto, PairAssetInput, PerformanceOverlay, PlatformAccountSummaryResponseDto, PortfolioBucketDto, PortfolioInterval, PortfolioIntervalsDto, PortfolioOverallDto, PortfolioResponseDto, PositionAdjustmentType, PositionAssetDetailDto, PositionAssetSummaryDto, PositionResponseStatus, RealtimeBar, RealtimeBarsCallback, ToggleWatchlistResponseDto, TokenConflict, TokenHistoricalPriceData, TokenMetadata, TokenSelection, TpSlThresholdInput, TpSlThresholdType, TradeHistoryAssetDataDto, TradeHistoryDataDto, TwapChunkStatusDto, TwapMonitoringDto, TwapSliceFillResponseItem, UniverseAsset, UpdateRiskParametersRequestInput, UpdateRiskParametersResponseDto, UseAuthOptions, UseBasketCandlesReturn, UseHistoricalPriceDataReturn, UseNotificationsResult, UsePerformanceOverlaysReturn, UsePortfolioResult, UseTokenSelectionMetadataReturn, UserProfile, UserSelectionState, WatchlistItemDto, WebSocketAckResponse, WebSocketChannel, WebSocketConnectionState, WebSocketDataMessage, WebSocketMessage, WebSocketSubscribeMessage, WsAllMidsData };