@rabby-wallet/hyperliquid-sdk 1.1.2-beta.17 → 1.1.2-beta.18

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.
@@ -247,7 +247,7 @@ class ExchangeClient {
247
247
  sz: (0, number_1.removeTrailingZeros)(params.size),
248
248
  limitPx: px,
249
249
  reduceOnly: params.reduceOnly || false,
250
- orderType: { limit: { tif: 'Ioc' } },
250
+ orderType: { limit: { tif: 'FrontendMarket' } },
251
251
  }];
252
252
  if (params.tpTriggerPx) {
253
253
  const tpOrder = {
@@ -52,7 +52,7 @@ class HttpClient {
52
52
  if (error.name === 'AbortError') {
53
53
  throw new Error('Request timeout');
54
54
  }
55
- throw new Error(`API Error: ${error.message}`);
55
+ throw new Error(error.message);
56
56
  }
57
57
  throw new Error('Unknown API error');
58
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/hyperliquid-sdk",
3
- "version": "1.1.2-beta.17",
3
+ "version": "1.1.2-beta.18",
4
4
  "description": "Simplified Hyperliquid Perpetuals Trading SDK for Frontend Applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",