Skip to content

Commit

Permalink
Merge pull request #22 from tarcisiozf/remove-big-number
Browse files Browse the repository at this point in the history
remove big number
  • Loading branch information
tarcisiozf authored Jun 6, 2022
2 parents 871027c + dbd5ade commit 7ec5b23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const _isEmpty = require('lodash/isEmpty')
const _reverse = require('lodash/reverse')
const _isFunction = require('lodash/isFunction')
const _isPlainObject = require('lodash/isPlainObject')
const BigNumber = require('bignumber.js')

const { candleWidth } = require('bfx-hf-util')
const { subscribe } = require('bfx-api-node-core')
Expand Down Expand Up @@ -95,7 +94,7 @@ class LiveStrategyExecution extends EventEmitter {
}

if (trades.mts > lastUpdate) {
this.priceFeed.update(new BigNumber(trades.price))
this.priceFeed.update(trades.price)
lastUpdate = trades.mts
}

Expand All @@ -113,7 +112,7 @@ class LiveStrategyExecution extends EventEmitter {
candle.tf = tf

if (candle.mts > lastUpdate) {
this.priceFeed.update(new BigNumber(candle[this.candlePrice]))
this.priceFeed.update(candle[this.candlePrice])
lastUpdate = candle.mts
}

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-hf-strategy-exec",
"version": "1.3.0",
"version": "1.3.1",
"description": "Execution logic for bfx-hf-strategy",
"main": "./index.js",
"directories": {
Expand Down Expand Up @@ -39,7 +39,6 @@
"bfx-api-node-util": "^1.0.2",
"bfx-hf-strategy": "git+https://github.com/bitfinexcom/bfx-hf-strategy.git#v1.3.0",
"bfx-hf-util": "git+https://github.com/bitfinexcom/bfx-hf-util.git#v1.0.12",
"bignumber.js": "^9.0.2",
"debug": "^4.3.3",
"lodash": "^4.17.10",
"mathjs": "^10.1.0",
Expand Down

0 comments on commit 7ec5b23

Please sign in to comment.