query token trade

Returns the latest 50 DEX trades by token on Ethereum, where currency smart contract is 0x5de7…023d and block time before 2024-09-18: trade amount, amount in USD, currency symbol, buyer, protocol name, smart contract, seller and 10 more fields.

By xiong · saved 18 September 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {SmartContract: {is: "0x5de758bba013e58dae2693aea3f0b12b31a3023d"}}}, Block: {Time: {before: "2024-09-18T10:25:20.687Z"}}, TransactionStatus: {Success: true}}
      limit: {count: 50, offset: 0}
    ) {
      Trade {
        Amount
        AmountInUSD
        Currency {
          Symbol
          __typename
        }
        Buyer
        Dex {
          ProtocolName
          SmartContract
          __typename
        }
        Seller
        PriceInUSD
        Side {
          Currency {
            Symbol
            __typename
          }
          Amount
          AmountInUSD
          Buyer
          Seller
          __typename
        }
        __typename
      }
      Transaction {
        Hash
        From
        __typename
      }
      Block {
        Hash
        Time
        __typename
      }
      __typename
    }
    __typename
  }
}

Similar queries