We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in exchanges/bitfinex.go change this
// now let's create the cache for price, amount := range orderbookMap { if amount < 0 { orderbook.Asks = insertSort(orderbook.Asks, environment.Order{ Value: decimal.NewFromFloat(price), Quantity: decimal.NewFromFloat(amount), }, false) } else if amount > 0 { orderbook.Bids = insertSort(orderbook.Bids, environment.Order{ Value: decimal.NewFromFloat(price), Quantity: decimal.NewFromFloat(-amount), }, true) } }
to this
// now let's create the cache for price, amount := range orderbookMap { if amount < 0 { orderbook.Asks = insertSort(orderbook.Asks, environment.Order{ Value: decimal.NewFromFloat(price), Quantity: decimal.NewFromFloat(-amount), }, false) } else if amount > 0 { orderbook.Bids = insertSort(orderbook.Bids, environment.Order{ Value: decimal.NewFromFloat(price), Quantity: decimal.NewFromFloat(amount), }, true) } }
The text was updated successfully, but these errors were encountered:
[TASK 130] Fixes #58
1ff8846
Fix/bitfinex negative amounts (#59)
306f2be
* fixing orderbook sync issue * Fixed bitfinex orderbook * [TASK 130] Fixes #58
Fixes #58
fdf2444
saniales
No branches or pull requests
in exchanges/bitfinex.go change this
to this
The text was updated successfully, but these errors were encountered: