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.Documentation Index
Fetch the complete documentation index at: https://docs.bebop.xyz/llms.txt
Use this file to discover all available pages before exploring further.
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
Passfee (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.
| Parameter | Type | Range | Description |
|---|---|---|---|
fee | integer | 0-500 (0%-5%) | Partner fee in basis points. Deducted from the buy side of the trade. |
fee_recipient | string | - | Wallet address that receives the fee on-chain. Required when fee is set (Aggregation API only). |
| Aggregation API | RFQ API | |
|---|---|---|
| Collection | On-chain, atomic | Off-chain, monthly |
| Parameters | fee + fee_recipient | fee |
| Payout | Instant to your wallet | Monthly invoice via Bebop |
| Tracking | On-chain transfers | Trade History API |
RFQ API
The RFQ API tracks fees off-chain. Passfee (bps) on the quote request. Fees are converted to the chain’s native token and attributed to your integration via the source parameter.
Fee reconciliation
Use the Trade History API to monitor trades attributed to your integration at any time. Passsource with your partner identifier and authenticate with your API key. See Authentication for details on auth options.
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. Passfee (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.