Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
fix(bars): fix typo in midPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosantini committed Mar 10, 2017
1 parent 1f84367 commit 75d1a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bars.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function getCompleteBars(tick) {
var instrument = tick.instrument,
time = tick && tick.time,
tickTime = time ? new Date(time) : new Date(),
midPrice = tick && ((parseFloat(tick.bid) + parseFloat(tick.ask)) / 2,
midPrice = tick && (parseFloat(tick.bid) + parseFloat(tick.ask)) / 2,
completeBars = [];

initBars(instrument);
Expand Down

0 comments on commit 75d1a99

Please sign in to comment.