Reference
Gets a quote for a swap between two tokens given an amount.
- If a
toaddress is provided, the swap execution data will be included in the response to be used to build the calldata to be executed on-chain. - Make sure to not tamper with the arguments provided in the response as it can lead to loss of funds.
- Only possible to trade whitelisted tokens specified on the
/tokensendpoint. Permissionless trading is coming soon. - Native token (BERA) is specified as zero address (
0x0000000000000000000000000000000000000000)
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
tokenInstringRequiredDefault:
Input token address
0x0000000000000000000000000000000000000000Example: 0x6969696969696969696969696969696969696969Pattern: ^0x(.*)$tokenOutstringRequiredDefault:
Output token address
0x6969696969696969696969696969696969696969Example: 0x6969696969696969696969696969696969696969Pattern: ^0x(.*)$amountany ofRequiredDefault:
Amount of input token
1000000000000000000string · numericOptional
numberOptionalDefault:
Amount of input token
1000000000000000000tostringOptionalExample:
Recipient address, if not set, calldata cannot be generated
0x6969696969696969696969696969696969696969Pattern: ^0x(.*)$slippagenumber · max: 1OptionalDefault:
Slippage tolerance in decimal between 0 (0%) and 1 (100%), default 0.02 (=2%)
0.02Example: 0.01poolBlackliststring[]OptionalExample:
Specify which pool addresses to not use on path finding. Otherwise all will be used by default. Becareful as some pools share the same poolAddress and the blacklist will ignore multiple pools
0x6969696969696969696969696969696969696969referralCodenumberOptional
Partner referral code
Responses
200Success
or
or
422Error
get
/v1/swapGet the list of tokens for trading on the Ooga Booga's Smart Order Routing
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200Success
addressstringRequiredExample:
EVM Address
0x6969696969696969696969696969696969696969Pattern: ^0x(.*)$namestringRequiredExample:
HoneysymbolstringRequiredExample:
HONEYdecimalsnumberRequiredExample:
18tokenURIstringOptionalExample:
https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.pngtagsstring[]Required
500Error
get
/v1/tokensGet all the liquidity sources available on the router to be used on swap
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200Success
const: KodiakV2Optional
const: KodiakV3Optional
const: HoneypotOptional
const: NativeWrapOptional
const: HoneySwapOptional
const: GrizzlyOptional
const: WasabeeOptional
const: BullaOptional
const: IzumiOptional
const: BeradromeOptional
const: BexOptional
const: BerpsOptional
const: BendOptional
const: MarginalOptional
const: MemeswapOptional
const: TwinOptional
const: BurrBearMultiStableOptional
const: BurrBearFXOptional
const: BurrBearGeneralizedOptional
const: WeberaOptional
const: BeraswapWeightedOptional
const: BeraswapComposableStableOptional
const: KodiakPandaOptional
const: HoldStationOptional
const: OrigamiIBGTVaultOptional
const: PendleSyOptional
const: PendlePtMarketOptional
const: OpenStateIBGTVaultOptional
const: IBeraOptional
const: ObricOptional
const: BrownFiOptional
const: BrownFiV2Optional
const: YBeraOptional
const: NablaOptional
const: WooFiOptional
const: CurveOptional
const: sWBeraOptional
const: EulerOptional
const: WinnieswapOptional
const: WBYUSDOptional
const: BurveOptional
const: pBERAOptional
const: stpBERAOptional
const: stLBGTOptional
const: wiBGTOptional
get
/v1/liquidity-sources200Success
Last updated