ws-Library
Returns the latest DEX trades by token: block time, transaction hash, buyer, seller, trade amount, amount in USD, price in USD and 13 more fields.
What it returns
- block time
- transaction hash
- buyer
- seller
- trade amount
- amount in USD
- price in USD
- currency symbol
- smart contract
- currency name
- decimals
- side type
- side currency symbol
- side smart contract
- side currency name
- side decimals
- side amount in USD
- side amount
- protocol family
- protocol name
The query
query getLibraryTokenTradesByDates($dataset: dataset_arg_enum!, $network: evm_network!, $wallets: [String!], $since: DateTime!, $till: DateTime!) {
EVM(dataset: $dataset, network: $network) {
DEXTradeByTokens(
orderBy: {descending: Block_Time}
where: {Trade: {Success: true}, Block: {Time: {since: $since, till: $till}}, any: [{Trade: {Seller: {in: $wallets}}}, {Trade: {Buyer: {in: $wallets}}}]}
) {
Block {
Time
}
Transaction {
Hash
}
Trade {
Buyer
Seller
Amount
AmountInUSD
PriceInUSD
Currency {
Symbol
SmartContract
Name
Decimals
}
Side {
Type
Currency {
Symbol
SmartContract
Name
Decimals
}
AmountInUSD
Amount
}
Dex {
ProtocolFamily
ProtocolName
}
}
}
}
}
Variables
{
"dataset": "combined",
"network": "eth",
"wallets": ["0x5DD0eb7b28dA436eD9439D9286472988C4c0eE83"],
"since": "2025-03-02T14:12:52.937Z",
"till": "2025-03-03T14:12:52.937Z",
}
Similar queries
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- ATH of eth token · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens