What you’ll build: A complete trade flow from quote request to settlement.Time required: 10-15 minutesPrerequisites: Basic understanding of EVM wallets and token approvals.
1. Discover Supported Chains and Tokens
Before requesting quotes, identify which chains and tokens Bebop supports. This information changes as new assets are added, so your integration should refresh it regularly.Get Supported Chains
Retrieve the supported blockchains:/pmm/ethereum/v3/quote).
Get Tokens for a Chain
Once you know which chain you want to trade on, retrieve the list of supported tokens:2. Request a Quote
Quotes return the exact price and settlement parameters for your trade. Regular quotes expire typically within 60-75 seconds (depending on the blockchain), so request them when you’re ready to execute.Authentication
You can try the API in demo mode, however, we encourage you to request an API key to get production-grade pricing and higher limits.Basic Quote Request
Swap and send:
taker_address signs the order; the bought tokens go to receiver_address. receiver_address is optional and defaults to taker_address. Works in both gasless and self-execution modes.Choosing sell_amounts vs buy_amounts
Choosing sell_amounts vs buy_amounts
- Use
sell_amountswhen you know exactly how much you want to sell (e.g., “Sell 1 WETH”) - Use
buy_amountswhen you know exactly how much you want to receive (e.g., “Buy 5000 USDC”)
Converting human amounts to base units
Converting human amounts to base units
1500000000000000000Understanding the Response
3. Sign & Submit
With self-execution, the/v3/quote response includes a tx object ready to submit. You add your nonce and chainId, sign the transaction, and broadcast on-chain. There’s no separate order submission step.
Partial fills are also supported. See the Partial Fills guide for details.
tx object from the quote response contains the complete settlement calldata. You just need to add your nonce and chainId, then sign and submit.
For gasless execution, you sign EIP-712 typed data and POST to
/v3/order instead. See the EIP-712 order type schemas for the full type definitions (SingleOrder, MultiOrder, AggregateOrder).Next Steps
Ready to explore more? Dive into the guides:Token Approvals
Manage token approvals for trading.
Gasless Execution
Let Bebop submit on-chain for your users - ideal for wallets and super-apps.
Partial Fills
Combine market maker and AMM liquidity.
Multi-Token Trades
Swap multiple tokens in a single transaction.