During development, you can use the developer endpoints without an API key. For production use, you’ll need an API key to avoid rate limits.
Fixed Fees with platformFeeBps
Use
platformFeeBps to specify a fixed fee in basis points. Control which token the fee is collected from using platformFeeMode.Basic Example
Basic Example
Collect Fee from Input Mint
Collect Fee from Input Mint
Other Endpoints
Other Endpoints
Dynamic Fees with platformFeeScale
For outcome token trades, use
platformFeeScale instead of platformFeeBps. The fee is calculated dynamically based on market probability.Dynamic Fee Example
Dynamic Fee Example
For outcome token trades,
platformFeeMode is ignored and the fee is always
collected in the settlement
mint. See
the Platform Fees Overview for details on
the dynamic fee formula.Fee Account Setup
The
feeAccount parameter is required and must match the fee mint. You can use referralAccount to auto-create the fee account if it doesn’t exist.Auto-Create with Referral Account
Auto-Create with Referral Account
Related Resources
Platform Fees Overview
Learn about the theory behind platform fees and the differences between fixed and dynamic fees.
Order Endpoint Reference
Complete API reference for the /order endpoint.
Quote Endpoint Reference
API reference for the /quote endpoint.
Intent Endpoint Reference
API reference for the /intent endpoint.