LP price

Returns one DEX trade on Ethereum and BNB Chain, where smart contract address is 0x3702…50ec, exchange name is Pancake or Pancake v2 and date since 2021-07-07, sorted by block height trade index: count, trade amount, block height, timestamp time, transaction index, base currency symbol, quote currency symbol and 8 more fields.

By misshuang · saved 12 July 2021 · run 13 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    tx: dexTrades(
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      date: {since: "2021-07-07T03:11:38.287Z"}
      smartContractAddress: {is: "0x3702d000a74fab51a1b4d362d069309a38c450ec"}
    ) {
      count
      tradeAmount(in: USD)
    },
    count1:dexTrades(
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      smartContractAddress: {is: "0x3702d000a74fab51a1b4d362d069309a38c450ec"}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    },
    count2:dexTrades(
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      smartContractAddress: {is: "0x3702d000a74fab51a1b4d362d069309a38c450ec"}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    },
    today:dexTrades(
      options: {asc: ["block.height","tradeIndex"], limit: 1}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      smartContractAddress: {is: "0x3702d000a74fab51a1b4d362d069309a38c450ec"}
      date: {since: "2021-07-09T01:34:32.700Z"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
    }
  }
}

Similar queries