Top Toncoin Ecosystem Token Pairs
Returns 100 DEX trades by token on TON, where block time since 2024-10-21, sorted by USD, highest first: currency symbol, currency name, smart contract address, workchain, native, side currency symbol, side currency name and 11 more fields.
What it returns
- currency symbol
- currency name
- smart contract address
- workchain
- native
- side currency symbol
- side currency name
- side smart contract address
- side workchain
- side native
- price in USD
- block time
- unique of trade DEX smart contract address
- sum of trade side amount
- sum of trade side amount in USD
- unique of trade seller address
- unique of trade buyer address
- count
Filters
- block time since 2024-10-21
The query
query ($min_count: String, $time_ago: DateTime, $pton: String!, $usdt: String!, $time_10min_ago: DateTime, $time_1h_ago: DateTime, $time_3h_ago: DateTime) {
Ton {
DEXTradeByTokens(
where: {Block: {Time: {since: $time_ago}}, any: [{Trade: {Side: {Currency: {Native: true}}}}, {Trade: {Side: {Currency: {SmartContract: {Address: {is: $usdt}}}}, Currency: {Native: false}}}, {Trade: {Side: {Currency: {SmartContract: {Address: {is: $pton}}}}, Currency: {SmartContract: {Address: {notIn: [$usdt]}}}}}, {Trade: {Side: {Currency: {Native: false, SmartContract: {Address: {notIn: [$pton, $usdt]}}}}, Currency: {Native: false, SmartContract: {Address: {notIn: [$pton, $usdt]}}}}}]}
orderBy: {descendingByField: "usd"}
limit: {count: 100}
) {
Trade {
Currency {
Symbol
Name
SmartContract {
Address
Workchain
}
Native
}
Side {
Currency {
Symbol
Name
SmartContract {
Address
Workchain
}
Native
}
}
price_last: PriceInUSD(maximum: Block_Number)
price_10min_ago: PriceInUSD(
maximum: Block_Number
if: {Block: {Time: {before: $time_10min_ago}}}
)
price_1h_ago: PriceInUSD(
maximum: Block_Number
if: {Block: {Time: {before: $time_1h_ago}}}
)
price_3h_ago: PriceInUSD(
maximum: Block_Number
if: {Block: {Time: {before: $time_3h_ago}}}
)
}
Block {
min_time: Time(minimum: Block_Time)
max_time: Time(maximum: Block_Time)
}
dexes: uniq(of: Trade_Dex_SmartContract_Address)
amount: sum(of: Trade_Side_Amount)
usd: sum(of: Trade_Side_AmountInUSD)
sellers: uniq(of: Trade_Seller_Address)
buyers: uniq(of: Trade_Buyer_Address)
count(selectWhere: {ge: $min_count})
}
}
}
Variables
{
"time_10min_ago": "2024-10-24T05:54:54Z",
"time_1h_ago": "2024-10-24T05:04:54Z",
"time_3h_ago": "2024-10-24T03:04:54Z",
"time_ago": "2024-10-21T06:04:54Z",
"pton": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez",
"usdt": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
"min_count": "10"
}
Similar queries
- all token ton · Ton · DEXTradeByTokens
- strange token ton · Ton · DEXTradeByTokens
- no ton data · Ton · DEXTradeByTokens
- Trades not available for many tokens · Ton · DEXTradeByTokens
- ton address issue and transaction success · Ton · DEXTradeByTokens