buy-info-for-pnl
Returns DEX trades, where buy currency smart contract is 0x6982…1933 and transaction from is 0xae2f…ae13: sum of trade buy amount, sum of trade buy amount in USD and average of trade buy price in USD.
What it returns
- sum of trade buy amount
- sum of trade buy amount in USD
- average of trade buy price in USD
Filters
- buy currency smart contract is 0x6982…1933
- transaction from is 0xae2f…ae13
The query
query MyQuery {
EVM(dataset: combined) {
DEXTrades(
where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}}, PriceInUSD: {ne: 0}}}, Transaction: {From: {is: "0xae2fc483527b8ef99eb5d9b44875f005ba1fae13"}}}
) {
bought: sum(of: Trade_Buy_Amount)
boughtInUSD: sum(of: Trade_Buy_AmountInUSD)
average(of:Trade_Buy_PriceInUSD)
}
}
}
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