@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.
- package/dist/index.d.ts +16 -2
- package/dist/index.esm.js +32 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +32 -12
- package/dist/index.js.map +1 -1
- package/dist/migration-sdk.d.ts +16 -2
- package/package.json +1 -2
package/dist/migration-sdk.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ import { SyncTradeHistoryDto, SyncTradeHistoryResponseDto, SyncOpenPositionDto,
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class PearMigrationSDK {
|
|
7
7
|
private client;
|
|
8
|
-
private
|
|
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