percentage price change of assets
Returns 100 DEX trades on Ethereum and BNB Chain, where quote currency is 0x55d3…7955, time since 2024-03-08 and price asymmetry is below 0.001, sorted by final, highest first: count, hour, base currency name, base currency address, quote currency name, quote currency address, minimum of block and 2 more fields.
What it returns
- count
- hour
- base currency name
- base currency address
- quote currency name
- quote currency address
- minimum of block
- maximum of block
- expression
Filters
- quote currency is 0x55d3…7955
- time since 2024-03-08
- price asymmetry is below 0.001
The query
query getLegacyTokenCandles($limit: Int, $from: ISO8601DateTime) {
ethereum(network: bsc) {
dexTrades(
quoteCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"}
time: {since: $from}
options: {limit: $limit, desc: "final", limitBy: {each: "baseCurrency.address, quoteCurrency.address", limit: 1}}
priceAsymmetry: {lt: 0.001}
) {
count
timeInterval {
hour(count: 24)
}
baseCurrency {
name
address
}
quoteCurrency {
name
address
}
open_price: minimum(of: block, get: quote_price)
close_price: maximum(of: block, get: quote_price)
open_price_time: minimum(of: block, get: time)
close_price_time: maximum(of: block, get: time)
diff: expression(get: "close_price - open_price")
div: expression(get: "diff / open_price")
final: expression(get: "div * 100")
}
}
}
Variables
{
"network": "bsc",
"from": "2024-03-08T00:00:00",
"limit": 100
}
Similar queries
- Latest DODO DEX swaps on BSC · BNB Chain · DEXTrades
- Top DODO liquidity pools by 24h volume on BSC · BNB Chain · DEXTrades
- trades · Ethereum · DEXTrades
- metric_v1_bsc · BNB Chain · DEXTrades
- bsc_tessera · BNB Chain · DEXTrades