rollup_cws_dex_buysell_lv
rollup on each date, each chain, each DEX buy sell side on given pair. ------------------------------------------------------------------------------- Pair info: - bsc {"pcws":"0xbcf39F0EDDa668C58371E519AF37CA705f2bFcbd"}, {"wbnb": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}, {"busd": "0xe9e7cea3dedca5984780bafc599bd69add087d56"}, {"usdt": "0x55d398326f99059ff775485246999027b3197955"}, {"usdc": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d"}, ------------------------------------------------------------------------------- ethereum: {"cws": "0xac0104cca91d167873b8601d2e71eb3d4d8c33e0"}, {"weth": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}, {"busd": "0x4fabb145d64652a948d72533023f6e7a623c7c53"}, {"usdt": "0xdac17f958d2ee523a2206206994597c13d831ec7"}, {"usdc": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"} -------------------------------------------------------------------------------
What it returns
- day
- side
- exchange name
- base currency symbol
- base amount
- quote currency symbol
- quote amount
- count
- quote price
- minimum of date
- maximum of date
- trade amount
Filters
- base currency is 0xbcf3…Fcbd
- quote currency is 0xbb4c…095c
- date since 2021-02-01
The query
query (
$since: ISO8601DateTime,
$network: EthereumNetwork,
$baseCurrency: String,
$quoteCurrency: String
) {
ethereum(network: $network) {
dexTrades(
options: {asc: "timeInterval.day"}
date: {since: $since}
baseCurrency: {is: $baseCurrency}
quoteCurrency: {is: $quoteCurrency}
) {
timeInterval {
day(count: 1)
}
side
exchange {
name
}
baseCurrency {
symbol
}
baseAmount
baseAmountInUSD: baseAmount(in: USD)
quoteCurrency {
symbol
}
quoteAmount
quoteAmountInUSD: quoteAmount(in:USD)
trades: count
quotePrice
open_price: minimum(of: date, get: quote_price)
highest_price: quotePrice(calculate: maximum)
lowest_price: quotePrice(calculate: minimum)
close_price: maximum(of: date, get: quote_price)
tradeAmount(in: USD)
}
}
}
Variables
{
"since": "2021-02-01",
"network": "bsc",
"baseCurrency": "0xbcf39F0EDDa668C58371E519AF37CA705f2bFcbd",
"quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
}
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