V2 api - Trades for all tokens

Returns the latest 10 DEX trades by token on Ethereum, where DEX owner address is 0x5c69…aa6f, block time since 2023-09-24 and block time till 2023-09-25: trade amount, smart contract, currency symbol, trade price, side amount, side smart contract and side currency symbol.

By gaurav · saved 27 September 2023 · run 6 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      limitBy: {count: 1, by: Trade_Dex_Pair_SmartContract}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Dex: {OwnerAddress: {is: "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f"}}}, Block: {Time: {since: "2023-09-24T20:25:00Z", till: "2023-09-25T20:25:00Z"}}}
    ) {
      Trade {
        Amount
        Currency {
          SmartContract
          Symbol
        }
        Price(maximum: Block_Number)
        Side {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "token": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}

Similar queries