V1 api for fetching multiple markets
Returns DEX trades on Ethereum and BNB Chain, where smart contract address is 0x38d2…6c8d, exchange name is PancakeSwap and time since 2024-10-06: base currency symbol, base currency address, base currency name, quote currency symbol, quote currency address, quote currency name, base amount and 7 more fields.
What it returns
- base currency symbol
- base currency address
- base currency name
- quote currency symbol
- quote currency address
- quote currency name
- base amount
- quote amount
- minimum of time
- maximum of quote price
- minimum of quote price
- maximum of time
- address address
- side
Filters
- smart contract address is 0x38d2…6c8d
- exchange name is PancakeSwap
- time since 2024-10-06
The query
query fetchTickers($network: EthereumNetwork!, $exchangeName: String!, $twentyFourHoursAgo: ISO8601DateTime, $marketAddresses: [String!]!) {
exchange: ethereum(network: $network) {
tickers: dexTrades(
exchangeName: {in: [$exchangeName]}
time: {since: $twentyFourHoursAgo}
smartContractAddress: {in: $marketAddresses}
) {
baseCurrency {
symbol
address
name
}
quoteCurrency {
symbol
address
name
}
baseVolume: baseAmount
quoteVolume: quoteAmount
open: minimum(of: time, get: quote_price)
high: maximum(of: quote_price, get: quote_price)
low: minimum(of: quote_price, get: quote_price)
close: maximum(of: time, get: quote_price)
smartContract {
address {
address
}
}
side
}
}
}
Variables
{
"twentyFourHoursAgo": "2024-10-06T14:32:06.024Z",
"network": "bsc",
"exchangeName": "PancakeSwap",
"marketAddresses": [
"0x38d28b3a1fffc128a3ff0e8b84fa1f1739f96c8d"
]
}
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