platformFeeBps and feeAccount parameters as for any other token. See Platform Fees for the general model and Add Platform Fees for the recipe.
Direct Fill Fees
A direct fill honorsplatformFeeMode: the fee is collected in the input mint or the output mint.
Escrow Fill Fees
An escrow fill 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 order endpoint returns 400 with code platform_fee_account_not_specified.
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.
The app creates the fee account beforehand.