BALANCER Get all markets

Returns 10 DEX trades on Ethereum, where base currency is 0xba10…4e3d, date since 2023-05-22 and date till 2023-05-29, sorted by lanc, highest first: quote currency symbol, quote currency name, quote currency address and count.

By Oluwatomisin · saved 29 May 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime, $baseCurrency: String, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: $baseCurrency}
      date: {since: $from, till: $till}
      options: {desc: "LANC", limit: $limit, offset: $offset}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      count
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "baseCurrency": "0xba100000625a3754423978a60c9317c58a424e3d",
  "from": "2023-05-22",
  "till": "2023-05-29T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries