Volume pair LP

Returns address details and DEX trades on Ethereum and Polygon, where address is 0xb8e5…e02a or 0x6cf8…3613 and smart contract address is 0xb8e5…e02a or 0x6cf8…3613, sorted by count, highest first: currency symbol, balances value, address, balance, count, trade amount and address address.

By Casor · saved 2 March 2022 · run 7 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork, $address: [String!], $fromDate: ISO8601DateTime!, $toDate: ISO8601DateTime!, $baseCurrency: [String!]) {
  ethereum(network: $network) {
    address(address: {in: $address}) {
      balances(currency: {in: $baseCurrency}) {
        currency {
          symbol
        }
        value
      }
      address
      balance
    }
    dexTrades(
      options: {desc: "count"}
      smartContractAddress: {in: $address}
      time: {between: [$fromDate, $toDate]}
    ) {
      count
      tradeAmount(in: USDT)
      smartContract {
        address {
          address
        }
      }
    }
  }
}

Variables

{
  "network": "matic",
  "address": [
    "0xb8e54c9ea1616beebe11505a419dd8df1000e02a",
    "0x6cf8654e85ab489ca7e70189046d507eba233613"
  ],
  "baseCurrency": [
    "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
    "0x76bf0c28e604cc3fe9967c83b3c3f31c213cfe64",
    "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619"
  ],
  "fromDate": "2022-03-01T22:24:23.681Z",
  "toDate": "2022-03-02T22:24:23.681Z"
}

Similar queries