Skip to content

Commit

Permalink
Merge pull request bitrich-info#257 from badgerwithagun/fix-bitfinex-…
Browse files Browse the repository at this point in the history
…trade-signs

[Bitfinex] Fix trade signs
  • Loading branch information
Flemingjp committed Nov 27, 2018
2 parents 6d05aac + d884dd4 commit b1de781
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public BitfinexTrade toBitfinexTrade() {
} else {
type = "buy";
}

return new BitfinexTrade(price, amount, timestamp / 1000, "bitfinex", tradeId, type);
return new BitfinexTrade(price, amount.abs(), timestamp / 1000, "bitfinex", tradeId, type);
}
}

0 comments on commit b1de781

Please sign in to comment.