Skip to main content
This guide covers how to include a partner fee in your quote requests. Fee collection works differently depending on which API you use. For business context - fee models, payment terms, and practical considerations - see Monetize.
If you’ve agreed on a flat fee with Bebop, fees are applied automatically. You do not need to pass the fee parameter.

How fees work

Pass fee (in basis points) on any quote request. One basis point is 0.01%, so fee=25 means 0.25%. The fee is deducted from the buy side of the trade - the taker receives slightly less of the buy token. The taker’s sell amount stays the same. The two APIs differ in how fees are collected:

RFQ API

The RFQ API tracks fees off-chain. Pass fee (bps) on the quote request. Fees are converted to the chain’s native token and attributed to your integration via your API key.

Fee reconciliation

Use the Trade History API to monitor trades attributed to your integration at any time. Authenticate with your API key and the results are scoped to your integration. See Authentication for details. For a complete walkthrough including pagination, see the Trade History quickstart.

Aggregation API

The Aggregation API collects fees atomically as part of the trade transaction. Pass fee (bps) and fee_recipient (your wallet address) on the quote request. The settlement contract transfers the fee directly to the recipient on-chain when the trade settles. There is no reconciliation step - you receive the fee in your wallet with every trade.