@vesper85/strategy-sdk 0.1.3 → 0.1.5

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 +1 -13
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2281,10 +2281,6 @@ var PolymarketEventRunner = class {
2281
2281
  * Dispatch an event to the strategy's onEvent handler
2282
2282
  */
2283
2283
  async dispatchEvent(event) {
2284
- const eventStart = Date.now();
2285
- this.config.logger.debug(
2286
- `Dispatching ${event.type} event${event.market ? ` for ${event.market}` : ""}`
2287
- );
2288
2284
  try {
2289
2285
  if (this.strategy.onEvent) {
2290
2286
  await this.strategy.onEvent(event, this.context);
@@ -2295,8 +2291,6 @@ var PolymarketEventRunner = class {
2295
2291
  error
2296
2292
  );
2297
2293
  }
2298
- const eventDuration = Date.now() - eventStart;
2299
- this.config.logger.debug(`Event handling completed in ${eventDuration}ms`);
2300
2294
  }
2301
2295
  };
2302
2296
  function createPolymarketEventRunner(strategy, config, context) {
@@ -2648,11 +2642,7 @@ var OsirisEventRunner = class {
2648
2642
  * Dispatch an event to the strategy's onEvent handler
2649
2643
  */
2650
2644
  async dispatchEvent(event) {
2651
- const eventStart = Date.now();
2652
- const target = event.market || event.wallet || "";
2653
- this.config.logger.debug(
2654
- `Dispatching ${event.type} event${target ? ` for ${target}` : ""}`
2655
- );
2645
+ event.market || event.wallet || "";
2656
2646
  try {
2657
2647
  if (this.strategy.onEvent) {
2658
2648
  await this.strategy.onEvent(event, this.context);
@@ -2663,8 +2653,6 @@ var OsirisEventRunner = class {
2663
2653
  error
2664
2654
  );
2665
2655
  }
2666
- const eventDuration = Date.now() - eventStart;
2667
- this.config.logger.debug(`Event handling completed in ${eventDuration}ms`);
2668
2656
  }
2669
2657
  };
2670
2658
  function createEventRunner(strategy, config, context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vesper85/strategy-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "description": "SDK for writing and running trading strategies with Polymarket and Hyperliquid integrations",
6
6
  "keywords": [
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@polymarket/clob-client": "^4.6.0",
48
48
  "@polymarket/real-time-data-client": "^1.0.0",
49
- "@vesper85/technical-indicators": "^0.1.0",
49
+ "@vesper85/technical-indicators": "^0.1.5",
50
50
  "axios": "^1.7.9",
51
51
  "ethers": "^6.13.4",
52
52
  "hyperliquid": "^1.7.7",