Closed svk31 closed 7 years ago
Another example:
In this one most things are wrong, actual volume was 14 EUR and 3960 BTS. There's definitely some issues with precision, and probably something to do with inversion of markets as well.
Some more observations:
Volumes don't get switched when the market is inverted, but the precisions get do get inverted. Latest price does not get inverted at all, only the precision changes.
We're almost there, everything seems to be correct now except for the 24 hr change which is inversed. The below screens were taken at 18.45 on the 24th. The latest price was 35.9361, the last closing price at 18.45 on the 23rd was 39.5. get_ticker is returning a 24hr change of +9.92%.
The correct change should be (35.9361 - 39.5) / 39.5 = -9.02%
The 24 hr change displayed on the web is not using the get_ticker call. From the same market, get_ticker returned the correct 24hr change.
Patch has already been merged into Bitshares,
@theoreticalbts This branch is ready for review to be merged.
Just a note, the branch https://github.com/cryptonomex/graphene/compare/592-get_ticker contains new commits which will fix a witness crash issue, and need to be reviewed and merged (if haven't done already).
@abitmore @mvandeberg was that fix from 592-get_ticker ever merged into master?
It's merged into develop branch: https://github.com/cryptonomex/graphene/commit/2fb3cb107840efe75235d69c07b942970b048b28, but not yet merged into bitshares branch, see https://github.com/bitshares/bitshares-2/compare/bitshares...cryptonomex:develop
This issue was moved to bitshares/bitshares-core#178
Playing around with the new API calls I noticed the highest_bid and lowest_ask have two bugs:
Everything else seems to be ok.