getTokenTrades test
Returns the latest 100 DEX trades on Ethereum, where block time since 2024-09-22, block time till 2024-10-22 and buy amount in USD is above 0.001: block time, transaction hash, buy buyer, buy currency symbol, buy smart contract, buy decimals, buy currency name and 11 more fields.
What it returns
- block time
- transaction hash
- buy buyer
- buy currency symbol
- buy smart contract
- buy decimals
- buy currency name
- buy seller
- buy amount
- buy amount in USD
- delegated
- delegated to
- sell currency symbol
- sell smart contract
- sell decimals
- sell currency name
- sell amount
- sell amount in USD
Filters
- block time since 2024-09-22
- block time till 2024-10-22
- buy amount in USD is above 0.001
- sell amount in USD is above 0.001
The query
query getTokenTrades(
$dataset: dataset_arg_enum!
$network: evm_network!
$limit: Int!
$offset: Int!
$tokenAddresses: [String!]
$wallets: [String!]
$since: DateTime!
$till: DateTime!
) {
EVM(dataset: $dataset, network: $network) {
buyside: DEXTrades(
limit: { count: $limit, offset: $offset }
orderBy: { descending: Block_Time }
where: {
Trade: { Buy: { AmountInUSD: { gt: "0.001" },
Currency: { SmartContract: { in: $tokenAddresses } },
Seller: { in: $wallets } } }
Block: { Time: { since: $since, till: $till } }
}
) {
Block {
Time
}
Transaction {
Hash
}
Trade {
Buy {
Buyer
Currency {
Symbol
SmartContract
Decimals
Name
}
Seller
Amount
AmountInUSD
}
Dex {
Delegated
DelegatedTo
}
}
}
sellside: DEXTrades(
limit: { count: $limit, offset: $offset }
orderBy: { descending: Block_Time }
where: {
Trade: { Sell: { AmountInUSD: { gt: "0.001" }, Currency: { SmartContract: { in: $tokenAddresses } }, Buyer: { in: $wallets } } }
Block: { Time: { since: $since, till: $till } }
}
) {
Block {
Time
}
Transaction {
Hash
}
Trade {
Sell {
Currency {
Symbol
SmartContract
Decimals
Name
}
Amount
AmountInUSD
}
Dex {
Delegated
DelegatedTo
}
}
}
}
}
Variables
{
"dataset": "combined",
"network": "eth",
"tokenAddress": [
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"till": "2024-10-22T23:59:59Z",
"since": "2024-09-22T00:00:00Z",
"wallets": [],
"limit": 100,
"offset": 0
}
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