ohlc for 1 sec for specific token

Returns DEX trades by token on Solana, where currency mint address is hD93NE…pump and trade amount is above 0, sorted by block time: block time, market address, protocol name, protocol family, currency symbol, currency name, currency mint address and 5 more fields.

By Akshat · saved 24 September 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query pumpFunTradesSolToken($token: String) {
  Solana {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Amount: {gt: "0"}, Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time(interval: {count: 1, in: seconds})
      }
      Trade {
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        Currency {
          Symbol
          Name
          MintAddress
          Decimals
        }
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        min: Price(maximum: Trade_Price)
        max: Price(minimum: Trade_Price)
        closeUsd: PriceInUSD(maximum: Trade_PriceInUSD)
      }
      volume: sum(of: Trade_Side_Amount)
      volumeUsd: sum(of: Trade_Side_AmountInUSD)
    }
  }
}

Variables

{
  "token": "hD93NEvtQ3sme67p66oRgfoJPSTA4FFKEqhafNSpump"
}

Similar queries