OHLC获取

Returns the latest 5 DEX trades by token on Solana, where currency mint address is FMWgSS…pump: block time, sum of trade amount, price in USD and count.

By xuan · saved 28 November 2024 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query {
  Solana {
    DEXTradeByTokens(
      limit: {count:5}
      orderBy: { descendingByField: "Block_Timefield" }
      where: {
        Trade: {
          Currency: {
            MintAddress: { is: "FMWgSSUZcNBtLsN52Ck3XHZur3DpCXM767ahk5AWpump" }
          }
        }
      }
    ) {
      Block {
        Timefield: Time(interval: { in: minutes, count: 1 })
      }
      volume: sum(of: Trade_Amount)
      Trade {
        high: PriceInUSD(maximum: Trade_Price)
        low: PriceInUSD(minimum: Trade_Price)
        open: PriceInUSD(minimum: Block_Slot)
        close: PriceInUSD(maximum: Block_Slot)
      }
      count
    }
  }
}

Similar queries