@pear-protocol/hyperliquid-sdk 0.0.2 → 0.0.4

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.
@@ -5,7 +5,9 @@ import { SyncTradeHistoryDto, SyncTradeHistoryResponseDto, SyncOpenPositionDto,
5
5
  */
6
6
  export declare class PearMigrationSDK {
7
7
  private client;
8
- private isSyncRunning;
8
+ private isTradeHistorySyncRunning;
9
+ private isOpenPositionsSyncRunning;
10
+ private isOpenOrdersSyncRunning;
9
11
  constructor(client: PearHyperliquidClient);
10
12
  /**
11
13
  * Sync trade history data - can only run one at a time
@@ -23,9 +25,21 @@ export declare class PearMigrationSDK {
23
25
  */
24
26
  syncOpenOrders(payload: SyncOpenOrderDto): Promise<ApiResponse<SyncOpenOrderResponseDto> | null>;
25
27
  /**
26
- * Check if sync is currently running
28
+ * Check if any sync is currently running
27
29
  */
28
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;
29
43
  /**
30
44
  * Get the underlying client instance
31
45
  */
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/hyperliquid-sdk",
3
- "version": "0.0.2",
4
- "type": "module",
3
+ "version": "0.0.4",
5
4
  "description": "React SDK for Pear Protocol Hyperliquid API integration",
6
5
  "main": "dist/index.js",
7
6
  "module": "dist/index.esm.js",