token query 1min,7,50 pumpfun
Returns DEX trades by token on Solana, where currency mint address is HoyGFc…pump and DEX program address is 6EF8rr…wF6P: currency name, currency mint address, currency symbol, price in USD, protocol name, protocol family, program address and 3 more fields.
What it returns
- currency name
- currency mint address
- currency symbol
- price in USD
- protocol name
- protocol family
- program address
- market address
- count
- sum of trade side amount
Filters
- currency mint address is HoyGFc…pump
- DEX program address is 6EF8rr…wF6P
The query
query MyQuery($token: String!, $time_5min_ago: DateTime!, $time_7min_ago: DateTime!, $time_50min_ago: DateTime!) {
Solana(dataset: combined) {
DEXTradeByTokens(
where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {is: $token}}, Dex: {ProgramAddress: {is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}}}}
) {
Trade {
Currency {
Name
MintAddress
Symbol
}
start: PriceInUSD(minimum: Block_Time)
min5: PriceInUSD(
minimum: Block_Time
if: {Block: {Time: {till: $time_5min_ago}}}
)
min50: PriceInUSD(
minimum: Block_Time
if: {Block: {Time: {till: $time_50min_ago}}}
)
end: PriceInUSD(maximum: Block_Time)
Dex {
ProtocolName
ProtocolFamily
ProgramAddress
}
Market {
MarketAddress
}
}
trades_5min: count(if: {Block: {Time: {till: $time_5min_ago}}})
trades_50min: count(if: {Block: {Time: {till: $time_50min_ago}}})
traded_volume_5min: sum(
of: Trade_Side_Amount
if: {Block: {Time: {till: $time_5min_ago}}}
)
buy_volume_7min: sum(
of: Trade_Side_Amount
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {till: $time_7min_ago}}}
)
buy_volume_5min: sum(
of: Trade_Side_Amount
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {till: $time_5min_ago}}}
)
buy_volume_50min: sum(
of: Trade_Side_Amount
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {till: $time_50min_ago}}}
)
sell_volume_7min: sum(
of: Trade_Side_Amount
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {till: $time_7min_ago}}}
)
sell_volume_5min: sum(
of: Trade_Side_Amount
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {till: $time_5min_ago}}}
)
sell_volume_50min: sum(
of: Trade_Side_Amount
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {till: $time_50min_ago}}}
)
buys_7min: count(
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {till: $time_7min_ago}}}
)
buys_5min: count(
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {till: $time_5min_ago}}}
)
buys_50min: count(
if: {Trade: {Side: {Type: {is: buy}}}, Block: {Time: {till: $time_50min_ago}}}
)
sells_7min: count(
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {till: $time_7min_ago}}}
)
sells_5min: count(
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {till: $time_5min_ago}}}
)
sells_50min: count(
if: {Trade: {Side: {Type: {is: sell}}}, Block: {Time: {till: $time_50min_ago}}}
)
}
}
}
Variables
{
"token": "HoyGFcpL4UETLVFoHMtr2hmbmv2qHCXu984qu56epump",
"time_5min_ago": "2024-12-18T11:16:53Z",
"time_7min_ago": "2024-12-18T11:21:53Z",
"time_50min_ago": "2024-12-18T12:14:53Z"
}
Similar queries
- ANSEM daily traders, June 16 to 26, 2026 · Solana · DEXTradeByTokens
- ANSEM swaps per hour, June 27, 2026 · Solana · DEXTradeByTokens
- FOMO App: Top Tokens Bought, Last Hour (Solana) · Solana · DEXTradeByTokens
- FOMO App: Most Active Wallets, Last Hour (Solana) · Solana · DEXTradeByTokens
- Buys, Sells, BuyVolume, SellVolume, Makers, TotalTradedVolume, PriceinUSD for solana token pair · Solana · DEXTradeByTokens