Starter Queries
Below is a set of queries that are curated for you to get started with Bitquery.
Table of Contents
- Cross-Chain / Multi-Chain APIs
- Polymarket
- Ethereum
- Solana
- BSC (Binance Smart Chain)
- TRON
- Bitcoin
- Cardano
- Ripple
- Cosmos
- NFT APIs
- x402 APIs
Cross-Chain / Multi-Chain APIs
Latest Price of Any Token
This query gives you bitcoin currency 1-sec OHLC across different blockchains. You can adjust duration in Duration: {eq: 1} filter.
▶️ Latest Price of Token Across Chains
Crypto Price Change API
This query gives you change in price (Close-Open) of all tokens on Ethereum, BNB, Solana and Tron.
You can adjust duration in Duration: {eq: 60} filter.
OHLC of a currency on multiple blockchains
This query retrieves the OHLC (Open, High, Low, Close) prices of a currency(in this eg Bitcoin; it will include all sorts of currencies whose underlying asset is Bitcoin like cbBTC, WBTC, etc) across all supported blockchains, aggregated into a given time interval (e.g., 60 seconds in this example).
▶️ OHLC of a currency on multiple blockchains
OHLC of a Token Pair Across Chains
This subscription fetches real-time OHLC (Open, High, Low, Close) price data for a token pair across different blockchains.
For native tokens, you only need to specify their ID (e.g., bid:eth for ETH).
▶️ OHLC of a Token Pair Across Chains
Historical Price and Volume Data (Volume & Price, Last 24h)
Use this API to get historical price and volume over the past 24 hours, with 1h, 4h, and 24h breakdowns.
▶️ Historical Price and Volume Data
Volume of Multiple Tokens Across Different Chains
Get volume and price change data for multiple tokens trading on different chains (Solana, Ethereum, BSC, Tron) in a single query. Returns volume for 1h, 4h, and 24h periods, plus price change percentages.
Note: For EVM chains (Ethereum, BSC, etc.) in the Trading API, use all lowercase addresses in the token ID format (e.g.,
bid:eth:0x...with lowercase hex). Mixed-case addresses may not match.
▶️ Volume of Multiple Tokens Across Chains
PolyMarket
Prediction Market Trades
Prediction market buy/sell activity on outcome tokens on Polygon. See Prediction Market Trades API for full details.
Latest Trades
Fetch the most recent prediction market trades with full details, ordered by block time. ▶️ Latest Prediction Market Trades
Trades for a Specific Trader
Fetch all trades where the given address is either Buyer or Seller. Pass the trader address as the $trader variable.
▶️ Trades for a Specific Trader
Total Volume and Yes/No Volume for a Market
Aggregate USD volume for a market over a time window: total volume plus volume per outcome (e.g. Yes/No). Pass the market's outcome token AssetIds in $marketAssets.
▶️ Total Volume and Yes/No Volume for a Market
Current Price per Outcome (Latest Trade)
Get the latest trade price for each outcome in a market. Uses limitBy for one row per outcome, with Price and PriceInUSD at the most recent block time.
▶️ Current Price per Outcome
Prediction Market Managements
Prediction market lifecycle events (Created, Resolved) on Polygon. See Prediction Market Managements API for full details.
Latest Creations + Resolutions
Fetch the most recent creation and resolution events with full details, ordered by block time. ▶️ Latest Prediction Managements
Created vs Resolved Count (Last 24 Hours)
Count how many Created and Resolved events occurred in the last 24 hours. ▶️ Created vs Resolved Count Last 24h
Latest Market Creations
Fetch the most recent Created events (new markets). All possible outcomes per market are in Prediction.Condition.Outcomes. ▶️ Latest Market Creations
Latest Market Resolutions
Query that returns the 10 most recent Resolved events. Winning outcome is in Prediction.Outcome; Prediction.OutcomeToken holds the asset ID and contract details. ▶️ Latest Market Resolutions
Prediction Market Settlements
Prediction market settlement events (Split, Merge, Redemption) on Polygon. See Prediction Market Settlements API for full details.
Latest Settlements
Fetch the most recent settlements with full details, ordered by block time. ▶️ Latest Prediction Market Settlements
Redemption / Merge / Split Count (Last 1 Hour)
Count how many settlement events occurred in the last hour, grouped by event signature (Split, Merge, Redemption). ▶️ Redemptions Merge Split Count
Latest Whale Settlements
Find the most recent high-value redemptions (e.g. amount ≥ 10,000 in outcome token units). Useful for tracking large payouts and whale activity. ▶️ Latest Whale Settlements
Top 10 Winners of a Specific Market Question
Rank holders by total redeemed amount for one market (filter by question title). ▶️ Top 10 Winners of a Market Question
Top 10 Market Questions by Redeemed Amount (Last 1 Hour)
Aggregate redemptions by market question and sort by total redeemed amount. See which markets had the most payout activity recently. ▶️ Top 10 Market Questions by Redeemed Amount
Top 10 Redeemers (Last 1 Hour)
Rank addresses by total amount redeemed in the last hour across all markets. Useful for leaderboards and whale tracking. ▶️ Top 10 Redeemers
Ethereum
Balance APIs
Get latest ERC20 token balance of a wallet
Get latest ERC20 token balance of a wallet. ▶️ Get latest ERC20 token balance of a wallet
Get All Token Balances for an Address
Retrieve all ERC-20 token balances held by a specific address. This query returns balances for all tokens the address holds. ▶️ Get All Token Balances for an Address
Latest Liquidity of EVM Pool
Get the latest liquidity of an EVM DEX pool (e.g., Uniswap v3 pool).
▶️ Latest Liquidity of EVM Pool
Token Supply
Latest Token Supply on ETH chain
Latest Token Supply for all active token
▶️ Latest Token Supply for all active token
Latest Token Supply of USDT-USDC on ETH chain
Latest Token Supply for stablecoin like USDC-USDT.
▶️ Latest Token Supply for stablecoin like USDC-USDT
MarketCap APIs
Trading API Tokens query for the latest market cap, FDV, supply, price, and volume for one Ethereum token. Use eth: + lowercase contract in Token.Id. Full examples: Ethereum Token Market Cap API.
Latest market cap for a specific Ethereum token (Trading API)
▶️ Specific Ethereum Token Latest Market Cap
Transfers
Get ERC20 token transfers by wallet
Get ERC20 token transactions ordered by block number in descending order.
▶️ Get ERC20 token transfers by wallet
Transactions
Get transactions by wallet
Get transactions ordered by block number in descending order.
▶️ Get transactions by wallet
Trades
Ethereum DEXTrades latest trades for a token
This query returns the latest trades on the Ethereum network where distinction of the buy and sell sides is present.
Get Swaps by Wallet Address
Get all swap related transactions (buy, sell).
▶️ Get Swaps by Wallet Address
Events & Calls
Get Latest Events
Get Latest Calls
OHLC & Price Data
Get OHLCV by Pair Address
Get the OHLCV candle stick by using pair address.
▶️ Get OHLCV by Pair Address
Get Multiple ERC20 Token Prices
Returns an array of token prices denominated in the blockchain's native token and USD for a given token contract address.
▶️ Get Multiple ERC20 Token Prices
Get ATH Price of a token
Retrieves the all-time high (ATH) price in USD for a specified token contract. ▶️ Get ATH Price of a token
Get Price Change 5min, 1h, 6h and 24h of a specific Eth token
This query gets you Price Change 5min, 1h, 6h and 24h of a specific token on the Ethereum network. ▶️ Get Price Change 5min, 1h, 6h and 24h of a specific token
Historical Price and Volume Data (Volume & Price, Last 24h using Trading API)
Use this API to get historical price and volume for a specific token over the past 24 hours, with 1h, 4h, and 24h breakdowns.
▶️ Historical Price and Volume Data
Top 10 Eth Tokens by Price Change in last 1h
This query gets you top 10 Eth Tokens by Price Change in last 1h. ▶️ Top 10 Eth Tokens by Price Change in last 1h
Uniswap v3 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders
1-second OHLC and volume stream for tokens traded on Uniswap v3 (Ethereum). Great for bot trading strategies. ▶️ Uniswap v3 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders
Token Analytics
Get Token Total Supply and Market Cap
Retrieve the total supply and market capitalization of a specific ERC-20 token. This query provides on-chain market cap data. ▶️ Get Token Total Supply and Market Cap
Token Holder Count on a Specific Date
This API returns the total number of holders for a specific token on a given date. ▶️ Token Holder Count on a Specific Date
Real-Time Holders of Multiple Tokens
This API leverages the balanceUpdate endpoint to deliver real-time holder data for multiple tokens. ▶️ Real-Time Holders of Multiple Tokens
Token Holders of Multiple Tokens on a speicifc date - BalanceUpdates API
This API provides a list of top holders along with relevant statistics for a given token liston a specific date using BalanceUpdates API. ▶️ Real-Time Holders of Multiple Tokens
Token Holders and Stats on a Specific Date - TokenHolders API
This API provides a list of all holders along with relevant statistics for a given token on a specific date. ▶️ Token Holders and Stats on a Specific Date
Realised PnL, buy volume, sell volume
Get realised PnL, buy volume, and sell volume for a token on EVM of a trader for over a time window. ▶️ Realised PnL, buy volume, sell volume
Slippage APIs
Latest Slippage for a Specific Pool on Uniswap V3
This query retrieves the latest slippage data for a specific DEX pool on Ethereum. Use this to check current liquidity depth and price impact for a particular token pair.
▶️ Latest Slippage for a Specific Pool on Uniswap V3
Liquidity APIs
Latest Liquidity Changes of a Specific Pool
This query retrieves the latest liquidity events for a specific DEX pool on Ethereum. Use this to check current pool reserves, spot prices, and recent liquidity changes for a particular token pair.
▶️ Latest Liquidity Changes of a Specific Pool
Top Liquidity Pools of a token on Ethereum
▶️ Top Liquidity Pools of a token on Ethereum
Liquidity of All Pools of a Token on Ethereum
Get latest liquidity across all pools where the token appears as either pool side. ▶️ Liquidity of All Pools of a Token on Ethereum
Solana
Balance APIs
Get Native and SPL Token Balance by Wallet
Gets the portfolio for an address. ▶️ Get Native and SPL Token Balance by Wallet
Historical Solana Balance
This API returns all token inflows and outflows for a Solana address within a specified timeframe, enabling balance calculation based on transaction history. ▶️ Solana Token Inflows and Outflows for Balance Calculation
Solana Balance Update
This query returns Solana balance update info for any balance update event. It includes the address, amount, currency details, and the amount of tokens present in a particular address before and after the update.
▶️ Balance Update
Solana Instruction Balance Updates
This query returns Solana balance update info for any balance update event, including the address, amount, currency details, and the details of the program responsible for this update.
▶️ Instruction Balance Updates
MarketCap APIs
Trading API Tokens query for the latest market cap, FDV, supply, price, and volume for one Solana token. Use solana: + mint in Token.Id. Full examples: Solana Token Market Cap API.
Latest market cap for a specific Solana token (Trading API)
▶️ Specific Solana Token Latest Market Cap
Transfers
Solana Transfers
This query gets the latest 10 transfers on Solana. You can increase the limit to get more transfers. This query only uses real-time data.
▶️ Solana Transfers
Solana Historical Transfers
▶️ Solana Historical Transfers
Find who funded the specific Solana wallet
To determine who funded a specific Solana wallet with SOL, you can utilise the following API. ▶️Find who funded the specific Solana wallet
Solana Token creator and Time
▶️Solana Token creator and Time
Solana Historical Token Transfers Over Time
This API provides historical data on all Solana token transfers that occurred within a specified time range. ▶️ Solana Historical Token Transfers Over Time
Solana Token Transfers for a Specific Address
This API retrieves the history of token transfers (both sent and received) for a specific Solana address within a defined time period. ▶ ️ Solana Token Transfers for a Specific Address
Solana Token Inflows and Outflows for Balance Calculation
This API returns all token inflows and outflows for a Solana address within a specified timeframe, enabling balance calculation based on transaction history. ▶️ Solana Token Inflows and Outflows for Balance Calculation
Simple SOL transfers (Transactions not trades)
This API returns simple SOL transfers; in other words, it contains transactions that are simple token transfers, not trades. ▶️ Simple SOL transfers (Transactions not trades)
Trades
Solana Chain Trades
This query gets the latest 10 trades on Solana. You can increase the limit to get more trades. This query only uses real-time data.
▶️ Solana Trades
Solana Trades of a Token
With this, you can query the trades of a token on Solana.
▶️ Trades of a Token
Get Trades by Wallet Address
Get all trades related transactions (buy, sell) for a specific wallet address. ▶️ Get Swaps by Wallet Address
Get Swaps by Pair Address
Get all trades related transactions for a specific pair address. ▶️ Get Swaps by Pair Address
Latest Trades for a specific currency on Raydium
This query returns the latest trades for a token on Raydium. You can set the limit here also. ▶️ Latest trades of a token on Raydium
Latest Trades in Real Time of a specific DEX
This subscription query returns the latest PumpFun trades in real time.
▶️ Real-time Trades
OHLC & Price Data
Get OHLCV by Pair Address
You can get charting data easily with this query. Adjust the intervals as necessary. This query supports historical data.
▶️ Get OHLCV by Pair Address
Real-Time Token Prices in USD on Solana
Stream live OHLC (Open, High, Low, Close) price and volume data for all tokens on Solana, quoted directly in USD. Useful for dashboards, analytics, or bots that need stable fiat-based prices. ▶️ Real-Time Token Prices in USD on Solana
Get ATH Price of a token
Retrieves the all-time high (ATH) price in USD for a specified token contract. ▶️ Get ATH Price of a token
Latest Token Prices in Quote Pair (USDC, USDT, etc.)
Get latest OHLC prices for Solana tokens denominated in their trading pair token (e.g., USDC, USDT, or another crypto), instead of direct USD. Great for analyzing token behavior relative to stablecoins or other assets. ▶️ Latest Token Prices in Quote pair
Price change 5min, 1hr, 6hr precentage of a specific token
With this, you can get the price change 5min, 1hr, 6hr precentage of a specific token. ▶️ Price change 5min, 1hr, 6hr precentage
Top 10 solana tokens by price change in last 1 hr
With this, you can get top 10 solana tokens by price change in last 1 hr. ▶️ Top 10 solana tokens by price change in last 1 hr
PumpAMM 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders
Real-time (1-second interval) price, OHLC, volume, and moving averages for Pump.fun AMM tokens on Solana. Useful for high-frequency trading bots. ▶️ PumpAMM 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders
Raydium Launchlab 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders
Monitor Raydium Launchlab token listings on Solana with 1-second OHLC and volume streams. Perfect for tracking new token launches. ▶️ Raydium Launchlab 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders
Latest Price of a Token on Raydium Launchpad
This query returns the latest price of a token on the Raydium launchpad.
▶️ Latest Token Price on Launchpad
Latest Price of a LetsBonk.fun
This query returns the latest price of a LetsBonk.fun token.
▶️ Latest LetsBonk.fun Token Price
Token Analytics
Get Token Prices on Solana
Returns price information for multiple Solana tokens in a single request. ▶️ Get Multiple Token Prices on Solana
Get Token Metadata
Get the token metadata for contract (mint, standard, name, symbol). ▶️ Get Token Metadata
Get Top Token Holders
Get a list of top token holders for a specific Solana token address. ▶️ Get Top Token Holders
Get Token Pairs by Address
Get the supported pairs for a specific token address. ▶️ Get Token Pairs by Address
Get Token Pair Stats
Get the pair stats by using pair address. ▶️ Get Token Pair Stats
Get Aggregated Token Pair Stats
Get aggregated statistics across supported pairs of a token. ▶️ Get Aggregated Token Pair Stats
Realised PnL, avg buy price, buy volume, sell volume of a Trader for specific token
Get realised PnL, average buy price, buy volume, and sell volume for a token on Solana of a trader for over a time window. ▶️ Realised PnL, avg buy price, buy volume, sell volume
Historical Price and Volume Data (Volume & Price, Last 24h using Trading API)
Use this API to get historical price and volume for a specific token over the past 24 hours.
▶️ Historical Price and Volume Data
Get Multiple Token Analytics
Returns analytics data for multiple token addresses. ▶️ Get Multiple Token Analytics
Get Volume Stats for Solana Chain
Returns volume statistics, active wallets, and total transactions for Solana. ▶️ Get Volume Stats By Chain
Top 10 marketcap jump tokens in last 1hr
This query retrieves top 10 marketcap jump tokens in last 1hr. ▶️ Top 10 marketcap jump tokens in last 1hr
Search Tokens
Search tokens by name, symbol, mint address
Search for tokens based on contract address, token name or token symbol. ▶️ Search Tokens based on token symbol
Pool/Liquidity APIs
All Token Pairs Across DEXs with Current Liquidity
This query retrieves all instances of a specific token pair across decentralized exchanges (DEXs) on Solana, along with their current liquidity. ▶️ All Token Pairs Across DEXs with Current Liquidity
Solana Pool Liquidity Changes
This query retrieves the latest changes to liquidity pools on Solana, including the change amount and the price at which the change happened. This query also uses only the real-time data set.
▶️ Solana Liquidity Changes
Liquidity of All Pools of a Token on Solana
Get latest liquidity snapshots for all pools where a token is either base or quote currency. ▶️ Liquidity of All Pools of a Token on Solana
Latest Pools Created on Raydium
This query returns the latest created pools on Raydium. You can set the limit here also.
▶️ Raydium Latest Created Pools
Latest Pools Created on Launchpad
This query returns the latest created pools on Raydium launchpad. You can set the limit here also.
▶️ Launchpad Latest Created Pools
Liquidity Addition for Four Meme Token
Get the liquidity addition events for a specific token on the Four Meme Exchange.
▶️Liquidity Addition
PumpFun APIs
Get New Tokens for PumpFun
Returns a list of newly created tokens on the Pump Fun. ▶️ Get New Tokens for PumpFun