MaticCandleData
Returns DEX trades on Ethereum and Polygon, where base currency is 0x2791…4174, quote currency is 0x0d50…1270 and date since 2021-07-21, sorted by time interval minute: minute, quote price, minimum of block and maximum of block.
What it returns
- minute
- quote price
- minimum of block
- maximum of block
Filters
- base currency is 0x2791…4174
- quote currency is 0x0d50…1270
- date since 2021-07-21
- date till 2021-07-22
The query
query GetCandleData($baseCurrency: String!, $since: ISO8601DateTime, $till: ISO8601DateTime, $quoteCurrency: String!, $window: Int) {
ethereum(network: matic) {
dexTrades(
options: {asc: "timeInterval.minute"}
date: {since: $since, till: $till}
baseCurrency: {is: $baseCurrency}
quoteCurrency: {is: $quoteCurrency}
) {
timeInterval {
minute(count: $window, format: "%Y-%m-%dT%H:%M:%SZ")
}
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
}
}
}
Variables
{
"baseCurrency": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"since": "2021-07-21T01:03:00Z",
"till": "2021-07-22T00:05:00Z",
"quoteCurrency": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
"window": 1
}
Similar queries
- trades · Ethereum · DEXTrades
- matic_DEXTrades · Polygon · DEXTrades
- prediction_dextrades · Polygon · DEXTrades
- matic MAPU trades · Polygon · DEXTrades
- List of DEX supported · Polygon · DEXTrades