get_token_info

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

By Xfunstyle · saved 16 October 2024 · run 12 times · Bitquery API v2

What it returns

Filters

The query

query get_token_info($first_trade: DateTime!, $last_trade: DateTime!) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_Timefield"}
      where: {Trade: {Currency: {MintAddress: {is: "AEiQQoPr7wuaPj47fUpuHhdzeBhWyRzLMVk1rKu7pump"}}}}
    ) {
      Block {
        Timefield: Time(interval: {in: years, count: 10})
        firstTrade: Time(minimum: Block_Time)
      }
      Trade {
        high: Price(
          maximum: Trade_Price
          if: {Block: {Time: {till: $last_trade, since: $first_trade}}}
        )
        highPrice: PriceInUSD(
          maximum: Trade_PriceInUSD
          if: {Block: {Time: {till: $last_trade, since: $first_trade}}}
        )
        low: Price(
          minimum: Trade_Price
          if: {Block: {Time: {till: $last_trade, since: $first_trade}}}
        )
        lowPrice: PriceInUSD(
          minimum: Trade_PriceInUSD
          if: {Block: {Time: {till: $last_trade, since: $first_trade}}}
        )
      }
      volume: sum(
        of: Trade_Side_Amount
        if: {Block: {Time: {till: "2024-10-16T11:45:00Z", since: "2024-10-16T11:30:00Z"}}}
      )
    }
  }
}

Variables

{
  "first_trade": "2024-10-16T11:45:00Z",
  "last_trade": "2024-10-16T12:00:00Z",
}

Similar queries