celo trade

Trades for wallet address

Returns the latest 5 DEX trades on Ethereum and celo_mainnet, where maker or taker is 0x8ee3…87eb and date after 2023-12-28: transaction hash, address address, contract type, currency name, trade index, date date, block height and 10 more fields.

By Niceface · saved 21 July 2024 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network:celo_mainnet) {
    dexTrades(
      options: {desc: "block.height", limit: 5}
      makerOrTaker: {is: "0x8ee3472d1a0d4b874f538f6515a5e2249f6f87eb"}
      
      date: {after: "2023-12-28"}
    ) {
      transaction {
        hash
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      date {
        date
      }
      block {
        height
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        gasValue
        gasPrice
        gas
      }
    }
  }
}

Similar queries