Get Solana Token Price
This supports pump fun and returns the last buy and the last sell price, the application should check which one is newer and use that
What it returns
- block time
- buy price
- buy price in USD
- buy currency mint address
- sell price
- sell price in USD
- sell currency mint address
Filters
- buy currency mint address is D2ExFF…pump
- sell currency mint address is D2ExFF…pump
- buy price is above 0
- buy price in USD is above 0
- sell price is above 0
- sell price in USD is above 0
The query
{
Solana {
lastBuy: DEXTrades(
limit: {count: 1}
orderBy: {descending: Block_Date}
where: {
Trade: {
Buy: {
Currency: {
MintAddress: {is: "D2ExFFcrETK7PFWNLkzj3D2aubMGZmGHZke9GNdFpump"}
}
Price: {gt: 0}
PriceInUSD: {gt: 0}
}
}
Transaction: {Result: {Success: true}}
}
) {
Block {
Time
}
Trade {
Buy {
Price
PriceInUSD
Currency {
MintAddress
}
}
}
}
lastSell: DEXTrades(
limit: {count: 1}
orderBy: {descending: Block_Date}
where: {
Trade: {
Sell: {
Currency: {
MintAddress: {is: "D2ExFFcrETK7PFWNLkzj3D2aubMGZmGHZke9GNdFpump"}
}
Price: {gt: 0}
PriceInUSD: {gt: 0}
}
}
Transaction: {Result: {Success: true}}
}
) {
Block {
Time
}
Trade {
Sell {
Price
PriceInUSD
Currency {
MintAddress
}
}
}
}
}
}
Similar queries
- Solana DEX Trades: Buy and Sell Accounts with DEX Name · Solana · DEXTrades
- Solana DEXTrades Archive Coverage, Last 7 Days · Solana · DEXTrades
- FOMO App: One Wallet's Trades (Solana) · Solana · DEXTrades
- FOMO App: Latest Trades (Solana) · Solana · DEXTrades
- Solana dextrades for a token · Solana · DEXTrades