ohlc poocoin bnb

Returns 10000 DEX trades by token on BNB Chain, where currency smart contract is 0xabf0…d145, side currency smart contract is 0xbb4c…095c and pair smart contract is 0x4236…98f2, sorted by block OHLC interval: block time, block number, sum of trade amount, smart contract, side smart contract, trade price and count.

By gaurav · saved 10 June 2024 · run 7 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: bsc) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_OHLC_interval"}
      where: {Trade: {Currency: {SmartContract: {is: "0xabf0d5c6cbe423407fbafa96d3cc17b2fe5fd145"}}, Side: {Currency: {SmartContract: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}}}, Dex: {Pair: {SmartContract: {is: "0x42369166ec621c6e1bb7dbc6f6a00deffae598f2"}}}}}
      limit: {count: 10000}
    ) {
      Block {
        OHLC_interval: Time(interval: {in: minutes, count: 10})
        lastTradeTime: Time(maximum: Block_Time)
        FirstTradeTime: Time(minimum: Block_Time)
        LastTradeBlock: Number(maximum: Block_Number)
        FirstTradeBlock: Number(minimum: Block_Number)
      }
      volume: sum(of: Trade_Amount)
      Trade {
        Currency {
          SmartContract
        }
        Side {
          Currency {
            SmartContract
          }
        }
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
      }
      count
    }
  }
}

Similar queries