Reference
The tokenIn address
0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb
Pattern: ^0x(.*)$
The tokenOut address
0x0000000000000000000000000000000000000000
Pattern: ^0x(.*)$
The amount of tokenIn used in the swap
100000
The amount of tokenIn used in the swap
0
Example: 100000
The amount of tokenIn used in the swap
100000
The address to send the output to
0x009aB009A009Ab009A009aB009a009ab009A009a
Pattern: ^0x(.*)$
The maximum slippage allowed in the swap, in percentage, for example 0.05 for 0.05%. 0 < maxSlippage < 1
0.01
Example: 0.01
0
The maximum slippage allowed in the swap, in percentage, for example 0.05 for 0.05%. 0 < maxSlippage < 1
0
Example: 0.01
The maximum slippage allowed in the swap, in percentage, for example 0.05 for 0.05%. 0 < maxSlippage < 1
0.01
Example: 0.01
The referral code to use in the swap
1234567890
0
The referral code to use in the swap
0
Example: 1234567890
The referral code to use in the swap
1234567890
GET /meta/swap?tokenIn=0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb&tokenOut=0x0000000000000000000000000000000000000000&amount=100000&maxSlippage=0.01 HTTP/1.1
Host:
Accept: */*
[
{
"amountIn": "100000",
"aggregator": "oogaBooga",
"amountOut": "2450337340878051",
"minAmountOut": "2450337340878051",
"simulationAmountOut": "2450337340878051",
"priceImpact": -0.0004537756539829,
"fee": "100000",
"gas": "358339",
"value": "0",
"routerAddr": "0x5fbD1B5AA82d09359C05428647871fe9aDd3F411",
"calldata": "0x1234567890123456789012345678901234567890",
"status": "Success"
}
]
List of available aggregators
GET /meta/aggregators HTTP/1.1
Host:
Accept: */*
List of available aggregators
[
{
"id": "oogaBooga",
"displayName": "OOGA BOOGA",
"logoUrl": "https://assets-agg.oogabooga.io/oogaBooga.svg"
}
]
Establishes a Server-Sent Events (SSE) stream that provides real-time swap quotes from multiple aggregators. The stream emits various event types including connection status, quotes, errors, heartbeats, and completion notifications.
The tokenIn address
0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb
Pattern: ^0x(.*)$
The tokenOut address
0x0000000000000000000000000000000000000000
Pattern: ^0x(.*)$
The amount of tokenIn used in the swap
100000
The amount of tokenIn used in the swap
0
Example: 100000
The amount of tokenIn used in the swap
100000
The address to send the output to
0x009aB009A009Ab009A009aB009a009ab009A009a
Pattern: ^0x(.*)$
The maximum slippage allowed in the swap, in percentage, for example 0.05 for 0.05%. 0 < maxSlippage < 1
0.01
Example: 0.01
0
The maximum slippage allowed in the swap, in percentage, for example 0.05 for 0.05%. 0 < maxSlippage < 1
0
Example: 0.01
The maximum slippage allowed in the swap, in percentage, for example 0.05 for 0.05%. 0 < maxSlippage < 1
0.01
Example: 0.01
The referral code to use in the swap
1234567890
0
The referral code to use in the swap
0
Example: 1234567890
The referral code to use in the swap
1234567890
SSE stream of quote events
Server-Sent Events formatted string containing quote data
event: connected data: {"message":"Connected to quote stream","aggregators":["hyperBloom","oogaBooga"]}
GET /meta/stream/swap?tokenIn=0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb&tokenOut=0x0000000000000000000000000000000000000000&amount=100000&maxSlippage=0.01 HTTP/1.1
Host:
Accept: */*
SSE stream of quote events
event: connected
data: {"message":"Connected to quote stream","aggregators":["hyperBloom","oogaBooga"]}
Last updated