Query_OHLC_dex
Returns 2000 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0x55d3…7955 and exchange address is 0xcA14…0c73, sorted by time interval minute, highest first: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 5 more fields.
What it returns
- minute
- base currency symbol
- base currency address
- base amount
- quote currency symbol
- quote currency address
- quote amount
- count
- quote price
- minimum of block
- maximum of block
- trade amount
Filters
- base currency is 0xbb4C…095c
- quote currency is 0x55d3…7955
- exchange address is 0xcA14…0c73
- time since 2022-04-17
- time till 2022-04-18
The query
query GetOHLC($network: EthereumNetwork!, $till: ISO8601DateTime!, $exchangeAddress: String!, $baseAddress: String!, $quoteAddress: String!) {
ethereum(network: $network) {
dexTrades(
options: {limit: 2000, desc: "timeInterval.minute"}
time: {since: "2022-04-17T09:50:25.000Z", till: $till}
baseCurrency: {is: $baseAddress}
quoteCurrency: {is: $quoteAddress}
exchangeAddress: {is: $exchangeAddress}
) {
timeInterval {
minute(count: 15)
}
baseCurrency {
symbol
address
}
baseAmount
quoteCurrency {
symbol
address
}
quoteAmount
trades: count
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
tradeAmount(in: USD)
}
}
}
Variables
{ "resolution":"1",
"till" : "2022-04-18T20:30:00.000Z",
"exchangeAddress":"0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",
"baseAddress":"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
"quoteAddress":"0x55d398326f99059fF775485246999027B3197955",
"network": "bsc" }
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