Output Token Mint. For native SOL output, use So11111111111111111111111111111111111111111.
Input Token Mint. For native SOL input, use So11111111111111111111111111111111111111111.
Amount of tokenIn in its base units
Optional. Slippage tolerance in basis points (bps). Must be between 0 and 10,000. Default is 50 bps (0.5%).
Optional. Comma-separated volume-based swap fees in parts per million (ppm). Must be provided together with swap_fee_recipient. Each entry must be between 0 and 1_000_000. A value of 0 disables that fee entry. Fees are applied sequentially on the same side: each entry is charged on the remaining amount after previous entries on that side have been deducted, and each fee amount is rounded up to the next base unit when needed (e.g. with swap_fee_ppm=50000,25000 both on the buy side, the second fee is 25000ppm of the amount remaining after the first fee, not of the original amount).
Optional. Comma-separated recipients for the swap fees. Must be provided together with swap_fee_ppm. The number of entries must match swap_fee_ppm. If the respective token for swap_fee_side is native SOL this must be an address, else a valid token account for that token mint.
Optional. Comma-separated fee sides for each fee entry. Supported values are buy and sell. This field may be omitted only when every fee uses the default buy side. When provided, the number of entries must match swap_fee_ppm.
Optional. Trade surplus cap in parts per million of the total realized trade size. Must be provided together with trade_surplus_token_account, or both fields must be omitted. A value of 0 disables trade surplus collection for the request. When 0x controls trade surplus collection, the request value is ignored and the configured 0x policy is applied instead. The transferred amount is capped relative to trade size.
Optional. Recipient that should receive trade surplus. Must be provided together with trade_surplus_cap_ppm, or both fields must be omitted. If the output token is native SOL this must be an address, else a valid token account for that token mint. When 0x controls trade surplus collection, the request value is ignored and the configured 0x recipient is used instead.