# Solana API & WebSocket Docs Documentation > Vybe's Solana API and WebSocket delivers real-time on-chain data for tokens, wallets, trades, and DeFi protocols such as Pump.fun, Raydium and more. ## Guides - [Quick Start](https://docs.vybenetwork.com/docs/quick-start.md): Sign up for free, generate your Solana API key, and make your first REST API call in under 5 minutes. Includes cURL, JavaScript, and Python examples. - [What is Vybe?](https://docs.vybenetwork.com/docs/what-is-vybe.md): Solana API for data and execution combining market data, wallet analytics, DeFi positions and DEX swaps in one platform built on vetted markets. - [Build with Vybe](https://docs.vybenetwork.com/docs/use-cases-with-vybe-api.md): Solana API for building trading bots, portfolio trackers, whale alerts, and analytics dashboards using vetted market data and full onchain coverage. - [Plans & Rate Limits](https://docs.vybenetwork.com/docs/plans-rate-limits.md): Solana API pricing with flexible plans, credits, and rate limits. Scale from free to enterprise with transparent usage-based pricing across all endpoints. - [Upgrading your Subscription](https://docs.vybenetwork.com/docs/upgrading-your-plan.md): Solana API guide for upgrading or downgrading plans. Manage billing, switch tiers, and update subscriptions easily via dashboard and Stripe portal. - [Enterprise Data](https://docs.vybenetwork.com/docs/vybe-network-bulk-data-export.md): Solana API for historical blockchain data exports including trades, transfers, prices, and wallet activity in CSV and Parquet for research and analytics. - [Vybe Solana API MCP](https://docs.vybenetwork.com/docs/mcp.md): Connect Vybe’s Solana API to Cursor, Windsurf, or Claude via MCP. Enable AI code generation, real-time API access, and live query execution. - [x402 Payment Protocol](https://docs.vybenetwork.com/docs/x402-payment-protocol.md): x402 payment API for pay-per-call access using stablecoins over HTTP. No API keys or subscriptions, just pay and query across chains including Solana. - [Data Quality](https://docs.vybenetwork.com/docs/data-quality.md): High quality Solana API data with accurate pricing, fresh holder data, wash trade filtering, reliable PnL calculations, and trusted blockchain data by Vybe. - [Vetted Markets](https://docs.vybenetwork.com/docs/vetted-markets.md): Vetted Solana markets filter out fake wicks, wash trading, and low-liquidity pools to deliver accurate, reliable price data for analytics and trading. - [Wallet Data Overview](https://docs.vybenetwork.com/docs/wallet-data-overview.md): Complete Solana wallet intelligence: Token-2022 and SPL token balances, NFT holdings, DeFi positions on 50+ protocols, labeled wallets and more. - [Realtime Wallet Balances](https://docs.vybenetwork.com/docs/token-balances.md): Solana API for real-time wallet token balances with USD values, 24h/7d changes, dust filtering, and verified Token-2022 and SPL token support. - [Historical Wallet Balances](https://docs.vybenetwork.com/docs/balances-historical.md): Solana wallet portfolio and holdings value API with daily snapshots. Get 30 days of balance history for net worth charts, performance and drawdowns. - [Positions (Lending & LPs)](https://docs.vybenetwork.com/docs/positions-yields-staking.md): Solana API for tracking DeFi positions including LPs, lending, and staking across 50+ protocols like Raydium, Marginfi, Marinade, Kamino, Orca, and Jito. - [Fetch Wallet PNLs](https://docs.vybenetwork.com/docs/fetch-wallet-pnls.md): Solana API for wallet PnL, including realized and unrealized profits, win rate, trade volume, and per-token performance from vetted markets. - [NFT Holdings & Balances](https://docs.vybenetwork.com/docs/nft-holdings.md): Solana API for NFT holdings by wallet, including collection metadata, floor price valuations, and attributes for portfolio tracking and whale monitoring. - [Labeled Wallets & Programs](https://docs.vybenetwork.com/docs/labeled-wallets.md): Solana API for labeled wallets and programs including exchanges, VCs, market makers, and treasuries for whale tracking and smart money analytics. - [Querying Multiple Wallets](https://docs.vybenetwork.com/docs/batch-queries-multiple-wallets.md): Query token balances, NFTs, and balance history for up to 10 Solana wallets in one API call. Ideal for DAOs, funds and multi-sig dashboards. - [Token Data Overview](https://docs.vybenetwork.com/docs/token-data-overview.md): Solana API for token analytics including price, volume, holders and historical trends. Built on vetted markets with no fake wicks or wash trading. - [Token Details & Metrics](https://docs.vybenetwork.com/docs/token-details-spl-token-2022.md): Solana API for Token-2022 and SPL token details including price, volume, market cap, FDV, holders and supply from vetted markets only. - [Fetch Historical Trades](https://docs.vybenetwork.com/docs/fetch-historical-trades.md): Fetch historical trade and swap data for any supported Solana AMM or DEX program like Pump.fun, Raydium and more. Filter by token, market, program and more. - [Fetch Markets / Pools](https://docs.vybenetwork.com/docs/fetch-markets-pools.md): List all tradeable markets and liquidity pools for any Solana DEX or AMM. Get market IDs, token pairs and program names for Raydium, Orca, Meteora and more. - [Top Traders & PnL](https://docs.vybenetwork.com/docs/top-traders-pnl.md): Solana API for top token traders by realized and unrealized PnL, volume, trade counts, and wallet labels across 1d, 7d, and 30d windows. - [Token Holders (Top 1000)](https://docs.vybenetwork.com/docs/token-holder-data.md): Solana API for Token-2022 and SPL token holders with top wallets, ownership %, USD value, and labeled entities like CEX, KOL, and VCs. - [Historical Holders & Transfers](https://docs.vybenetwork.com/docs/historical-holder-data.md): Solana holder analytics API with historical holder count and transfer volume data. Track adoption, growth and accumulation trends for on-chain analysis. - [Fetch OHLC Candles](https://docs.vybenetwork.com/docs/fetch-ohlc-candles.md): Solana OHLC candles API with clean USD price data. Fetch volume, trade count, and reliable price history from vetted markets for charting and analysis. - [Querying All Tradable Tokens](https://docs.vybenetwork.com/docs/querying-multiple-tokens.md): Solana API for browsing and filtering tokens by price, volume, market cap, and holders. Power token screeners, discovery tools and market overviews. - [Available DEXs & AMMs](https://docs.vybenetwork.com/docs/available-dexs-amms.md): Solana API support for fetching common DEXs and AMMs with program addresses. Includes Raydium, Orca, Meteora, Pump.fun and 40+ protocols. - [Overview](https://docs.vybenetwork.com/docs/websockets.md): WebSocket on Solana for real-time trades, token transfers, OHLCV candles, Pyth oracle prices, new tokens, new markets and more. Start streaming in minutes! - [Availability & Pricing](https://docs.vybenetwork.com/docs/pricing.md): Explore Vybe's Solana WebSocket and API pricing plans with transparent data consumption costs. Choose between free, business and pro data plans. - [Connecting to WebSocket](https://docs.vybenetwork.com/docs/connecting-to-a-websocket.md): Example code and guide for connecting to our Solana WebSocket API with Node.js. Includes filter configs, auto-reconnect and message handling logic. - [Filter Configuration](https://docs.vybenetwork.com/docs/filter-configuration.md): Configure Solana WebSocket filters to receive granular trade or transfer data: filter by token, wallet, programs, amount ranges, instructions and more. - [Real-Time Trades](https://docs.vybenetwork.com/docs/real-time-trades.md): WebSocket for live Solana DEX trades from Pump.fun, Raydium and many more DEXs. Filter by token mint, market ID, program, or wallet. - [Live 1 Minute Candles (OHLCV)](https://docs.vybenetwork.com/docs/live-1-minute-candles-ohlcv.md): WebSocket real-time 1-minute OHLCV candles for any Solana token. Aggregated from DEXs including Pump.fun, Raydium, Meteora and more. - [Live Token Aggregator (Beta)](https://docs.vybenetwork.com/docs/live-token-aggregator.md): WebSocket aggregated real-time token stats for Solana tokens. Stream price, volume and market data on DEXs such as Pump.fun, Raydium and more. - [New Tokens](https://docs.vybenetwork.com/docs/new-tokens.md): WebSocket for newly deployed Token-2022 and SPL tokens on Solana DEXs like Pump.fun, Raydium and more. Get mint address, metadata, pool data live. - [New Markets](https://docs.vybenetwork.com/docs/new-markets.md): WebSocket for new pools and markets when newly created Solana liquidity pools are deployed on Pump.fun, Raydium and more with many filters. - [Token Transfers](https://docs.vybenetwork.com/docs/token-transfers.md): WebSocket for live Solana token transfers across Token-2022 and SPL tokens. Filter by program, owners, token, date range, transfer value and more. - [Pyth Oracle Prices](https://docs.vybenetwork.com/docs/pyth-oracle-prices.md): Learn more about getting a Pyth Price data stream from our WebSocket. - [Swap Overview](https://docs.vybenetwork.com/docs/swap-overview.md): Execute Solana token swaps directly on Raydium, Meteora, Pumpfun, and Sanctum via API. No aggregator routing, lower fees, faster execution and more. - [Supported Protocols](https://docs.vybenetwork.com/docs/supported-protocols.md): Supported Solana swap protocols including Pump.fun, Raydium, Meteora, Pumpswap and Sanctum. Learn routing logic and program IDs. - [Build Transaction](https://docs.vybenetwork.com/docs/build-transaction.md): Solana API for building swap transactions with DEX routing, gasless mode, privy wallets, and custom fees. Returns base64 unsigned transactions. - [Privy Integration](https://docs.vybenetwork.com/docs/privy-integration.md): Privy and embedded wallet swap API for integrated Solana swap execution. Supports ALT compression, fresh blockhash signing, and efficient transactions. - [Slippage & Fees](https://docs.vybenetwork.com/docs/slippage-fees.md): Understand slippage protection and fee deduction in Solana swaps. Prevent failed trades and ensure fees are taken from liquid tokens, not illiquid assets. - [Gas Fee Sponsorship](https://docs.vybenetwork.com/docs/gasless-mode.md): Solana gasless awap API acts as fee payer so users can swap without holding SOL. Build and execute gasless Solana swaps across Pump.fun, Raydium and more. - [Fetch Quotes & Routes](https://docs.vybenetwork.com/docs/get-quote.md): Solana swap quote API to fetch quotes for any token pair with expected output, price impact, route plan, and pool addresses. Alternative to Jupiter and Titan. - [Getting Your Free API Key](https://docs.vybenetwork.com/docs/getting-started.md): Follow this guide to quickly get set up with a free Vybe API key for various Solana API endpoint and WebSocket streams. - [Status Page](https://docs.vybenetwork.com/docs/status-page.md): Monitor Vybe’s Solana API and WebSocket status in real time. Get uptime updates, incident reports, and error alerts via the status page. - [FAQ](https://docs.vybenetwork.com/docs/faq.md): Solana API FAQ covering pricing, rate limits, WebSockets, historical data and support. Learn how to get started and scale with Vybe. ## API Reference - [Authentication](https://docs.vybenetwork.com/reference/authentication.md): Set up authentication for the Solana API and make your first request. Learn how to securely access endpoints and start integrating quickly. - [My Requests](https://docs.vybenetwork.com/reference/my-requests.md): Set up the welcome page for your API to help users make their first call. - [Market List](https://docs.vybenetwork.com/reference/get_markets_v4.md): Solana API endpoint for fetching Solana DEX markets by program address. Returns market IDs, token pairs, and program names for Pump.fun, Raydium and more. - [Market Details](https://docs.vybenetwork.com/reference/get_market_v4.md): Solana API endpoint for fetching details about a specific market on Solana. Details are filtered by market or pool address on Pump.fun, Raydium and more. - [Market Price Candles](https://docs.vybenetwork.com/reference/get_market_filtered_ohlcv_v4.md): Solana API endpoint for fetching OHLCV candlestick data for a specific Solana market/pool. Returns clean price data from vetted DEX pools and markets. - [Pyth Price Feeds](https://docs.vybenetwork.com/reference/get_pyth_price_product_pairs_v4.md): Solana API endpoint for fetching available Pyth price product pairs on Solana. Discover all available Pyth price feeds and their associated product accounts. - [Pyth Price Candles](https://docs.vybenetwork.com/reference/get_pyth_price_ohlc_v4.md): Solana API endpoint for fetching historical OHLC data from Pyth oracle price feeds. Get open, high, low, close prices for any Pyth price feed account. - [Pyth Current Price](https://docs.vybenetwork.com/reference/get_pyth_price_v4.md): Solana API endpoint for fetching the current Pyth oracle price for any price feed on Solana. Returns price, confidence interval, and EMAP data in real-time. - [Pyth Price History](https://docs.vybenetwork.com/reference/get_pyth_price_ts_v4.md): Solana API endpoint for fetching Pyth oracle price time series data on Solana. Get historical price snapshots with confidence intervals for any Pyth price feed. - [Pyth Product](https://docs.vybenetwork.com/reference/get_pyth_product_v4.md): Solana API endpoint for fetching Pyth product metadata on Solana. Get product account details, asset type, and associated price feed accounts. - [Labeled Programs](https://docs.vybenetwork.com/reference/get_known_program_accounts_v4.md): Solana API endpoint for fetching known Solana program accounts. Identify labeled program accounts across DEXs and protocols. - [Supported DEXs](https://docs.vybenetwork.com/reference/get_programs_v4.md): Solana API endpoint for fetching all indexed supported DEXs in the Solana ecosystem. Returns program names, DEXs, protocols, and on-chain programs. - [Instruction Names](https://docs.vybenetwork.com/reference/get_token_instruction_names_v4.md): Solana API endpoint for fetching available token instruction names for Solana programs. Use to filter and categorize on-chain token program interactions. - [Token List](https://docs.vybenetwork.com/reference/get_tokens_summary_v4.md): Solana API endpoint for fetching Token-2022 and SPL token lists in the form of paginated lists of all tracked Solana tokens with summary metrics. - [Token Details](https://docs.vybenetwork.com/reference/get_token_details_v4.md): Solana API endpoint for fetching complete Token-2022 and SPL token details such as price, volume, market cap, holder count, supply and social links. - [Token Candles](https://docs.vybenetwork.com/reference/get_token_trade_ohlc_v4.md): Solana API endpoint for fetching token candles OHLCV prices for any Token-2022 or SPL token on Solana. Multiple resolutions from 1-minute to 1-year. - [Holder Count History](https://docs.vybenetwork.com/reference/get_token_holders_time_series_v4.md): Solana API endpoint for fetching historical Token-2022 and SPL token holder count. Get daily or hourly holder snapshots with net change data. - [Token Liquidity](https://docs.vybenetwork.com/reference/get_token_liquidity.md): Solana API endpoint for fetching total USD liquidity for any Solana token. Aggregates liquidity across all trading markets to assess depth before trading. - [Token Markets Timeseries](https://docs.vybenetwork.com/reference/get_token_markets_timeseries_v4.md): Solana API endpoint for fetching token trade activity across all markets over time. Supports daily, weekly, and monthly resolutions for volume analysis. - [Top Holders](https://docs.vybenetwork.com/reference/get_top_holders_v4.md): Solana API endpoint for fetching top token holders and whales. Get ownership %, USD value, and labels for top 1000 wallets, updated every 3 hours. - [Top PnL Traders (By Token)](https://docs.vybenetwork.com/reference/get_top_pnl_traders_by_token_v4.md): Solana API endpoint for fetching top token traders by realized and unrealized PnL, including trade volumes, counts, and wallet addresses. - [Trade Volume Timeseries](https://docs.vybenetwork.com/reference/get_trade_aggregated_timeseries_v4.md): Solana API endpoint for fetching token trade volume over time. Track buy and sell volumes or counts hourly or daily to analyze trading trends. - [Token Traders Activity](https://docs.vybenetwork.com/reference/get_trades_tokens_activity_summary_v4.md): Solana API endpoint for fetching token trader activity. Track buy and sell volumes, PnL (profits/losses) and win/loss to identify active traders and whales. - [Trade History](https://docs.vybenetwork.com/reference/get_trade_data_program_v4.md): Solana API endpoint for fetching trade history, volume, and metrics for any supported Solana AMM or DEX program, filtered by program. - [Transfer History](https://docs.vybenetwork.com/reference/get_token_transfers_v4.md): Solana API endpoint for fetching historical Token-2022 and SPL transfers by mint, sender, receiver, amount, and time range for analytics and whale tracking. - [Build Swap](https://docs.vybenetwork.com/reference/do_swap_proxy.md): Solana API endpoint for building token swaps. Build and return unsigned transactions for direct swaps on DEXs like Pump.fun, Raydium and more. - [Swap Quote](https://docs.vybenetwork.com/reference/get_swap_quote_proxy.md): Solana API endpoint for fetching Solana swap quotes. Returns expected output, price impact, slippage bounds, and full route plan for any token pair. - [Labeled Accounts](https://docs.vybenetwork.com/reference/get_known_accounts_v4.md): Solana API endpoint for fetching labeled wallets, programs and accounts. Filter by CEX, KOL, VC, entity name, or address with 10000+ labeled entities. - [Top Traders](https://docs.vybenetwork.com/reference/get_top_traders_v4.md): Solana API endpoint for fetching top traders on Solana ranked by PnL, win rate and volume. Power copy trading leaderboards and smart money discovery tools. - [Wallet Counterparties](https://docs.vybenetwork.com/reference/get_wallet_counterparties_v4.md): Solana API endpoint for fetching wallet counterparties. Analyze transfer relationships, volumes and interactions with wallets or programs over time. - [DeFi Positions](https://docs.vybenetwork.com/reference/get_defi_accounts_v4_proxy.md): Solana API endpoint for fetching DeFi positions by wallet. Returns LP, lending, and staking data across 50+ protocols via a unified proxy endpoint. - [Transfer Volume USD](https://docs.vybenetwork.com/reference/get_transfer_volume_usd_v4.md): Solana API endpoint for fetching wallet transfer volume in USD. Get sent and received totals to analyze fund flow, activity levels and net movement. - [Wallet PnL](https://docs.vybenetwork.com/reference/get_wallet_pnl_v4.md): Solana API endpoint for fetching wallet PnL with realized and unrealized profit, win rate, trade volume and per-token performance across vetted markets. - [Wallet PnL Timeseries](https://docs.vybenetwork.com/reference/get_pnl_timeseries_v4.md): Solana API endpoint for fetching wallet PnL timeseries data. Returns realized PnL by day, week or month for tracking wallet performance over time. - [Token Account History](https://docs.vybenetwork.com/reference/get_wallet_tokens_ts_raw_v4.md): Solana API endpoint for fetching raw wallet token account history with unprocessed balance snapshots for custom time series analysis and advanced processing. - [Token Accounts (Batch)](https://docs.vybenetwork.com/reference/post_wallet_tokens_ts_raw_many_v4.md): Solana API endpoint for fetching multi-wallet token account history with raw balance snapshots for custom analytics and unaggregated time-series data. - [Token Balances](https://docs.vybenetwork.com/reference/get_wallet_tokens_v4.md): Solana API endpoint for fetching wallet token balances with SPL and Token-2022 assets, USD values, price changes, staking balances, and full metadata. - [Token Balances (Batch)](https://docs.vybenetwork.com/reference/post_wallet_tokens_many_v4.md): Solana API endpoint for fetching batch wallet token balances with SPL and Token-2022 assets, USD values, staking data, and aggregated portfolio metrics. - [Token Balance History](https://docs.vybenetwork.com/reference/get_wallet_tokens_ts_v4.md): Solana API endpoint for fetching wallet token balance history with daily, weekly, or monthly portfolio snapshots and USD valuations over time series. - [Token Balance History (Batch)](https://docs.vybenetwork.com/reference/post_wallet_tokens_ts_many_v4.md): Solana API endpoint for fetching historical token balance history with daily, weekly, or monthly portfolio snapshots and aggregated USD values. - [NFT Balances](https://docs.vybenetwork.com/reference/get_wallet_nfts_v4.md): Solana API endpoint for fetching wallet NFT balances and holdings with collection metadata, floor prices, attributes, and total portfolio value in SOL and USD. - [NFT Balances (Batch)](https://docs.vybenetwork.com/reference/post_wallet_nfts_many_v4.md): Solana API endpoint for fetching multi-wallet NFT balances with collection metadata, floor prices, and aggregated portfolio values across multiple wallets. - [Empty Accounts](https://docs.vybenetwork.com/reference/get_empty_accounts_v4.md): Solana API endpoint for fetching empty Token-2022 and SPL token accounts for a wallet. Returns results to identify accounts eligible for rent cleanup. - [Empty Accounts (Batch)](https://docs.vybenetwork.com/reference/get_empty_accounts_many_v4.md): Solana API endpoint for fetching empty Token-2022 and SPL token accounts across multiple wallets. Returns results for up to 10 wallets to identify accounts. - [Dust Accounts](https://docs.vybenetwork.com/reference/get_wallet_dust_accounts_v4.md): Solana API endpoint for fetching dust Token-2022 and SPL token accounts for a wallet. Returns reclaimable tokens to identify accounts for rent recovery. - [Dust Accounts (Batch)](https://docs.vybenetwork.com/reference/get_dust_accounts_many_v4.md): Solana API endpoint for fetching Token-2022 and SPL dust accounts across multiple wallets. Returns reclaimable tokens for up to 10 wallets, max 1000 accounts. - [Close Token Accounts](https://docs.vybenetwork.com/reference/close_token_accounts.md): Solana API endpoint for closing empty Solana token accounts. Build a transaction to close Token-2022 and SPL token accounts to recover locked SOL. - [Withdraw MEV](https://docs.vybenetwork.com/reference/withdraw_mev.md): Solana API endpoint for withdrawing MEV rewards on Solana. Build a transaction to claim accumulated MEV rewards from staking positions like Jito. ## Recipes - [Stream Pyth Oracle Prices on Solana](https://docs.vybenetwork.com/recipes/get-pyth-oracle-prices.md) - [Stream Real-Time Trades on Solana](https://docs.vybenetwork.com/recipes/get-real-time-trades.md) - [Get Started with Solana WebSockets ](https://docs.vybenetwork.com/recipes/get-started-with-vybe-websockets.md) - [Stream Real-Time Transfers on Solana](https://docs.vybenetwork.com/recipes/get-token-transfers.md) ## Changelog - [Vybe x402 API — Pay-Per-Call Access Now Live](https://docs.vybenetwork.com/changelog/vybe-x402-api-pay-per-call-access-now-live.md) - [Vybe Solana API MCP Server](https://docs.vybenetwork.com/changelog/vybe-solana-api-mcp-server-now-available.md) - [Vybe API v4.0.4 - 11 New Endpoints](https://docs.vybenetwork.com/changelog/vybe-api-v404-11-new-endpoints-for-token-analytics-wallet-intelligence.md) - [Vybe API v3 Endpoints Deprecated](https://docs.vybenetwork.com/changelog/v3-endpoints-deprecation-finalized.md) - [Vybe API v4.0.1 Now Live](https://docs.vybenetwork.com/changelog/api-v401-is-live-️deprecation-notice-api-v3-endpoints.md)