curl --request GET \
--url https://api.velora.xyz/prices{
"priceRoute": {
"blockNumber": 123,
"network": 1,
"srcToken": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"srcDecimals": 123,
"srcAmount": "1000000000000000000",
"destToken": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"destDecimals": 123,
"destAmount": "1000000000000000000",
"bestRoute": [
{}
],
"gasCostUSD": "<string>",
"gasCost": "<string>",
"version": "<string>",
"contractAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"tokenTransferProxy": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"contractMethod": "<string>",
"partnerFee": 123,
"srcUSD": "<string>",
"destUSD": "<string>",
"partner": "<string>",
"maxImpactReached": true,
"hmac": "<string>"
}
}Get Market price route
Get a Market route from the Velora aggregator.
curl --request GET \
--url https://api.velora.xyz/prices{
"priceRoute": {
"blockNumber": 123,
"network": 1,
"srcToken": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"srcDecimals": 123,
"srcAmount": "1000000000000000000",
"destToken": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"destDecimals": 123,
"destAmount": "1000000000000000000",
"bestRoute": [
{}
],
"gasCostUSD": "<string>",
"gasCost": "<string>",
"version": "<string>",
"contractAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"tokenTransferProxy": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"contractMethod": "<string>",
"partnerFee": 123,
"srcUSD": "<string>",
"destUSD": "<string>",
"partner": "<string>",
"maxImpactReached": true,
"hmac": "<string>"
}
}GET /v2/quote with mode=ALL; see
Trading modes.Query Parameters
Source token address. A token symbol listed in /tokens can be used instead. Example uses ETH.
EVM address (20 bytes, hex-encoded with 0x prefix). Use the mixed-case placeholder 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native ETH.
^0x[a-fA-F0-9]{40}$"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Source token decimals. Can be omitted if a token symbol is used in srcToken.
Destination token address. A token symbol listed in /tokens can be used instead. Example uses USDC.
EVM address (20 bytes, hex-encoded with 0x prefix). Use the mixed-case placeholder 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native ETH.
^0x[a-fA-F0-9]{40}$"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Destination token decimals. Can be omitted if a token symbol is used in destToken.
srcToken amount (SELL) or destToken amount (BUY), in WEI/raw units. Token amount in WEI / raw units (no decimal point). Serialized as a string to preserve precision for amounts that exceed JavaScript Number range.
"1000000000000000000"
SELL, BUY EVM chain ID. Default: 1 (Mainnet). Market uses network for this parameter; Delta uses chainId — both are EVM chain IDs.
EVM chain ID. Supported values today include 1 (Mainnet), 10 (Optimism), 56 (BSC), 137 (Polygon), 8453 (Base), 42161 (Arbitrum), 43114 (Avalanche), 100 (Gnosis). The set is open — call GET /chains for the live list.
1
If true, the response includes price quotes from other exchanges in an others object.
Comma-separated list of DEXs to include.
Comma-separated list of DEXs to exclude.
Exclude all RFQ liquidity from pricing.
Comma-separated list of contract methods to include.
Comma-separated list of contract methods to exclude.
End-user wallet address.
EVM address (20 bytes, hex-encoded with 0x prefix). Use the mixed-case placeholder 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native ETH.
^0x[a-fA-F0-9]{40}$"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Dash-separated list of tokens for the price route. Max 4 tokens.
Partner string. Defaults to anon which charges 1bps fee for all swaps.
Bypass API price-impact check (default = 15%). Value in %.
Receiver wallet address. Omit when swapping from/to the same account.
EVM address (20 bytes, hex-encoded with 0x prefix). Use the mixed-case placeholder 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native ETH.
^0x[a-fA-F0-9]{40}$"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Tax in basis points charged on srcToken transfers.
Tax in basis points charged on destToken transfers.
Tax in BPS charged only on DEX swaps for srcToken.
Tax in BPS charged only on DEX swaps for destToken.
Protocol version. Always pass 6.2 (Augustus v6.2, what these docs cover); when omitted the API falls back to the legacy v5 router.
5, 6.2 Exclude contract methods that don't support the fee model.
Skip the USD-price availability check.
Response
Market route. Calldata-ready against Augustus v6.2 when version=6.2.
GET /prices envelope.
Market route block. Calldata-ready against Augustus v6.2 when version=6.2.
Show child attributes
Show child attributes
Was this page helpful?