OHLC subscription
Streams DEX trades by token on Solana as they happen, where currency mint address is Ar5fk7…pump and trade amount is above 0, sorted by block time: block time, account address, token owner, market address, protocol name, protocol family, side type and 12 more fields.
What it returns
- block time
- account address
- token owner
- market address
- protocol name
- protocol family
- side type
- side account address
- side token owner
- currency symbol
- currency name
- currency mint address
- trade price
- trade amount
- side amount in USD
- side amount
- price in USD
- sum of trade side amount
- sum of trade side amount in USD
Filters
- currency mint address is Ar5fk7…pump
- trade amount is above 0
The subscription
subscription TokenOHLC($token: String) {
Solana {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {Trade: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}}
) {
Block {
Time(interval: {count: 5, in: minutes})
}
Trade {
Account {
Address
Token {
Owner
}
}
Market {
MarketAddress
}
Dex {
ProtocolName
ProtocolFamily
}
Side {
Type
Account {
Address
Token {
Owner
}
}
}
Currency {
Symbol
Name
MintAddress
}
Price
Amount
Side {
AmountInUSD
Amount
}
open: Price(minimum: Block_Slot)
close: Price(maximum: Block_Slot)
min: Price(maximum: Trade_Price)
max: Price(minimum: Trade_Price)
closeUsd: PriceInUSD(maximum: Trade_PriceInUSD)
}
volume: sum(of: Trade_Side_Amount)
volumeUsd: sum(of: Trade_Side_AmountInUSD)
}
}
}
Variables
{
"token": "Ar5fk7XGtD3nMPeJHKzukFyw6TZQnDxbLpNnNeuupump"
}
Similar queries
- token trades subscription · Solana · DEXTradeByTokens
- realtime trades solana · Solana · DEXTradeByTokens
- adsa · Solana · DEXTradeByTokens
- tkk raydium price · Solana · DEXTradeByTokens
- Live price of a token · Solana · DEXTradeByTokens