trades

Returns the latest 100 DEX trades by token on BNB Chain, where currency smart contract is 0x55d3…7955: chain ID, block hash, block number, block time, seller, buyer, trade amount and 10 more fields.

By Eric Otto · saved 14 September 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query LastAssetTxns($network: evm_network!, $token: String!, $limit: Int!, $offset: Int!) {
  EVM(dataset: realtime, network: $network) {
    DEXTradeByTokens(
      limit: {count: $limit, offset: $offset}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}}
    ) {
      ChainId
      Block {
        Hash
        Number
        Time
      }
      Trade {
        Seller
        Buyer
        Amount
        Currency {
          SmartContract
          Symbol
          Decimals
        }
        Price
        Side {
          Amount
          Currency {
            SmartContract
            Symbol
          }
        }
        Dex {
          SmartContract
          ProtocolName
        }
      }
      Transaction {
        Hash
        From
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "token": "0x55d398326f99059ff775485246999027b3197955",
  "limit": 100,
  "offset": 0
}

Similar queries