# USD prices during transaction

**URL:** <https://community.bitquery.io/t/usd-prices-during-transaction/125>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [June 7, 2021, 6:23am UTC](https://community.bitquery.io/t/usd-prices-during-transaction/125 "2021-06-07T06:23:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeta](https://avatars.discourse-cdn.com/v4/letter/z/7feea3/32.png) [@Zeta](https://community.bitquery.io/u/Zeta)\
**Post date:** [June 7, 2021, 6:23am UTC](https://community.bitquery.io/t/usd-prices-during-transaction/125/1 "2021-06-07T06:23:12Z")

</div>

Hi, I would like to get an example of a query where we provide the transaction hash and get back the trade amount in USD (at the time of transaction) somewhat like the [bscscan.com](http://bscscan.com) shows. Eg: if 0.75 bnb was used query should get price of 0.75bnb during the transaction time

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [June 7, 2021, 6:40am UTC](https://community.bitquery.io/t/usd-prices-during-transaction/125/2 "2021-06-07T06:40:52Z")

</div>

Use Transfer APIs for this.

For example check following example

```auto
{
  ethereum(network: bsc) {
    transfers(amount: {gt: 0}, txHash: {is: "0xebc8d212b4c861e13b30b344ef7c7068b0e1ee2a1b5d0090fc7ea1dc8e577be4"}) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      amountInUSD: amount(in: USD)
      currency {
        symbol
        address
      }
      external
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [July 13, 2023, 6:43pm UTC](https://community.bitquery.io/t/usd-prices-during-transaction/125/3 "2023-07-13T18:43:07Z")

</div>

Check this query to get USD price of token

> **[Latest price of Aave](https://ide.bitquery.io/Latest-price-of-Aave)**
>
> Latest price of Aave
