WBTC trades

Returns the latest 10 DEX trades by token on Ethereum, where currency smart contract is 0x2260…c599, block date since 2024-07-23 and block date till 2024-07-30: chain ID, block number, block time, seller, buyer, trade amount, smart contract and 8 more fields.

By gaurav · saved 30 July 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $token: String, $from: String, $till: String) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}, Block: {Date: {since: $from, till: $till}}}
    ) {
      ChainId
      Block {
        Number
        Time
      }
      Trade {
        Seller
        Buyer
        Amount
        Currency {
          SmartContract
          Symbol
          Name
        }
        Price
        Side {
          Amount
          Currency {
            SmartContract
            Symbol
            Name
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Variables

{
  "mempool": false,
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "token": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
  "from": "2024-07-23",
  "till": "2024-07-30",
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2024-07-26"
}

Similar queries