-
Notifications
You must be signed in to change notification settings - Fork 648
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
New market API uses doubles #144
Comments
Since those API's have been heavily used by 3rd-parties, we've missed the best time to change them. If we really want accurate data with similar functionalities, we need new API's without using doubles. |
Just noticed that doubles will be jsonified as strings, so we can still fix the API's. |
we have the easy option to change the |
@oxarbitrage the issue is doubles are not accurate even when have high resolution. For example, in #455 (review), the test data you wrote, |
closing by #594 |
From @theoreticalbts on January 7, 2016 19:22
The new market API implemented as part of cryptonomex/graphene#503 uses doubles. Use of doubles in any financial system is a worst practice, and this situation should be corrected. If #65 is finally implemented we should isolate the
double
's into their own API.An alternative version is to refactor the JSON code to take a
parse_float
function pointer, like Python's JSON parser, and then have the floats parsed as some kind of rational or string class that doesn't lose information.Copied from original issue: cryptonomex/graphene#504
(The description is updated to link to correct issue numbers)
The text was updated successfully, but these errors were encountered: