POST
/
quote
Get a market quote
curl --request POST \
  --url https://router-gateway-v3-production.up.railway.app/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": "Bitcoin.BTC",
  "to": "Ethereum.USDC",
  "amountFormat": "readable",
  "orderType": "market_order",
  "fromAmount": "1",
  "returnFullRoute": true
}
'
{
  "quoteId": "00000000-0000-4000-8000-000000000001",
  "orderType": "market_order",
  "from": "Bitcoin.BTC",
  "to": "Ethereum.USDC",
  "expiry": "2026-05-04T12:10:00Z",
  "estimatedOut": "100000",
  "route": [
    {
      "venue": "cctp_standard",
      "from": "Ethereum.USDC",
      "to": "Base.USDC",
      "amountIn": "5",
      "providerAmountIn": "4.995",
      "providerAmountOut": "4.993",
      "amountOut": "4.992",
      "paymasterReimbursement": {
        "inputRetained": "0.005",
        "outputRetained": "0.001"
      }
    }
  ],
  "amountFormat": "readable",
  "expectedSwapTimeMs": 63000,
  "quoteCandidates": [
    "<unknown>"
  ]
}

Body

application/json
from
string
required
Required string length: 1 - 96
Example:

"Bitcoin.BTC"

to
string
required
Required string length: 1 - 96
Example:

"Ethereum.USDC"

amountFormat
enum<string>
default:readable
Available options:
readable,
raw
Example:

"readable"

orderType
enum<string>

Order type. Defaults to market_order.

Available options:
market_order,
market
Example:

"market_order"

fromAmount
string
Required string length: 1 - 96
Example:

"1"

returnFullRoute
boolean

When true, include the winning route rows in the response. Defaults to true.

Example:

true

Response

Market quote created by the internal router API.

quoteId
string
required
Example:

"00000000-0000-4000-8000-000000000001"

orderType
enum<string>
required
Available options:
market_order
Example:

"market_order"

from
string
required
Example:

"Bitcoin.BTC"

to
string
required
Example:

"Ethereum.USDC"

expiry
string
required
Example:

"2026-05-04T12:10:00Z"

estimatedOut
string
required
Example:

"100000"

route
object[]

Route legs describing the hop-by-hop execution of the winning quote path.

amountFormat
enum<string>
default:readable
Available options:
readable,
raw
Example:

"readable"

expectedSwapTimeMs
integer
Required range: x >= 0
Example:

63000

quoteCandidates
any[]

Debug-only quote candidate records returned when includeQuoteCandidates is true. Each record includes family, status, venues, latency_ms, and raw_quote for successful candidates.