POST
/
order
/
market
Create a market order from a quote
curl --request POST \
  --url https://router-gateway-production.up.railway.app/order/market \
  --header 'Content-Type: application/json' \
  --data '
{
  "quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "fromAddress": "<string>",
  "toAddress": "<string>",
  "refundAuthorizer": "<string>",
  "refundAddress": "<string>",
  "integrator": "<string>",
  "idempotencyKey": "<string>",
  "cancelAfter": "2023-11-07T05:31:56Z",
  "refundMode": "evmSignature",
  "amountFormat": "readable"
}
'
{
  "orderId": "<string>",
  "orderAddress": "<string>",
  "amountToSend": "<string>",
  "quoteId": "<string>",
  "from": "<string>",
  "to": "<string>",
  "status": "<string>",
  "expiry": "<string>",
  "expectedOut": "<string>",
  "maxSlippage": "<string>",
  "expectedSlippage": "<string>",
  "minOut": "<string>",
  "maxIn": "<string>",
  "amountFormat": "readable",
  "refundMode": "evmSignature",
  "refundAuthorizer": "<string>",
  "refundToken": "<string>"
}

Body

application/json
quoteId
string<uuid>
required
fromAddress
string
required
Minimum string length: 1
toAddress
string
required
Minimum string length: 1
refundAuthorizer
string | null
required
Minimum string length: 1
refundAddress
string
Minimum string length: 1
integrator
string
Minimum string length: 1
idempotencyKey
string
Minimum string length: 1
cancelAfter
string<date-time>
refundMode
enum<string>
default:evmSignature
Available options:
evmSignature,
token
amountFormat
enum<string>
default:readable
Available options:
readable,
raw

Response

Market order created by the internal router API.

orderId
string
required
orderAddress
string
required
amountToSend
string
required
quoteId
string
required
from
string
required
to
string
required
status
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
refundMode
enum<string>
default:evmSignature
Available options:
evmSignature,
token
refundAuthorizer
string | null
refundToken
string