Trading API
The swap trading feature provides two integration modes: Instruction Mode and Order Mode. Choose the mode that best fits your integration needs.
Instruction Mode
Integration flow:
- Get Quote —
/swapx/pro/quote - Get Calldata —
/swapx/pro/swap - Sign Transaction — completed on the client side
- Send to Chain — via
/swapx/pro/sendor directly to the node by the integrator
Characteristics:
- Offers higher integration flexibility
- Bitget Wallet returns the contract call’s
calldata(for Solana, returnsinstructionsandserialized transaction) - Integrators can wrap and customize on top of this
Supported capabilities: Same-chain swap
View Instruction Mode Documentation →
Order Mode
Integration flow:
- Get Quote —
/swapx/order/getSwapPrice - Create Order —
/swapx/order/makeSwapOrder - Sign Order — completed on the integrator’s side (e.g., self-hosted wallet / custodial signing flow)
- Submit Order —
/swapx/order/submitSwapOrder - Query Order —
/swapx/order/getSwapOrder
Characteristics:
- Bitget Wallet handles the complete order lifecycle
- Integrators do not need to maintain order state
Supported capabilities: Same-chain swap, Cross-chain swap, No-gas capability
Last updated on


