Skip to content
New issue

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

Occasional unexpected rounding of the price value in orderbook and listorders #2062

Open
krrprr opened this issue Jan 28, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@krrprr
Copy link
Collaborator

krrprr commented Jan 28, 2021

Background

The orderbook and listorders occasionally return different values for price. Some values seem to be rounded.

Steps to reproduce

Place an order with price of:

  • 0.00520001 -> listorders includes the same price but orderbook, when called with precision of 8, returns 0.0052, while for example the price of 0.00282828 remains the same in both calls, same precision.
  • 0.036 -> orderbook shows it as 0.03599999, listorders returns correct price.
  • 0.00396999 -> orderbook returns correct price, listorders returns 0.00397`.
@krrprr krrprr added the bug Something isn't working label Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant