POST
/
quote
Create a market quote
curl --request POST \
  --url https://router-gateway-production.up.railway.app/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": "Bitcoin.BTC",
  "to": "Ethereum.USDC",
  "toAddress": "0x1111111111111111111111111111111111111111",
  "maxSlippage": "1.5",
  "fromAmount": "10",
  "toAmount": "100000",
  "amountFormat": "readable"
}
'
{
  "quoteId": "<string>",
  "from": "<string>",
  "to": "<string>",
  "expiry": "<string>",
  "expectedOut": "<string>",
  "maxSlippage": "<string>",
  "expectedSlippage": "<string>",
  "minOut": "<string>",
  "maxIn": "<string>",
  "amountFormat": "readable"
}

Body

application/json
from
string
required
Minimum string length: 1
Example:

"Bitcoin.BTC"

to
string
required
Minimum string length: 1
Example:

"Ethereum.USDC"

toAddress
string
required

Current Rust router quote bridge field. The upstream router requires a recipient address at quote time.

Minimum string length: 1
Example:

"0x1111111111111111111111111111111111111111"

maxSlippage
string
required
Minimum string length: 1
Example:

"1.5"

fromAmount
string
Minimum string length: 1
Example:

"10"

toAmount
string
Minimum string length: 1
Example:

"100000"

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

Response

Market quote created by the internal router API.

quoteId
string
required
from
string
required
to
string
required
expiry
string
required
expectedOut
string
required
maxSlippage
string
required
expectedSlippage
string
minOut
string
maxIn
string
amountFormat
enum<string>
default:readable
Available options:
readable,
raw