StrikeX / WBNB OHLC v1
Returns 2000 DEX trades on Ethereum and BNB Chain, where base currency is 0xd6fd…44ec, quote currency is 0xbb4c…095c and exchange address is 0xcA14…0c73, sorted by time interval minute, highest first: minute, base currency name, quote currency name, quote amount, expression, quote price, minimum of block and maximum of block.
What it returns
- minute
- base currency name
- quote currency name
- quote amount
- expression
- quote price
- minimum of block
- maximum of block
Filters
- base currency is 0xd6fd…44ec
- quote currency is 0xbb4c…095c
- exchange address is 0xcA14…0c73
- date since 2016-12-28
- date till 2021-12-28
- trade amount USD is above 0
The query
query ($interval: Int, $limit: Int, $from: ISO8601DateTime, $to: ISO8601DateTime, $baseCurrency: String, $quoteCurrency: String) {
ethereum(network: bsc) {
dexTrades(
baseCurrency: {is: $baseCurrency}
quoteCurrency: {is: $quoteCurrency}
date: {since: $from, till: $to}
options: {limit: $limit, desc: "timeInterval.minute"}
tradeAmountUsd: {gt: 0}
exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
) {
timeInterval {
minute(count: $interval, format: "%Y-%m-%dT%H:%M:%SZ")
}
baseCurrency {
name
}
quoteCurrency {
name
}
quoteAmount
volume: quoteAmount(in: USD)
wethPriceInUSD: expression(get: "volume / quoteAmount")
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
highUSD: expression(get: "wethPriceInUSD * high")
lowUSD: expression(get: "wethPriceInUSD * low")
openUSD: expression(get: "wethPriceInUSD * open")
closeUSD: expression(get: "wethPriceInUSD * close")
}
}
}
Variables
{
"limit": 2000,
"baseCurrency": "0xd6fdde76b8c1c45b33790cc8751d5b88984c44ec",
"quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"from": "2016-12-28",
"to": "2021-12-28",
"interval": 1
}
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