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.

By Coinranking · saved 7 October 2024 · run 2 times · Bitquery API v1

What it returns

Filters

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