@rabby-wallet/hyperliquid-sdk 1.0.0-beta.15 → 1.0.0-beta.16

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.
@@ -28,7 +28,7 @@ export declare class InfoClient {
28
28
  /**
29
29
  * Get user's fill history
30
30
  */
31
- getUserFills(address?: string): Promise<UserFills>;
31
+ getUserFills(address?: string, aggregateByTime?: boolean): Promise<UserFills>;
32
32
  /**
33
33
  * Get candlestick data snapshot
34
34
  * Supported intervals: "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "8h", "12h", "1d", "3d", "1w", "1M"
@@ -100,11 +100,12 @@ class InfoClient {
100
100
  /**
101
101
  * Get user's fill history
102
102
  */
103
- getUserFills(address) {
103
+ getUserFills(address, aggregateByTime) {
104
104
  return __awaiter(this, void 0, void 0, function* () {
105
105
  return this.httpClient.info({
106
106
  type: constants_1.InfoType.USER_FILLS,
107
107
  user: address || this.masterAddress,
108
+ aggregateByTime: aggregateByTime || true,
108
109
  });
109
110
  });
110
111
  }
@@ -184,7 +184,7 @@ class WebSocketClient {
184
184
  */
185
185
  subscribeToUserFills(callback) {
186
186
  return this.subscribe({
187
- subscription: { type: 'userFills', user: this.config.masterAddress },
187
+ subscription: { type: 'userFills', user: this.config.masterAddress, aggregateByTime: true },
188
188
  }, callback);
189
189
  }
190
190
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/hyperliquid-sdk",
3
- "version": "1.0.0-beta.15",
3
+ "version": "1.0.0-beta.16",
4
4
  "description": "Simplified Hyperliquid Perpetuals Trading SDK for Frontend Applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",