Mass Quote

Submit up to 20 cancel-replace/pure-place legs for one symbol. There is no VIP-tier gate.

A batch costs 5 rate-limit credits.

Endpoint

POST /orders/massQuote

Auth: bearer plus the one-shot HPKE request envelope. The logical schema below is encrypted by the SDK.

Request Body

FieldTypeRequiredDescription
symbol_idintegerYesOne symbol for the entire batch
legsarrayYesCancel-replace or pure-place legs (max 20)
correlation_idstringYesBatch correlation id
stp_modestringNoUppercase STP enum applied to every leg
post_onlybooleanYesReject crossing replacement legs when true

Each leg:

FieldTypeRequiredDescription
cancel_order_idstring/nullNoExisting venue order; null/0 means pure place
sidestringYesBUY or SELL
pricedecimal stringYesNew order price
quantitydecimal stringYesNew order quantity
time_in_forcestringNoGTC (default) or GTD. IOC / FOK not permitted.
expiry_timeintegerFor GTDNanosecond epoch
correlation_idstringYesLeg correlation id

Example

curl -X POST the REST origin/api/v1/orders/massQuote \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "symbol_id": 1,
    "legs": [
      { "cancel_order_id": "1875340519620476928", "side": "BUY", "price": "94800", "quantity": "0.5", "time_in_force": "GTC", "correlation_id": "101" },
      { "cancel_order_id": null, "side": "SELL", "price": "95100", "quantity": "0.4", "time_in_force": "GTD", "expiry_time": 1839975000000000000, "correlation_id": "102" }
    ],
    "correlation_id": "100",
    "stp_mode": "CANCEL_TAKER",
    "post_only": true
  }'

Response

The HTTP response is the standard API envelope containing an encrypted mass-quote ACK. Decrypt it with the SDK; the edge does not expose plaintext per-leg results.

Rate Limiting

Mass quote uses the order-generating bucket and costs 5 credits per batch. See Rate Limits.

Notes