Token Search API - trump symbol

Historical data This query uses the realtime dataset (the default), which holds only a recent window - hours to days depending on the cube. For older data add a dataset to the top-level element: Solana(dataset: combined) archive full history combined archive + realtime in one result Archive and c

By Akshat · saved 28 February 2025 · run 191 times · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   This query uses the realtime dataset (the default), which holds only a
#   recent window - hours to days depending on the cube.
#
#   For older data add a dataset to the top-level element:
#
#     Solana(dataset: combined)
#
#     archive   full history
#     combined  archive + realtime in one result
#
#   Archive and combined need the historical data add-on:
#   https://bitquery.io/pricing
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

query MyQuery {
  Solana {
    DEXTradeByTokens(
      where: {Block: {Time: {since: "2025-02-28T07:00:00Z"}}, Trade: {Currency: {Symbol: {likeCaseInsensitive: "trump"}}}, Transaction: {Result: {Success: true}}}
      limit: {count: 50}
      orderBy:{descendingByField:"trade_volume"}
    ) {
      Trade {
        Currency {
          Name
          MintAddress
          Symbol
        }
        Dex {
          ProtocolName
        }
        Market {
          MarketAddress
        }
        Side {
          Currency {
            Name
            MintAddress
            Symbol
          }
        }
      }
      trade_volume: sum(of:Trade_Side_AmountInUSD)
      trades: count
    }
  }
}

Similar queries