getWalletTrades
Returns the latest 1000 DEX trades on Ethereum, where block time since 2024-02-04 and block time till 2025-02-04: block hash, block number, block time, transaction hash, transaction index, sell seller, sell amount in USD and 17 more fields.
What it returns
- block hash
- block number
- block time
- transaction hash
- transaction index
- sell seller
- sell amount in USD
- sell amount
- sell buyer
- sell decimals
- sell currency name
- sell smart contract
- sell currency symbol
- sell price in USD
- buy buyer
- buy amount in USD
- buy amount
- buy decimals
- buy currency name
- buy smart contract
- buy currency symbol
- buy price in USD
- protocol family
- protocol name
Filters
- block time since 2024-02-04
- block time till 2025-02-04
The query
query getWalletTrades($dataset: dataset_arg_enum!, $network: evm_network!, $wallet: String!, $since: DateTime!, $till: DateTime!) {
EVM(network: $network, dataset: $dataset) {
DEXTrades(
orderBy: {descending: Block_Time}
limit: {count: 1000}
where: {
TransactionStatus: {Success: true},
Block: {Time: {since: $since, till: $till}},
any: [
{Trade: {Sell: {Buyer: {is: $wallet}}}},
{Trade: {Buy: {Seller: {is: $wallet}}}}
]
}
) {
Block {
Hash
Number
Time
}
Transaction {
Hash
Index
}
Trade {
Sell {
Seller
AmountInUSD
Amount
Buyer
Currency {
Decimals
Name
SmartContract
Symbol
}
PriceInUSD
}
Buy {
Buyer
AmountInUSD
Amount
Currency {
Decimals
Name
SmartContract
Symbol
}
PriceInUSD
}
Dex {
ProtocolFamily
ProtocolName
}
}
}
}
}
Variables
{
"network": "eth",
"dataset": "archive",
"till": "2025-02-04T16:29:59.000Z",
"since": "2024-02-04T00:00:00.000Z",
"wallet": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}
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