dex exchanges by pair

Returns DEX trades on Ethereum and Polygon, where base currency is 0x0d50…1270, sell currency is 0xc213…8e8F and date since 2022-10-11: full name, exchange name, address address and trade amount.

By Jose · saved 22 December 2022 · run 62 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork, $baseCurrencyAddress: String!, $sellCurrencyAddress: String!, $from: ISO8601DateTime!) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: $baseCurrencyAddress}
      sellCurrency: {is: $sellCurrencyAddress}
      date: {since: $from}
    ) {
      exchange {
        fullName
        name
        address {
          address
        }
      }
      volume: tradeAmount(in: USD)
    }
  }
}

Variables

{
  "baseCurrencyAddress": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
  "sellCurrencyAddress": "0xc2132D05D31c914a87C6611C10748AEb04B58e8F",
  "network": "matic",
  "from": "2022-10-11T12:45:14.115Z"
}

Similar queries