get_buys_and_sells_by_token_address

for QR

Returns the latest 101 DEX trades on Ethereum, where sell currency smart contract is 0xccdb…b002, buy currency smart contract is 0xccdb…b002 and block time since 2023-10-11: block time, from, sell smart contract and buy smart contract.

By aboba · saved 2 November 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query get_buys_and_sells_by_token_address                {
          EVM(dataset: combined, network: eth) {
          
    buys: DEXTrades(
      limit: {count: 101}
      orderBy: {descending: Block_Time}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0xccdb064a41afcd432bcea6f6d0d1e7c371d0b002"}}}}, Block: {Time: {since: "2023-10-11T00:00:00Z", till: "2023-10-12T00:00:00Z"}}}
    ) {
      Block {
        Time
      }
      Transaction {
        From
      }
      Trade {
        Sell {
          Currency {
            SmartContract
          }
        }
      }
    }
    
          
    sells: DEXTrades(
      limit: {count: 101}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xccdb064a41afcd432bcea6f6d0d1e7c371d0b002"}}}}, Block: {Time: {since: "2023-10-11T00:00:00Z", till: "2023-10-12T00:00:00Z"}}}
    ) {
      Block {
        Time
      }
      Transaction {
        From
      }
      Trade {
        Buy {
          Currency {
            SmartContract
          }
        }
      }
    }
    
        }}
        

Similar queries