@vesper85/strategy-sdk 0.1.18 → 0.1.19

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -970,7 +970,8 @@ var PolymarketClient = class _PolymarketClient {
970
970
  price: params.price,
971
971
  side: params.side === "BUY" ? Side.BUY : Side.SELL,
972
972
  size: params.size,
973
- feeRateBps: parseInt(params.feeRateBps ?? "0", 10),
973
+ // Don't pass feeRateBps if not provided - let CLOB client auto-resolve from market
974
+ ...params.feeRateBps !== void 0 && { feeRateBps: parseInt(params.feeRateBps, 10) },
974
975
  expiration: params.expiration
975
976
  });
976
977
  const response = await client.postOrder(order);
@@ -1625,8 +1626,8 @@ var PolymarketClient = class _PolymarketClient {
1625
1626
  price: params.price,
1626
1627
  side: params.side === "BUY" ? Side.BUY : Side.SELL,
1627
1628
  size: params.size,
1628
- feeRateBps: parseInt(params.feeRateBps ?? "0", 10),
1629
- expiration: params.expiration
1629
+ expiration: params.expiration,
1630
+ ...params.feeRateBps !== void 0 && { feeRateBps: parseInt(params.feeRateBps, 10) }
1630
1631
  });
1631
1632
  const response = await client.postOrder(order);
1632
1633
  if (response.success) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesper85/strategy-sdk",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "description": "SDK for writing and running trading strategies with Polymarket and Hyperliquid integrations",
6
6
  "keywords": [
@@ -77,4 +77,4 @@
77
77
  "url": "https://github.com/FetcchX/legion-sdk/issues"
78
78
  },
79
79
  "homepage": "https://github.com/FetcchX/legion-sdk#readme"
80
- }
80
+ }