NewOHLC
Returns 2000 DEX trades on Ethereum, where time till 2022-04-17, sorted by time interval day: day, base currency symbol, base currency address, quote currency symbol, quote currency address, trade amount, quote amount and 4 more fields.
What it returns
- day
- base currency symbol
- base currency address
- quote currency symbol
- quote currency address
- trade amount
- quote amount
- count
- quote price
- minimum of block
- maximum of block
Filters
- time till 2022-04-17
The query
query ($network: EthereumNetwork!, $baseAddress: String!, $quoteAddress: String!, $exchangeAddress: String!,$since: ISO8601DateTime!, $connector1: String!, $till: ISO8601DateTime!) {
ethereum(network: $network) {
dexTrades(
any: [{baseCurrency: {is: $baseAddress},
quoteCurrency: {is: $connector1}},
{baseCurrency: {is: $connector1},
quoteCurrency: {is: $quoteAddress}}]
time: {since: $since, till: $till}
options: {limit: 2000 , asc: "timeInterval.day"}
exchangeAddress: {is: $exchangeAddress}
) {
timeInterval {
day(count: 1)
}
baseCurrency: baseCurrency {
symbol
address
}
quoteCurrency: quoteCurrency {
symbol
address
}
tradeAmount(in: USD)
volume: 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)
}
}
}
Variables
{"scienc": "2022-04-17T09:55:25.000Z",
"till": "2022-04-17T09:55:25.000Z",
"interval": 30,
"baseAddress":"0x2b591e99afe9f32eaa6214f7b7629768c40eeb39",
"quoteAddress":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"connector1":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","minAmount": 1000}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades