Tron SunPump token OHLC 5 minute candles 7 days
Five minute OHLC candles and volume for one SunPump token over the last 7 days
Returns 100 DEX trades by token on Tron, where currency smart contract is TChvyT…PT5d, trade amount is above 0 and trade price asymmetry is below 0.1, sorted by block time: block time, buyer, seller, smart contract, protocol name, protocol family, currency symbol and 8 more fields.
What it returns
- block time
- buyer
- seller
- smart contract
- protocol name
- protocol family
- currency symbol
- currency name
- 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 smart contract is TChvyT…PT5d
- trade amount is above 0
- trade price asymmetry is below 0.1
The query
query TokenOHLC {
Tron {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
limit: {count: 100}
where: {Block: {Time: {since_relative: {days_ago: 7}}}, Trade: {Amount: {gt: "0"}, Currency: {SmartContract: {is: "TChvyT66TJkcQcXzrmSwfAQAPdRoPiPT5d"}}, PriceAsymmetry: {lt: 0.1}}, Transaction: {Result: {Success: true}}}
) {
Block {
Time(interval: {count: 5, in: minutes})
allTime: Time
}
Trade {
Buyer
Seller
Dex {
SmartContract
ProtocolName
ProtocolFamily
}
Currency {
Symbol
Name
SmartContract
}
Price
Amount
Side {
AmountInUSD
Amount
}
open: Price(minimum: Block_Number)
close: Price(maximum: Block_Number)
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)
}
}
}