Skip to content

Commit

Permalink
Merge pull request #25 from avsek477/fix-big-number-price-feed
Browse files Browse the repository at this point in the history
emit perf update price data as a number
  • Loading branch information
tarcisiozf authored Jun 8, 2022
2 parents 7ec5b23 + 293dacd commit ad4a02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class LiveStrategyExecution extends EventEmitter {

this._subscribeCandleAndTradeEvents()

this.perfManager.on('update', () => this._emitStrategyExecutionResults('perf', this.priceFeed))
this.perfManager.on('update', () => this._emitStrategyExecutionResults('perf', { price: this.priceFeed.price.toNumber() }))
}

/**
Expand Down

0 comments on commit ad4a02c

Please sign in to comment.