Amount in USD of a token transfers at specific txHash

Hey team,

To continute from the telegram chat, i’d like to query the amount in USD of a token transfers at specific txHash. For example:

uery MyQuery {
  ethereum {
    transfers(txHash: {is: "0xdaddf726fc4862867b2e7d52ea8210cbbd268d093bd3e68cb053fb9bc1b1e01f"}) {
      receiver {
        address
      }
      sender {
        address
      }
      currency {
        address
        symbol
      }
      amount
      amountUSD: amount(in: USD)
    }
  }
}

And the result is “amountUSD”: 151438.18184214542, which is much different from Ethereum Transaction Hash (Txhash) Details | Etherscan, which is $188,419.02 (you need to click on the current amount to toggle the estimated value on the transfered date)

Does bitquery store the amount in USD at the time of trasaction or the day of transaction?

I’m looking forward to hear your reply.

1 Like

The way we calculate USD price is that we take the 1-hour candle for the USD price of that token and all transactions between that hour will be multiplied by that USD price. So this might be because of that.

2 Likes

The price is dumped on that day, and others could use daily for price calculation.

This question (topic) is resolved. Thank you very much!

I’m looking forward to new features and use bitquery more.

1 Like