Skip to main content
The Aggregation API connects you to Bebop’s network of solvers who compete to find the best execution path across all available decentralized liquidity sources.

When to Use

  • You need broad token coverage including long-tail assets that private market makers may not quote
  • You prefer solver competition across all available on-chain liquidity rather than a single market maker’s inventory
  • You are willing to configure slippage tolerance in exchange for access to deeper, more diverse liquidity pools

At a Glance

TransportREST
AuthenticationAPI key
SigningEIP-712 (gasless) / none (self-execution)
On-chain txBebop submits (gasless) or you broadcast (self-execution)
GaslessYes (default)
ComplexityMedium - similar to RFQ, plus slippage configuration

How It Works

The Aggregation API supports two execution modes. Gasless is the default and recommended for most integrations.
Bebop handles on-chain submission. Your users sign a message but never pay gas.
StepActionYou sendYou get back
1Request a quoteToken pair, amountBest solver price, EIP-712 typed data (JamOrder)
2Sign the orderEIP-712 typed data → taker walletSignature
3Submit to BebopSignature → POST /jam/{network}/v2/orderQuote ID
4Poll for settlementQuote ID → GET /jam/{network}/v2/order-statusStatus: Settled
See Execution Modes for a detailed comparison.

Slippage Protection

The Aggregation API applies slippage protection to account for price movement between the quote and settlement. This is a key difference from the RFQ API, where quotes are firm with guaranteed execution and guaranteed fill. The slippage parameter on the quote request sets the maximum acceptable price deviation (0-50%, up to 2 decimal places). When omitted, the solver determines an appropriate slippage based on the pair and current market conditions. In the quote response:
FieldDescription
buyTokens.{addr}.amountExpected fill amount (best case)
buyTokens.{addr}.minimumAmountGuaranteed minimum after slippage
toSign.buyAmountsThe minimumAmount values - this is what you sign and what the contract enforces
The on-chain settlement reverts if the solver cannot deliver at least buyAmounts. Any amount above that minimum is surplus that benefits the taker.

Key Endpoints

EndpointPurpose
GET /jam/{network}/v2/quoteRequest a quote through solver competition
POST /jam/{network}/v2/orderSubmit a signed order for gasless settlement
GET /jam/{network}/v2/order-statusPoll settlement status

Next Steps

Quickstart

Make your first trade in 10-15 minutes.

Token Approvals

Set up ERC-20 approvals before trading.