4) Get All Stablecoin Pairs For Dex

Returns 10 DEX trades on Ethereum and klaytn, where exchange address is 0xf510…312e, time after 12/01/2022 and trade amount USD is above 1, sorted by time interval second: second, base currency symbol, base currency address, decimals, base amount, quote currency symbol, quote currency address and 5 more fields.

By Luke Halley · saved 3 January 2023 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query GetAllStablecoinPairsCreatedForDex($network: EthereumNetwork!, $from: ISO8601DateTime, $limit: Int!, $factoryAddress: String!, $stablecoinAddresses: [String!], $tradeAmountUsd: Float!) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: "timeInterval.second", limit: $limit}
      time: {after: $from }
      exchangeAddress: {is: $factoryAddress}
      quoteCurrency: {in: $stablecoinAddresses}
      tradeAmountUsd: {gt: $tradeAmountUsd}

    ) {
      timeInterval {
        second(count: 60)
      }
      baseCurrency {
        symbol
        address
        decimals
      }
      baseAmount
      quoteCurrency {
        symbol
        address
        decimals
      }
      quoteAmount
      trades: count
      quotePrice
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
      volume: quoteAmount
      count: count
    }
  }
}

Variables

{
  "network": "klaytn",
  "from": "12/01/2022",
  "limit": 10,
  "factoryAddress": "0xf51082ba95c18315ca51a1ab8d9db537ff52312e",
	"stablecoinAddress": "0xceE8FAF64bB97a73bb51E115Aa89C17FfA8dD167",
  "tradeAmountUsd": 1
}

Similar queries