跳至主要內容

交換 API

更新於
Aug 31, 2026

What Is the Swap API?

The Swap API is Quicknode's hosted Solana trading endpoint that bundles Jupiter swaps, Pump.fun trading, limit orders, trading WebSockets, and commission and referral webhooks. Quicknode operates and maintains it, so you do not run or scale your own server, and new markets and pools are available as soon as they launch.

The API covers five areas:


How to Access the Swap API

You can access the Swap API through a public or private endpoint:


  • Public endpoint: https://public.jupiterapi.com (more info at jupiterapi.com)
  • Private endpoints: available on the Quicknode dashboard or by adding Swap API to your Quicknode account from your dashboard.
Free plan endpoint

Users on the free plan receive the public Jupiter API endpoint (https://public.jupiterapi.com) rather than a private Quicknode endpoint. To receive a dedicated private endpoint with higher rate limits, upgrade to a paid Swap API plan on the Quicknode.

Some endpoints are available only to paid subscribers of the Swap API plan. The Paid column in each table below shows which endpoints require a paid plan.

Jupiter Swap API

The Jupiter Swap API is a decentralized exchange (DEX) aggregator that routes a trade between two SPL tokens across Solana liquidity venues to find the best available price. Use these endpoints to fetch prices and quotes, build and sign swap transactions or instructions, list tradable tokens, and monitor newly deployed pools.

Endpoint方法說明Paid
/價格GETReal-time price of SPL Tokens
/引用GETGet best price quote
/swapPOSTGenerates a Solana transaction from a quote*
/交換操作說明POSTGenerates Solana transaction instructions from a quote*
/節目編號對應標籤GETReturns a hash, whose key is the program id and value is the label
/tokensGETReturns a list of all the tradable mints.
/新泳池GETReturns recently deployed Solana liquidity pools and tokens

*Swap fees are included for Free Trial plans using these endpoints. Please visit JupiterAPI.com for more details.

資源

Pump.fun Trading API

The Pump.fun trading API lets you buy and sell Pump.fun tokens through Swap API using the same quote and swap flow as the Jupiter Swap endpoints. Use these endpoints to price a Pump.fun trade and build the transaction or instructions that execute it.

Endpoint方法說明Paid
/pump-fun/quoteGETGet the best priced quote on Pump.fun
/pump-fun/swapPOSTReturns a Solana transaction that you can use to swap on Pump.fun*
/泵-趣味/更換說明POSTReturns Solana transaction instructions that you can use to swap on Pump.fun

*Swap fees are included for Free Trial plans using these endpoints. Please visit JupiterAPI.com for more details.


Subscribing to either the Pump.fun API or the 交換 API gives you access to both APIs under a shared subscription. You receive one API key (for example, https://jupiter-swap-api.quiknode.pro/KEY), which works with both add-ons. You do not need to subscribe separately.

資源

Jupiter Limit Orders

Jupiter limit orders let you place an order that executes when the market reaches a price you set, instead of trading immediately at the current price. Use these endpoints to create, inspect, cancel, and list limit orders for a wallet, and to check the fee Jupiter charges to fulfill them.

Endpoint方法說明Paid
/限價單/建立POSTGet unsigned transactions needed to create a limit order
/限價單/{公鑰}GETReturns the details of a specific limit order
/限價單/取消POSTGet unsigned transactions needed to cancel a limit order
/限價單/開倉GETReturns a list of all open limit orders associated to a wallet
/限價單/手續費GETReturns the fee in basis points Jupiter charges to fulfill orders
/限價單/歷史紀錄GETReturns a list of all limit orders associated to a wallet

Trading WebSockets

Trading WebSockets stream notifications from the Jupiter API over a persistent /ws connection, so you receive updates without polling. Both entries share the /ws path and are distinguished by purpose: subscribe to the quote stream to receive best-price quotes as they change, or the swap stream to build a swap from a quote you receive.

Endpoint方法說明Paid
/wsWS (quote)Subscribe to real-time quote stream and receive best price updates as market conditions change
/wsWS (swap)Subscribe to swap stream and receive notifications with executable swap transactions from your received quotes

Commission and Referral Webhooks

Commission and referral webhooks send an HTTP POST to your endpoint when a referral or commission event happens, so your backend can react to it in real time. Use these payload specifications to handle referral account creation, token commission claims, and commission swaps.

Endpoint方法說明Paid
/webhooks/referral-accountPOSTSpecification of webhook for referral accounts creation
/webhooks/commission-claimPOSTSpecification of webhook for claiming token commissions
/webhooks/commission-swapPOSTSpecification of webhook for commission swaps