OHLC
Returns DEX trades by token on Tron, where currency smart contract is TMaQT6…c6Ti 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 TMaQT6…c6Ti
- trade amount is above 0
The query
query 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": "TMaQT6QWTaTxuorH7Aa898Gmt7ibJKc6Ti"
}
Similar queries
- AfricaCryptoChainx · Ethereum · DEXTradeByTokens
- TLeVfrdym8RoJreJ23dAGyfJDygRtiWKBZ · Tron · DEXTradeByTokens
- UniversalSearch EVM · Ethereum · DEXTradeByTokens
- K2DhBqHBXEjBMwXm · Tron · DEXTradeByTokens
- Historical tron token trades beyond 30 days · Tron · DEXTradeByTokens