@pear-protocol/hyperliquid-sdk 0.0.5 → 0.0.7-3.beta
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/dist/clients/agentWallet.d.ts +3 -0
- package/dist/clients/auth.d.ts +14 -0
- package/dist/clients/hyperliquid.d.ts +25 -0
- package/dist/clients/notifications.d.ts +13 -0
- package/dist/clients/orders.d.ts +24 -0
- package/dist/clients/portfolio.d.ts +39 -0
- package/dist/clients/positions.d.ts +135 -0
- package/dist/clients/sync.d.ts +9 -0
- package/dist/clients/watchlist.d.ts +2 -0
- package/dist/hooks/index.d.ts +18 -2
- package/dist/hooks/useAccountSummary.d.ts +5 -0
- package/dist/hooks/useAgentWallet.d.ts +5 -0
- package/dist/hooks/useAuth.d.ts +14 -0
- package/dist/hooks/useAutoSyncFills.d.ts +19 -0
- package/dist/hooks/useBasketCandles.d.ts +25 -0
- package/dist/hooks/useHistoricalPriceData.d.ts +11 -0
- package/dist/hooks/useMarketData.d.ts +10 -0
- package/dist/hooks/useNotifications.d.ts +16 -0
- package/dist/hooks/useOrders.d.ts +10 -0
- package/dist/hooks/usePerformanceOverlays.d.ts +14 -0
- package/dist/hooks/usePortfolio.d.ts +13 -0
- package/dist/hooks/usePosition.d.ts +13 -0
- package/dist/hooks/useTokenSelectionMetadata.d.ts +18 -0
- package/dist/hooks/useTrading.d.ts +7 -23
- package/dist/hooks/useTwap.d.ts +6 -0
- package/dist/hooks/useUserSelection.d.ts +3 -0
- package/dist/hooks/useWatchlist.d.ts +6 -0
- package/dist/hooks/useWebData.d.ts +12 -0
- package/dist/hyperliquid-websocket.d.ts +10 -0
- package/dist/index.d.ts +1130 -419
- package/dist/index.js +7207 -5551
- package/dist/provider.d.ts +12 -41
- package/dist/store/historicalPriceDataStore.d.ts +25 -0
- package/dist/store/hyperliquidDataStore.d.ts +25 -0
- package/dist/store/marketDataStore.d.ts +10 -0
- package/dist/store/tokenSelectionMetadataStore.d.ts +27 -0
- package/dist/store/userDataStore.d.ts +30 -0
- package/dist/store/userSelection.d.ts +27 -0
- package/dist/types.d.ts +566 -225
- package/dist/utils/account-summary-calculator.d.ts +17 -0
- package/dist/utils/basket-calculator.d.ts +24 -0
- package/dist/utils/chart-interval-mappers.d.ts +9 -0
- package/dist/utils/conflict-detector.d.ts +14 -0
- package/dist/utils/http.d.ts +26 -0
- package/dist/utils/position-processor.d.ts +2 -0
- package/dist/utils/position-validator.d.ts +61 -0
- package/dist/utils/symbol-translator.d.ts +11 -0
- package/dist/utils/token-metadata-extractor.d.ts +33 -0
- package/dist/websocket.d.ts +9 -0
- package/package.json +19 -6
- package/README.md +0 -230
- package/dist/client.d.ts +0 -43
- package/dist/hooks/useAddress.d.ts +0 -9
- package/dist/hyperliquid-service.d.ts +0 -75
- package/dist/index.esm.js +0 -5862
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/migration-sdk.d.ts +0 -59
package/dist/migration-sdk.d.ts
DELETED
|
@@ -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
|
-
}
|