Tron Token OHLC
Streams DEX trades by token on Tron as they happen, where currency smart contract is TLy98T…1XtZ and trade amount is above 0, 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 TLy98T…1XtZ
- trade amount is above 0
The subscription
subscription TokenOHLC($token: String) {
Tron {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {Trade: {Amount: {gt: "0"}, Currency: {SmartContract: {is: $token}}}, 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)
}
}
}
Variables
{
"token": "TLy98TaujEPmvF6hV63qwXUeHJAxQH1XtZ"
}
Similar queries
- myown · Tron · DEXTradeByTokens
- Track price of a tron token · Tron · DEXTradeByTokens
- Get realtime mempool trades of a specific token · Tron · DEXTradeByTokens
- Get realtime Trades of a specific token on Sunpump · Tron · DEXTradeByTokens
- Subscribe to Sun Pump Latest Trades · Tron · DEXTradeByTokens