explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Add values in USD and BTC

Open andresgalante opened this issue 3 years ago • 1 comments

This is a wide effort, the end goal is to show values on BTC and USD whenever we show a STX value. It includes:

  • [x] #819
  • [x] On the header show the current BTC and STX value, examples are OnStack Explorer or Stacking.club
  • [ ] On the transaction page, if it's an STX tx on the amount row and in all fees
  • [ ] On account page on the balance
  • [ ] On any transaction list, if it's an STX tx

I am probably missing other places, please add them to the list.

important: Do not tackle these as a bundle, create sub-issues from this one and let's ship one by one.

andresgalante avatar Aug 02 '22 16:08 andresgalante

Since we are using the free tier API from CoinGecko we need to add attribution. I suggest a line in the footer that reads "Market data provided by CoinGecko" with a link to CoinGecko.

andresgalante avatar Aug 09 '22 16:08 andresgalante

Hi @andresgalante @leahjlou thanks for these great additions... could it be possible to also add the USD price into a transaction's events? For example here: https://explorer.stacks.co/txid/0xf0e9c3e0080e38963374d683054511d28ad7671ea361cee2ef3026d236395dd4?chain=mainnet With the event USD quote, you could easily see how much was paid to buy that NFT. I think that would be very useful.

There's no specific reason for this ask, btw, just thought it would be a nice to have 👍

rafaelcr avatar Sep 19 '22 21:09 rafaelcr