sell-info-for-pnl
Returns DEX trades, where sell currency smart contract is 0x6982…1933 and transaction from is 0x2107…9231, sorted by block time: sell amount and sell price in USD.
What it returns
- sell amount
- sell price in USD
Filters
- sell currency smart contract is 0x6982…1933
- transaction from is 0x2107…9231
The query
query MyQuery($token: String = "", $wallet: String = "") {
EVM(dataset: combined) {
DEXTrades(
where: {Trade: {Sell: {Currency: {SmartContract: {is: $token}}, PriceInUSD: {ne: 0}}}, Transaction: {From: {is: $wallet}}}
orderBy: {ascending: Block_Time}
) {
Trade {
Sell {
Amount
PriceInUSD
}
}
}
}
}
Variables
{
"token": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
"wallet": "0x2107662b0eb1f95a42f47f667c6d4622fe1c9231"
}
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