10 minute OHLC data for BKPT token

Returns the latest 10 DEX trades by token on BNB Chain, where currency smart contract is 0x6448…5113 and block date after 2023-06-01: block time, sum of trade amount, trade price and count.

By gaurav · saved 10 July 2023 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $token: String!) {
  EVM(network: $network, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}, Block: {Date: {after: "2023-06-01"}}}
    ) {
      Block {
        Time(interval: {in: minutes, count: 10})
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
      }
      count
    }
  }
}

Variables

{
  "network": "bsc",
  "limit": 10,
  "offset": 0,
  "address": "0x6448be0ca45a7581d9c4c9dd665e14ec60b25113",
  "token": "0x6448be0ca45a7581d9c4c9dd665e14ec60b25113",
  "id": "",
  "from": "2023-07-03",
  "till": "2023-07-10",
  "dateFormat": "%Y-%m-%d"
}

Similar queries