Get NFT trades by token
Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: EVM(network: eth, dataset: combined) archive full history combined archive + realtime in one result Ar
What it returns
- buy currency name
- buy protocol name
- buy currency symbol
- buy fungible
- buy smart contract
- buy amount
- buy buyer
- buy ids
- buy price
- buy uris
- sell currency name
- sell protocol name
- sell currency symbol
- sell decimals
- sell fungible
- sell smart contract
- sell amount
- sell buyer
- sell ids
- sell uris
- block time
- block number
Filters
- buy currency smart contract is 0x59a4…9611
The query
# Historical data
# This query uses the realtime dataset (the default), which holds only a
# recent window - hours to days depending on the cube.
#
# For older data add a dataset to the top-level element:
#
# EVM(network: eth, dataset: combined)
#
# archive full history
# combined archive + realtime in one result
#
# Archive and combined need the historical data add-on:
# https://bitquery.io/pricing
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
query MyQuery {
EVM(dataset: realtime, network: eth) {
DEXTrades(
where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x59a498d8cb5f0028591c865c44f55e30b76c9611"}}, Ids: {includes: {eq: "3528"}}}}}
limit: {count: 10}
orderBy: {descending: Block_Time}
) {
Trade {
Buy {
Currency {
Name
ProtocolName
Symbol
Fungible
SmartContract
}
Amount
Buyer
Ids
Price
URIs
}
Sell {
Currency {
Name
ProtocolName
Symbol
Decimals
Fungible
SmartContract
}
Amount
Buyer
Ids
URIs
}
}
Block {
Time
Number
}
}
}
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades