GetPricesNow

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0x812f…dacc, quote currency is 0xbb4c…095c and base currency is 0xd773…16a3, sorted by quote currency symbol: quote currency symbol, quote currency name, quote currency address, base currency symbol, base currency address, base currency name, quote price and maximum of block.

By Rich · saved 11 May 2021 · Bitquery API v1

What it returns

Filters

The query

query (
  $network: EthereumNetwork!, 
  $wbnb: String!, 
  $token00: String!, 
  $token01: String!, 
  $token02: String!, 
  $token03: String!, 
  $token04: String!, 
  $token05: String!, 
  $token06: String!, 
  $token07: String!, 
  $busd: String!, 
  $limit: Int!, 
) {
  ethereum(network: $network) {
    count0: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token00}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
	count1: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token01}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
	count2: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token02}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
	count3: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token03}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
	count4: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token04}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
	count5: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token05}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
	count6: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token06}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
	count7: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      baseCurrency: {is: $token07}
      quoteCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      quotePrice
      close: maximum(of: block, get: quote_price)
    }
    
    
	base0: dexTrades(
      options: {limit: $limit, asc: "quoteCurrency.symbol"}
      quoteCurrency: {is: $busd}
      baseCurrency: {is: $wbnb}
    ) {
      quoteCurrency {
        symbol
        name
        address
      }
      baseCurrency {
        symbol
        address
        name
      }
      close: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "limit": 10,
  "network": "bsc",
  "token00": "0x812ff2420ec87eb40da80a596f14756acf98dacc",
  "token01": "0xd7730681b1dc8f6f969166b29d8a5ea8568616a3",
  "token02": "0xdac6303febac4c5b569fba0c8addce1e41771e15",
  "token03": "0x32089eaffaf278c82cda2c8d37e7b6b6fabbaaf2",
  "token04": "0x64654f675c06e791e9469ceee197dd6411080fad",
  "token05": "0x0000000000004946c0e9f43f4dee607b0ef1fa1c",
  "token06": "0xe5a09784b16e1065c37df14c6e2f06fdce317a1b",
  "token07": "0xc91d49653f0364aa9c7877697eb27313c973ad9d",
  "busd": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
  "wbnb": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
}

Similar queries