@pear-protocol/hyperliquid-sdk 0.0.5 → 0.0.7-2.2

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.
Files changed (60) hide show
  1. package/dist/clients/agentWallet.d.ts +3 -0
  2. package/dist/clients/auth.d.ts +14 -0
  3. package/dist/clients/hyperliquid.d.ts +25 -0
  4. package/dist/clients/notifications.d.ts +13 -0
  5. package/dist/clients/orders.d.ts +65 -0
  6. package/dist/clients/portfolio.d.ts +39 -0
  7. package/dist/clients/positions.d.ts +135 -0
  8. package/dist/clients/sync.d.ts +9 -0
  9. package/dist/clients/watchlist.d.ts +2 -0
  10. package/dist/hooks/index.d.ts +20 -2
  11. package/dist/hooks/useAccountSummary.d.ts +5 -0
  12. package/dist/hooks/useAgentWallet.d.ts +5 -0
  13. package/dist/hooks/useAllUserBalances.d.ts +9 -0
  14. package/dist/hooks/useAuth.d.ts +12 -0
  15. package/dist/hooks/useAutoSyncFills.d.ts +19 -0
  16. package/dist/hooks/useBasketCandles.d.ts +25 -0
  17. package/dist/hooks/useHistoricalPriceData.d.ts +11 -0
  18. package/dist/hooks/useMarketData.d.ts +12 -0
  19. package/dist/hooks/useNotifications.d.ts +16 -0
  20. package/dist/hooks/useOrders.d.ts +10 -0
  21. package/dist/hooks/usePerformanceOverlays.d.ts +14 -0
  22. package/dist/hooks/usePortfolio.d.ts +13 -0
  23. package/dist/hooks/usePosition.d.ts +13 -0
  24. package/dist/hooks/useSpotOrder.d.ts +13 -0
  25. package/dist/hooks/useTokenSelectionMetadata.d.ts +18 -0
  26. package/dist/hooks/useTrading.d.ts +6 -25
  27. package/dist/hooks/useTwap.d.ts +6 -0
  28. package/dist/hooks/useUserSelection.d.ts +3 -0
  29. package/dist/hooks/useWatchlist.d.ts +6 -0
  30. package/dist/hooks/useWebData.d.ts +30 -0
  31. package/dist/hyperliquid-websocket.d.ts +10 -0
  32. package/dist/index.d.ts +1301 -414
  33. package/dist/index.js +8290 -5579
  34. package/dist/provider.d.ts +11 -40
  35. package/dist/store/historicalPriceDataStore.d.ts +25 -0
  36. package/dist/store/hyperliquidDataStore.d.ts +31 -0
  37. package/dist/store/marketDataStore.d.ts +10 -0
  38. package/dist/store/tokenSelectionMetadataStore.d.ts +27 -0
  39. package/dist/store/userDataStore.d.ts +30 -0
  40. package/dist/store/userSelection.d.ts +27 -0
  41. package/dist/types.d.ts +617 -222
  42. package/dist/utils/account-summary-calculator.d.ts +17 -0
  43. package/dist/utils/basket-calculator.d.ts +24 -0
  44. package/dist/utils/chart-interval-mappers.d.ts +9 -0
  45. package/dist/utils/conflict-detector.d.ts +14 -0
  46. package/dist/utils/http.d.ts +26 -0
  47. package/dist/utils/position-processor.d.ts +2 -0
  48. package/dist/utils/position-validator.d.ts +61 -0
  49. package/dist/utils/symbol-translator.d.ts +40 -0
  50. package/dist/utils/token-metadata-extractor.d.ts +37 -0
  51. package/dist/websocket.d.ts +9 -0
  52. package/package.json +19 -6
  53. package/README.md +0 -230
  54. package/dist/client.d.ts +0 -43
  55. package/dist/hooks/useAddress.d.ts +0 -9
  56. package/dist/hyperliquid-service.d.ts +0 -75
  57. package/dist/index.esm.js +0 -5862
  58. package/dist/index.esm.js.map +0 -1
  59. package/dist/index.js.map +0 -1
  60. package/dist/migration-sdk.d.ts +0 -59
@@ -1,59 +0,0 @@
1
- import { PearHyperliquidClient } from './client';
2
- import { SyncTradeHistoryDto, SyncTradeHistoryResponseDto, SyncOpenPositionDto, SyncOpenPositionResponseDto, SyncOpenOrderDto, SyncOpenOrderResponseDto, ApiResponse } from './types';
3
- /**
4
- * Main Migration SDK Class - Simple request/response pattern
5
- */
6
- export declare class PearMigrationSDK {
7
- private client;
8
- private isTradeHistorySyncRunning;
9
- private isOpenPositionsSyncRunning;
10
- private isOpenOrdersSyncRunning;
11
- constructor(client: PearHyperliquidClient);
12
- /**
13
- * Sync trade history data - can only run one at a time
14
- * If called while already running, returns immediately without making request
15
- */
16
- syncTradeHistory(payload: SyncTradeHistoryDto): Promise<ApiResponse<SyncTradeHistoryResponseDto> | null>;
17
- /**
18
- * Sync open positions data - can only run one at a time
19
- * If called while already running, returns immediately without making request
20
- */
21
- syncOpenPositions(payload: SyncOpenPositionDto): Promise<ApiResponse<SyncOpenPositionResponseDto> | null>;
22
- /**
23
- * Sync open orders data - can only run one at a time
24
- * If called while already running, returns immediately without making request
25
- */
26
- syncOpenOrders(payload: SyncOpenOrderDto): Promise<ApiResponse<SyncOpenOrderResponseDto> | null>;
27
- /**
28
- * Check if any sync is currently running
29
- */
30
- isSyncInProgress(): boolean;
31
- /**
32
- * Check if trade history sync is currently running
33
- */
34
- isTradeHistorySyncInProgress(): boolean;
35
- /**
36
- * Check if open positions sync is currently running
37
- */
38
- isOpenPositionsSyncInProgress(): boolean;
39
- /**
40
- * Check if open orders sync is currently running
41
- */
42
- isOpenOrdersSyncInProgress(): boolean;
43
- /**
44
- * Get the underlying client instance
45
- */
46
- getClient(): PearHyperliquidClient;
47
- /**
48
- * Set authorization token on the client
49
- */
50
- setAuthToken(token: string): void;
51
- /**
52
- * Set custom headers on the client
53
- */
54
- setHeaders(headers: Record<string, string>): void;
55
- /**
56
- * Get base URL from client
57
- */
58
- getBaseUrl(): string;
59
- }