platformFeeBps and feeAccount parameters as for any other token. See Platform Fees for the general model and its code recipes.
Sync Execution Fees
Async response honors platformFeeMode: the fee is collected in the input mint or the output mint.
Async Execution Fees
Anasync order charges the platform fee when it fills:
- The fee is paid in USDC, the settlement mint, whatever
platformFeeModesays. - The fee goes to the exact
feeAccountfrom the request. - The fee is charged on the filled amount only.
Equity Fee Account Requirements
A nonzeroplatformFeeBps requires feeAccount on every equity request. Without it, the request fails. See Trading API errors.
When the fee is charged, feeAccount must exist, hold the fee mint, and not be frozen. If the account is missing, frozen, or holds another mint, the fill still executes and no fee is charged.
Create the fee account beforehand. Without it, the fill still executes and the platform fee is skipped.