1
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
2
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.3
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
4
Check Fee in Response
Both
/order and /quote responses include platformFee information.Reading Platform Fee from Response
Reading Platform Fee from Response
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.