latest trades advt - maker,taker

Returns the latest 10 DEX trades on Ethereum, where base currency is 0x69e3…9b72, buy currency is 0xc02a…6cc2 and base currency is 0xc02a…6cc2: quote currency symbol, quote currency name, quote currency address, timestamp time, base currency name, base currency symbol, buy currency name and 8 more fields.

By Divyasshree N · saved 27 June 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $baseCurrency: String, $buyCurrency: String, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    sell: dexTrades(
      baseCurrency: {is: $baseCurrency}
      options: {limit: $limit, offset: $offset, desc: "block.timestamp.time"}
      buyCurrency: {is: $buyCurrency}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      block {
        timestamp {
          time
        }
      }
      baseCurrency {
        name
        symbol
      }
      buyCurrency {
        name
        symbol
      }
      buyAmount
      price
      sellCurrency {
        name
        symbol
      }
      transaction {
        hash
      }
      taker {
        address
      }
      maker {
        address
      }
    }
    buy: dexTrades(
      baseCurrency: {is: $buyCurrency}
      options: {limit: $limit, offset: $offset, desc: "block.timestamp.time"}
      buyCurrency: {is: $baseCurrency}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      block {
        timestamp {
          time
        }
      }
      baseCurrency {
        name
        symbol
      }
      buyCurrency {
        name
        symbol
      }
      buyAmount
      price
      sellCurrency {
        name
        symbol
      }
      transaction {
        hash
      }
      taker {
        address
      }
      maker {
        address
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "baseCurrency": "0x69e37422cb87d963367f73a119c8ce9a4d529b72",
  "buyCurrency":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "dateFormat": "%Y-%m-%d"
}

Similar queries