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

[🪲BUG] Number of digits in RH crypto order is not checked #168

Open
2 tasks
tfukaza opened this issue Aug 30, 2021 · 0 comments
Open
2 tasks

[🪲BUG] Number of digits in RH crypto order is not checked #168

tfukaza opened this issue Aug 30, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@tfukaza
Copy link
Owner

tfukaza commented Aug 30, 2021

Describe the bug
Sometimes, when placing crypto orders on Robinhood, an error is returned by the API indicating the the number of digits in the order quantity is too much.

To Reproduce
For example, if you try to buy 0.00000001 DOGE, the order will fail.

Expected behavior
It appears that on Robinhood, the number of digits D_o allowed in the order quantity is N - D_p, where N is some constant and D_p is the number of digits in the current price of the cryptocurrency.

To fix this bug, you must:

  • Investigate the value of N
  • Add checks to buy/sell functions so order quantities are automatically rounded down to the proper number of digits.
@tfukaza tfukaza added bug Something isn't working good first issue Good for newcomers labels Aug 30, 2021
@tfukaza tfukaza modified the milestone: v0.4-alpha Dec 26, 2021
@tfukaza tfukaza added this to the v0.4.1-alpha milestone May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant