Trade Deep Links

When retrieving quotes from the Router, you will also receive a trade link. You may use this link to refer users to the official Bebop interfaces, where they can complete a trade using the requested quote parameters.

Check that you provide the source parameter to router quote requests. This ensures that your trade link correctly transfers your partner ID to the Bebop trading interface.

The link is constructed with query parameters as follows:

Parameter
Description
Example

network

The network of the trade

ethereum, arbitrum, polygon, bsc

buy

The symbol or contract address of the token to buy. For least ambiguity use contract address. Can contain multiple, separated by comma

USDC, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

sell

The symbol or contract address of the tokens to sell. For least ambiguity use contract address. Can contain multiple, separated by comma

USDC, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

sellAmounts

The amounts of buy tokens to sell

1250.75

source

The origin of the trade

myDAO

Example

https://beta.bebop.xyz/trade?network=ethereum&buy=0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599&sell=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&sellAmounts=1

Last updated