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

Add toggle for displaying volume in tradestatistics chart in USD #5066

Merged

Conversation

chimp1984
Copy link
Contributor

Adds a toggle to show trade statistics volume in USD instead of BTC

Screen Shot 2021-01-08 at 16 43 00

Screen Shot 2021-01-08 at 16 43 06

Volume was created at each access from amount and price.
To improve performance we cache the result once calculated.
Precalculate the USD average prices for tick intervals
and use that for converting the BTC volume to USD volume.
@Conza88
Copy link

Conza88 commented Jan 8, 2021

Does it have to be USD? 😅
Anyway to provide fiat choice without being too hard?

@chimp1984
Copy link
Contributor Author

It need to be fiat currency sufficiently trades, so EUR or USD are the only one which always got some volume. We calculate the historical price based on those trades. The calculation is a bit expensive so I dont want to do it for multiple currencies. Also for most USD price is kind of the main price metric. Does not mean any endoresement of USD of course - the biggest shitcoin in fiat land. ;-)

This was referenced Jan 9, 2021
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@cbeams
Copy link
Contributor

cbeams commented Feb 4, 2021

Glad to see this feature. I just tweeted about it here: https://twitter.com/cbeams/status/1357298837052866560, and added a a follow-on feature request at #5154.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants