query ohlc data multiple pairs
Returns DEX trades on Ethereum and BNB Chain, where exchange address is 0xca14…0c73, time since 2022-02-08 and time till 2022-02-08, sorted by time interval minute, highest first: minute, base currency symbol, base currency address, quote currency symbol, quote currency address, trade amount, quote amount and 3 more fields.
What it returns
- minute
- base currency symbol
- base currency address
- quote currency symbol
- quote currency address
- trade amount
- quote amount
- quote price
- minimum of block
- maximum of block
Filters
- exchange address is 0xca14…0c73
- time since 2022-02-08
- time till 2022-02-08
- trade amount USD is above 10
- price asymmetry is below 0.7
The query
query ($network: EthereumNetwork!, $baseAddress: String!,
$connectorAddress: String!, $quoteAddress: String!, $exchange: String!, $since: ISO8601DateTime!, $till: ISO8601DateTime!, $interval: Int!) {
ethereum(network: $network) {
dexTrades(
options: {desc: "timeInterval.minute"}
time: {since: $since, till: $till}
exchangeAddress: {is: $exchange}
any: [{baseCurrency: {is: $baseAddress}, quoteCurrency: {is: $connectorAddress}}, {baseCurrency: {is: $connectorAddress}, quoteCurrency: {is: $quoteAddress}}]
tradeAmountUsd: {gt: 10}
priceAsymmetry: {lt: 0.7}
) {
timeInterval {
minute(count: $interval, format: "%Y-%m-%dT%H:%M:%SZ")
}
buyCurrency: baseCurrency {
symbol
address
}
sellCurrency: quoteCurrency {
symbol
address
}
tradeAmount(in: USD)
volume: quoteAmount
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
}
}
}
Variables
{
"network": "bsc",
"exchange": "0xca143ce32fe78f1f7019d7d551a6402fc5350c73",
"baseAddress": "0x5546600f77eda1dcf2e8817ef4d617382e7f71f5",
"connectorAddress": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"quoteAddress": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
"since": "2022-02-08T14:20:21Z",
"till": "2022-02-08T14:25:21Z",
"interval": 5
}
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