Trading Trades
Returns 1000 trades, where market network is Solana and market protocol family is Pumpfun: trader address, token address, token symbol, sum of amounts in USD base, calculate and count.
What it returns
- trader address
- token address
- token symbol
- sum of amounts in USD base
- calculate
- count
Filters
- market network is Solana
- market protocol family is Pumpfun
The query
{
Trading {
Trades(
limit: {count: 1000}
orderBy: [{descendingByField: "PnL"}]
where: {
Block: {
Time: {
since_relative: {days_ago: 7}
}
}
Pair: {
Market: {
Network: {is: "Solana"}
ProtocolFamily: {is: "Pumpfun"}
}
}
}
) {
Trader {
Address
}
Pair {
Token {
Address
Symbol
}
}
Amount_Bought: sum(
of: AmountsInUsd_Base,
if: {Side: {is: "Buy"}}
)
Amount_Sold: sum(
of: AmountsInUsd_Base,
if: {Side: {is: "Sell"}}
)
PnL: calculate(
expression: "$Amount_Sold - $Amount_Bought"
)
Buys: count(if: {Side: {is: "Buy"}})
Sells: count(if: {Side: {is: "Sell"}})
}
}
}
Similar queries
- Trading API: Solana Trades with Transaction Hash · Trading (all chains) · Trades
- Elysium latest trades of one token (WHYPE) · Trading (all chains) · Trades
- FOMO App: Trades per Day (Trading API) · Trading (all chains) · Trades
- save with commit · Trading (all chains) · Tokens