API REFERENCE V3
Advanced orders
Define the condition. Let the API manage execution.
Persistent limits, stops, schedules and linked orders — with explicit controls, bounded history and REST or WebSocket access.
On this page
How advanced orders execute
Build persistent limits, conditional orders, execution schedules and linked orders directly through the API. An LLM is not required. Once accepted, the API manages the order even when the trading screen is closed.
The API holds the parent strategy and submits individual child orders through the existing quote-execution path when its conditions are met. Triggers and schedules are not resting orders in a public exchange order book. The parent can fill across multiple child executions. An acknowledgement means the parent was accepted, not that a trade filled.
Requires liquidity mode and LIQUIDITY_API_ADVANCED_ORDERS_ENABLED=true, a supported USD liquidity market, and the account owner's saved enableDataSharing=true consent. Existing account permissions and restrictions still apply. An unavailable route may return 404 or 503. This reference does not indicate that a particular deployment has enabled the feature.
This is an additive reference. The regular V2 order documentation remains the contract for immediate MARKET and LIMIT orders. Use /api/v2 for regular single-order placement, status and cancellation; managed advanced single-parent placement also enters through POST /api/v2/order and must include apiManaged: true. The /api/v3 routes below provide linked-order lists and managed-parent collection/history. A plain LIMIT with GTC alone does not select an API-managed persistent limit.
Create a persistent limit
Use POST /api/v2/order with apiManaged: true and an advanced type. Single-order placement uses V2; V3 adds linked-order and managed-history operations. This requests 0.001 BTC at a maximum price of $60,000, or $60 notional. Prices are illustrative, not live quotes.
{
"symbol": "BTC/USD",
"side": "BUY",
"type": "SYNTHETIC_LIMIT",
"apiManaged": true,
"quantity": "0.001",
"price": "60000",
"timeInForce": "GTC",
"newClientOrderId": "btc-limit-001"
}Alternatively use type: "LIMIT" with apiManaged: true. For V2 single-order REST placement, send X-MBX-APIKEY and a signature header over the exact raw query plus UTF-8 JSON body, and include a fresh nonce in the body. The transport comparison below distinguishes this from timestamp-based V2 GET queries and WebSocket requests.
- Resolve the market and convert size to base-asset units.
- Validate notional and precision; retain a stable client ID for each logical order.
- Save the returned parent orderId and inspect both status and apiState.
- Follow private order updates and reconcile with the bounded managed-order list.
Always send apiManaged: true for a managed single-parent request. Without that flag, a disabled advanced-order deployment can pass a named type through its legacy decoder. Confirm apiManaged: true in the response before treating the request as a managed parent.
Request JSON examples show business fields. Add authentication fields for the chosen transport. No example places an order automatically.
Single-order queries (V2)
Quote.Trade /api/v2 is the canonical single-order route group for regular orders and API-managed single-parent orders. The V2 order-query reference covers GET /api/v2/order, GET /api/v2/allOrders, client order ID lookup, canceled/rejected states, recorded reasons, signing and WebSocket methods. Quote.Trade /api/v3 provides linked-order lists, managed-parent collection/history and prompt extensions; it does not replace V2 single-order placement or identity lookup.
REST endpoints
Production base URL: https://app.quote.trade. Use the configured host for another environment. All routes below are authenticated and account-scoped.
| Method | Path | Purpose |
|---|---|---|
POST | /api/v3/orderList/oco | Create an OCO pair. |
POST | /api/v3/orderList/oto | Create an entry with one pending order. |
POST | /api/v3/orderList/otoco | Create an entry with a pending OCO pair. |
POST | /api/v3/order/oco | Legacy flat-field OCO alias. |
GET | /api/v3/orderList | Read one linked list. |
DELETE | /api/v3/orderList | Cancel one linked list. |
GET | /api/v3/openOrderList | Read active linked lists. |
GET | /api/v3/allOrderList | Read linked lists including history. |
GET | /api/v3/openOrders | Page API-managed parents across all markets. |
DELETE | /api/v3/openOrders | Cancel pending API-managed orders across all markets. |
Single-parent creation uses POST /api/v2/order; query it with GET /api/v2/order and cancel it with DELETE /api/v2/order, using its identity and the matching transport authentication. There is no new POST /api/v3/order route in this implementation.
account defaults to the authenticated owner. Another account requires delegated permission. If supplied, userId must identify the authenticated actor, not a different user. Both managed openOrders methods require apiManaged=true. API keys need READ permission for queries and TRADE permission for placement or cancellation. The configured per-method endpoint allowlist must also permit the action; for managed history this is managedOpenOrders in GET, and for cancel-all it is cancelManagedOrders in DELETE.
Prompt API endpoints (V3)
The prompt service has its own 25 REST routes under /api/v3/prompt/. These routes provide research, connection management and order previews; none submits, cancels or changes a trading order. Submit an approved draft separately through the order endpoints documented above. Each REST suffix also has a signed WebSocket method named prompt.<suffix>, for example prompt.chat or prompt.marketChart.
All routes require signed authentication, account access, permitted IP/region, an enabled prompt service and the corresponding prompt.<suffix> entry in the GET or POST allowlist. API keys require READ permission in addition to any extra permission below. Provider connection changes require the built-in worker; chat requires a configured provider and the account's applicable data-sharing consents. Reading this reference does not mean these routes are enabled on every deployment.
Prompt authentication and request format
For REST, send X-MBX-APIKEY and a hexadecimal HMAC-SHA256 signature header over the exact raw query bytes followed immediately by the exact UTF-8 body bytes. Include timestamp in milliseconds and optionally recvWindow (whole milliseconds, default 5000, range 1–60000). Prompt requests validate timestamp freshness independently; the advanced-order REST nonce limitation does not apply to this prompt handler.
GET fields go in the query; POST uses Content-Type: application/json. Send each field once. Unknown fields, duplicates, nulls and nested JSON values are rejected. Fields such as arguments and preview must be scalar JSON strings when carrying structured content. Maximum query length is 4096 characters and maximum body size is 98,304 bytes. Send llmApiKey only inside the signed JSON body, never in a URL. WebSocket requests use the existing signed envelope with apiKey, timestamp and signature inside flat params.
The table lists accepted business fields, not a claim that every field is required. Authentication fields are additional. Discover available research series and indicator definitions before constructing a research request. Chart/research availability depends on local history and configured data sources.
| Method | Path | Purpose / extra permission | Accepted business fields |
|---|---|---|---|
GET | /api/v3/prompt/marketChart | Read the selected spot reference chart. | id, symbol, exchange, product, interval, endTime, limit |
GET | /api/v3/prompt/research | Read market-data research and calculated studies. | id, symbol, exchange, product, interval, startTime, endTime, limit, studies, benchmarkId, warmup, causal, gapPolicy, profile |
GET | /api/v3/prompt/researchSeries | Discover available research series. | symbol, exchange, product, interval, offset, limit |
GET | /api/v3/prompt/researchIndicators | List supported research indicators. | None |
GET | /api/v3/prompt/candles | Read Quote.Trade trade candles. | symbol, interval, startTime, endTime, limit |
GET | /api/v3/prompt/candleIndicators | Calculate indicators from Quote.Trade trade candles. | symbol, interval, indicator, period |
GET | /api/v3/prompt/providers | List provider connection choices. | None |
GET | /api/v3/prompt/connection | Read the current account's connection selection. | None |
GET | /api/v3/prompt/oauthStatus | Read the account-owned login job. | oauthId |
GET | /api/v3/prompt/capabilities | Read supported tools and preview-only capabilities. | None |
GET | /api/v3/prompt/status | Read prompt runner and market-data availability. | None |
GET | /api/v3/prompt/settings | Read saved account settings and limits. | None |
GET | /api/v3/prompt/conversations | Page conversations, newest first; limit defaults to 20, maximum 50. | beforeTurnId, limit |
GET | /api/v3/prompt/messages | Read messages after the cursor; limit defaults to 20, maximum 50. | conversationId, afterTurnId, limit |
GET | /api/v3/prompt/usage | Read prompt and provider usage for a time range. | startTime, endTime |
POST | /api/v3/prompt/connect | Save an account-owned provider API-key connection. Session or TRADE permission required. | provider, model, llmApiKey |
POST | /api/v3/prompt/disconnect | Disconnect the selected account connection. Session or TRADE permission required. | None |
POST | /api/v3/prompt/oauthStart | Queue an account-owned login job. Session or TRADE permission required. | requestId, model |
POST | /api/v3/prompt/oauthCancel | Cancel an account-owned login job. Session or TRADE permission required. | oauthId |
POST | /api/v3/prompt/chat | Queue a preview-only conversation turn; does not submit an order. | requestId, conversationId, message |
POST | /api/v3/prompt/consent | Update external-AI data-sharing consent. Session or TRADE permission required. | enableAiDataSharing |
POST | /api/v3/prompt/limits | Administrator only: update an account's prompt limits. Not a customer trading route. | userId, requestsPerMinute, burstCapacity, maxConcurrentRequests, requestsPerDay, maxToolCallsPerTurn, maxProviderCallsPerMinute, maxProviderCallsPerDay |
POST | /api/v3/prompt/claim | Restricted worker route: claim queued work. | claimId |
POST | /api/v3/prompt/context | Restricted worker route: read context for a claimed turn. | claimId, turnId, callId, tool, arguments |
POST | /api/v3/prompt/complete | Restricted worker route: finish a claimed turn. | claimId, turnId, failed, answer, preview, model, providerRequestId, inputTokens, cachedInputTokens, outputTokens, reasoningOutputTokens |
conversations uses a nonnegative beforeTurnId cursor (0 starts at the newest conversation); pass the last returned lastTurnId to continue toward older conversations. messages accepts afterTurnId of 0 or greater for ascending turn IDs, or -1 for the latest page returned in ascending order. Both limits range from 1 to 50. A chat message is limited to 8192 characters. Keep the same requestId when reconciling an uncertain chat submission. Do not interpret an accepted chat as a completed answer or a placed order; read its conversation messages for progress and the resulting preview.
claim, context and complete require the explicitly configured, dedicated READ-only connector key. That key cannot call ordinary prompt routes. limits is restricted to the administrator. Do not grant worker or administrator access to a browser client.
Prompt response envelope
Handler success returns {"status":200,"result":{...},"retryAfterMillis":0}; the result shape depends on the operation. Handler errors return status, an error object containing code and msg, and retryAfterMillis. A 429 rate limit uses code -1003; other prompt handler failures use -2010 with the explanatory message. Gateway, servlet and region failures can use a different body or no JSON body; check HTTP status, Content-Type and the parsed error before consuming result.
The servlet also maps legacy prefixes /api/prompt/ and /liquidityApi/prompt/. Use the canonical V3 prefix for new integrations. Route presence and provider configuration are separate from a provider's authorization or account entitlement; a connection job never authorizes an order.
Sign V3 REST requests
Send X-MBX-APIKEY and signature headers. The signature is hexadecimal HMAC-SHA256 of the exact raw query string (without ?) followed immediately by the exact UTF-8 body bytes, using the API secret. Do not insert a separator.
| Request shape | Bytes to sign |
|---|---|
| Query only | The query exactly as transmitted, preserving order and encoding. |
| Body only | The exact minified JSON body bytes. |
| Query and body | Raw query bytes concatenated with body bytes. |
These are the scoped V3 servlet rules. Do not copy the older generic GET example that signs a JSON-encoded path. Use Content-Type: application/json for JSON bodies. Put each parameter in one place; fields must be scalar, with no nested objects, arrays or null values. Maximum body: 32,768 bytes.
Authentication differs by transport
| Transport | Signing and timing |
|---|---|
| V2 GET order status/history | X-MBX-APIKEY; HMAC over the URL-encoded query excluding signature. Signature may be a query parameter or header. Current timestamp and recvWindow are validated. |
| V2 single-order POST/DELETE; V3 advanced-order REST | X-MBX-APIKEY and signature headers; HMAC over raw query followed by exact JSON body. Existing nonce convention applies; see the replay-protection limitation below. |
| Signed WebSocket methods | apiKey, timestamp and signature inside params. Sign alphabetically sorted decoded key=value pairs, excluding signature; timestamp/recvWindow are validated. |
The current User.validateNonce implementation accepts every nonce. The V3 advanced-order REST handler does not independently enforce timestamp/recvWindow freshness. The separate prompt handler does validate timestamp/recvWindow. A signature authenticates the payload but this implementation does not make a signed request expire or enforce one-time use. Do not rely on nonce for replay protection or idempotency. Signed WebSocket requests and the V2 GET queries have timestamp checks; enabling equivalent REST replay protection requires a separate API change.
Use a fresh nonce according to the existing REST client convention. Nonce alone is not an idempotency guarantee. Retain client IDs and reconcile uncertain results before retrying.
import hashlib
import hmac
import os
import time
import urllib.parse
# Read-only request signing. This example sends no network request.
query = urllib.parse.urlencode({
"apiManaged": "true", "includeHistory": "true",
"newestFirst": "true", "limit": "50", "afterOrderId": "0",
"nonce": str(time.time_ns()),
})
body = b""
signature = hmac.new(
os.environ["QUOTE_API_SECRET"].encode("utf-8"),
query.encode("utf-8") + body,
hashlib.sha256,
).hexdigest()
url = "https://app.quote.trade/api/v3/openOrders?" + query
headers = {"X-MBX-APIKEY": os.environ["QUOTE_API_KEY"],
"signature": signature}For a body-only V3 POST or DELETE, use an empty query and sign the exact minified body sent. Never log your secret or signed credentials.
Size, precision and shared fields
The minimum is a USD value, not a fixed 0.001 BTC or 0.01 ETH lot. For example, 0.006 ETH at $2,500 is $15. Do not silently increase a user's requested size.
Admission uses the limit price when present, otherwise the stop price, otherwise the current quote. Opening TWAP slices and iceberg display quantities must also meet the minimum. Children are checked again at the executable quote. Reduce-only orders are exempt from the opening-notional minimum but still need valid precision, permissions and reducible exposure.
| Field | Contract |
|---|---|
symbol | Supported canonical USD liquidity instrument, e.g. BTC/USD. Aliases resolve to that instrument. Staking and conversion instruments are excluded. |
side | BUY or SELL. |
quantity | Positive base-asset quantity, up to 6 decimal places. Send a decimal string, not scientific notation. |
price, stopPrice | Limit and trigger prices in USD per unit, up to 8 decimal places. Send decimal strings. |
reduceOnly | Boolean requesting reduction of existing exposure; server validation still applies. |
newClientOrderId | 1–36 characters: letters, digits, underscore, period or hyphen. The aqc- prefix is reserved for children. |
timeInForce | Parent lifetime: GTC or GTD. GTD requires a future expireTime or goodTillDate in epoch milliseconds. Child policy is returned separately. |
expireTime / goodTillDate | Future expiry in epoch milliseconds; supply one consistent value. |
icebergQty | Positive display/child quantity, at most the parent quantity, up to 6 decimals. Opening display notional must meet the minimum. |
An accepted order can later have an unexecutable residual below the minimum. It is not enlarged automatically and may expire. Decimal precision and minimum notional are separate checks.
Order types and triggers
| Order | Type / intent | Additional fields |
|---|---|---|
| Persistent limit | SYNTHETIC_LIMIT | quantity, price; or LIMIT with apiManaged=true. |
| Stop market | STOP_MARKET | stopPrice. Aliases: STOP, STOP_LOSS. |
| Stop limit | STOP_LOSS_LIMIT | stopPrice, price. Alias: STOP_LIMIT. |
| Take-profit market | TAKE_PROFIT_MARKET | stopPrice. Alias: TAKE_PROFIT. |
| Take-profit limit | TAKE_PROFIT_LIMIT | stopPrice, price. |
| Trailing market | TRAILING_STOP_MARKET | One trailing distance, optional activation stopPrice. Alias: TRAILING_STOP. |
| Trailing limit | TRAILING_STOP_LIMIT | Trailing distance with fixed price cap or dynamic limitOffset. |
| Synthetic maker | LIMIT_MAKER / POST_ONLY | price; or LIMIT with GTX/POST_ONLY. No exchange-native queue or maker-fee guarantee. |
| Iceberg | ICEBERG | price, icebergQty; or icebergQty on a supported parent. |
| Schedules | TWAP, VWAP, POV | See schedule and volume requirements. |
Triggers observe the fresh executable side: ask for BUY, bid for SELL. BUY stops trigger at or above the stop; SELL stops at or below. BUY take-profits trigger at or below the stop; SELL take-profits at or above. Buy limits need quotes at or below the cap, sell limits at or above the floor. The quantity-aware child quote is checked again before submission.
Market Aggressive
The Advanced UI also offers an immediate regular order: POST /api/v2/order or WebSocket order.place, with type: "MARKET", timeInForce: "FOK" and tradeStrategy: "MARKET_AGGRESSIVE" (alias marketAggressive). It is not an API-managed parent.
Omit price, stopPrice, expiry, schedule and apiManaged fields entirely. The API converts the current quantity-aware executable quote into a protective limit, widened by MARKET_AGGRESSIVE_ALLOWANCE_BPS (default 50 bps / 0.5%): higher for BUY, lower for SELL. FOK and other risk checks still apply; a fill is not guaranteed. This allowance is not a guaranteed execution price or total slippage measured from spot.
{
"symbol": "BTC/USD",
"side": "BUY",
"type": "MARKET",
"timeInForce": "FOK",
"tradeStrategy": "MARKET_AGGRESSIVE",
"quantity": "0.001",
"newClientOrderId": "btc-aggressive-001"
}Trailing distance
Choose one: trailingDelta (integer basis points, 1–9,999), price2 (percentage, e.g. 1.5 for 1.5%, greater than zero and below 100), or trailingAmount (positive absolute USD distance, up to 8 decimals). BUY tracks the lowest reference then triggers on a rise; SELL tracks the highest then triggers on a fall.
Optional stopPrice gates activation; otherwise tracking starts with the first fresh observation. For a dynamic trailing limit, limitOffset is added on BUY and subtracted on SELL; without it the supplied limit price is fixed.
{
"symbol": "ETH/USD",
"side": "SELL",
"type": "TRAILING_STOP_MARKET",
"apiManaged": true,
"quantity": "0.02",
"trailingDelta": 150,
"reduceOnly": true,
"newClientOrderId": "eth-trail-001"
}TWAP, VWAP and participation
| Field | Range / meaning |
|---|---|
interval | 1,000–86,400,000 ms between intervals. |
intervalCount | 2–10,000 intervals. |
intervalDelay | Initial delay: 0–604,800,000 ms. |
volumeProfile | Scalar CSV of nonnegative integer weights, one per interval; at least one positive. Count can be inferred if omitted. |
participationBips | POV: 1–10,000 bps; 1,000 is 10%. |
targetStrategy | For a price cap use LIMIT with price and strategy 180 (TWAP), 1000002 (VWAP), or 1000004 (POV). Named schedule types are market-style. |
TWAP divides quantity across scheduled attempts. Each opening slice must meet the minimum. Unfilled residual after the final attempt expires; total fill is not guaranteed.
VWAP uses completed Quote.Trade executed base-asset volume, not exchange-wide volume or depth. Its default profile uses completed one-minute history, a 512-bar window, whole-minute intervals and duration up to 512 minutes. Missing/empty history rejects profile creation, rather than silently becoming TWAP. Explicit weights support other valid intervals and durations.
Weights are frozen at admission. Zero weights are allowed; missed opportunities do not cause a retroactive burst. Residual may continue after the final interval until expiry or another terminal condition; set expiry for a hard end time. No benchmark price is guaranteed.
POV participates in fresh Quote.Trade executed volume observed after admission, including its own fills. Fresh price and trade data are required; stale observations pause eligibility.
{
"symbol": "BTC/USD",
"side": "BUY",
"type": "TWAP",
"apiManaged": true,
"quantity": "0.01",
"interval": 60000,
"intervalCount": 10,
"intervalDelay": 0,
"newClientOrderId": "btc-twap-001"
}{
"symbol": "BTC/USD",
"side": "BUY",
"type": "LIMIT",
"targetStrategy": 1000002,
"apiManaged": true,
"quantity": "0.01",
"price": "60000",
"interval": 60000,
"intervalCount": 4,
"volumeProfile": "1,2,3,4",
"newClientOrderId": "btc-vwap-001"
}OCO, OTO and OTOCO
Use flat fields, not nested order arrays. Set a unique listClientOrderId (1–36 characters, the same character set as order IDs), and retain it for retries of the same intent. Conflicting reuse is rejected. Scheduled/participation legs are not supported inside lists.
OCO · one cancels the other
Both legs share symbol, side and quantity. Prefix supported leg fields with above and below: Type, Price, StopPrice, TimeInForce, ClientOrderId, TrailingDelta, IcebergQty and ReduceOnly. The upper level must exceed the lower.
For SELL the upper leg is take-profit and lower is stop-loss; BUY reverses these roles. A winning trigger cancels its sibling before child submission. A winning stop-limit can then wait for a quote inside its price cap.
{
"symbol": "BTC/USD",
"side": "SELL",
"quantity": "0.01",
"listClientOrderId": "btc-oco-001",
"aboveType": "TAKE_PROFIT_LIMIT",
"aboveStopPrice": "70000",
"abovePrice": "69950",
"aboveTimeInForce": "GTC",
"belowType": "STOP_LOSS_LIMIT",
"belowStopPrice": "55000",
"belowPrice": "54950",
"belowTimeInForce": "GTC"
}OTO · one triggers the other
Prefix fields with working and pending, including Type, Side, Quantity, Price and other fields supported by the leg type. The pending leg activates only after a full working fill; a partial entry does not activate it.
{
"symbol": "ETH/USD",
"listClientOrderId": "eth-oto-001",
"workingType": "LIMIT",
"workingSide": "BUY",
"workingQuantity": "0.02",
"workingPrice": "2500",
"workingTimeInForce": "GTC",
"pendingType": "LIMIT",
"pendingSide": "SELL",
"pendingQuantity": "0.02",
"pendingPrice": "2800",
"pendingTimeInForce": "GTC",
"pendingReduceOnly": true
}OTOCO · entry followed by an OCO pair
Use working fields, shared pendingSide/pendingQuantity, then pendingAbove…/pendingBelow… leg fields. A full working fill releases the pair. Apply reduce-only to each exit when the working order opens exposure.
{
"symbol": "ETH/USD",
"listClientOrderId": "eth-bracket-001",
"workingType": "LIMIT",
"workingSide": "BUY",
"workingQuantity": "0.02",
"workingPrice": "2500",
"workingTimeInForce": "GTC",
"pendingSide": "SELL",
"pendingQuantity": "0.02",
"pendingAboveType": "TAKE_PROFIT_LIMIT",
"pendingAboveStopPrice": "2800",
"pendingAbovePrice": "2795",
"pendingAboveTimeInForce": "GTC",
"pendingAboveReduceOnly": true,
"pendingBelowType": "STOP_LOSS_LIMIT",
"pendingBelowStopPrice": "2300",
"pendingBelowPrice": "2295",
"pendingBelowTimeInForce": "GTC",
"pendingBelowReduceOnly": true
}Working cancellation, rejection or expiry cancels unreleased pending legs. Canceling any list leg cancels the entire list. Held legs report PENDING_NEW and held: true.
Legacy OCO
POST /api/v3/order/oco accepts price, stopPrice, optional stopLimitPrice and stopLimitTimeInForce, plus limitClientOrderId, stopClientOrderId, limitIcebergQty, stopIcebergQty and trailingDelta as applicable. For BUY the stop is above the limit; for SELL it is below.
Bounded history and pagination
GET /api/v3/openOrders lists managed parents, including standalone orders and list legs, across every market in the account. It does not replace the existing ordinary-order list.
GET /api/v3/openOrders?apiManaged=true&includeHistory=true&newestFirst=true&limit=50&afterOrderId=0&nonce=FRESH_NONCE| Parameter | Behavior |
|---|---|
apiManaged | Required, true. Explicitly selects managed scope. |
includeHistory | Default false. True adds terminal records. Nonterminal held/pending legs are already included when false. |
newestFirst | Default false for compatibility. Set true for newest parent IDs first (not most recently updated). |
limit | Default 100; range 1–1,000. A UI page of 50 keeps responses bounded. |
afterOrderId | Nonpositive cursor; 0 starts pagination. Pass nextOrderId unchanged on the next request. |
The envelope has apiManaged, includesHistory, total, nextOrderId and orders, plus newestFirst: true when requested. Total is all matching records, not page size. Zero nextOrderId means the end. Managed IDs are negative and newer IDs decrease; do not assume ordinary positive-ID sorting.
{
"apiManaged": true,
"includesHistory": true,
"newestFirst": true,
"total": 0,
"nextOrderId": 0,
"orders": []
}- Start with afterOrderId=0 and newestFirst=true.
- Render each order's type, side, quantity, limit, trigger and state.
- If nextOrderId is nonzero, request it with the same account, history, sort and limit, and a freshly signed request.
- Refresh from zero for new orders; deduplicate by orderId when combining pages.
Pages are not an atomic snapshot: orders can change between requests. Terminal history is an operational cache, not an immutable audit archive. The managed route rejects symbol, instrumentId and side because its scope is all markets.
Linked-list queries differ
GET /api/v3/orderList uses orderListId or origClientOrderId/listClientOrderId, with an optional symbol/instrument check. openOrderList and allOrderList have default limit 500, range 1–1,000 and optional startTime/endTime in epoch milliseconds. They return arrays without a continuation cursor and do not promise newest-first sorting. These list queries can truncate at limit; they are not a complete paginated audit export. Use managed-parent pagination for the order UI.
Cancellation and uncertain outcomes
Cancel a linked list with DELETE /api/v3/orderList using its server or client list ID. Placement ownership rules apply.
{
"orderListId": -101
}Single-parent cancellation: use DELETE /api/v2/order with symbol and orderId or origClientOrderId. Send the existing signed JSON request with a fresh nonce. The order.cancel WebSocket method is not implemented in the current dispatcher; use REST for an individual parent. Canceling a parent that belongs to a list cancels that list.
Account-wide cancellation: DELETE /api/v3/openOrders with apiManaged=true cancels pending managed orders across all markets. It rejects symbol, instrumentId and side filters. Show that scope clearly before offering cancel-all.
{
"apiManaged": true
}The result reports matchedCount, canceledCount and cancelPendingCount. In-flight children may leave cancellation pending. Continue monitoring until the outcome is known; a successful cancellation request does not guarantee that no in-flight child filled.
After a timeout, 5xx, or apiState: "UNKNOWN", reconcile the original client/server ID. Do not generate another client ID and submit duplicate exposure while the first outcome remains uncertain.
Response fields and lifecycle
| Field | Meaning |
|---|---|
orderId, clientOrderId / clOrdId | Managed parent identity. Preserve negative IDs. |
symbol, instrumentId, account / accountId | Resolved market and owner. |
type, side, targetStrategy | Strategy and direction. |
origQty, executedQty | Requested and filled base quantities, decimal strings. |
price, stopPrice | Limit and trigger prices, decimal strings. Display both when applicable. |
timeInForce, childTimeInForce | Parent GTC/GTD lifetime; child IOC by default or FOK when explicitly requested. A FOK child does not make a multi-child parent all-or-none. |
status | NEW, PARTIALLY_FILLED, PENDING_NEW, or terminal FILLED/CANCELED/EXPIRED/REJECTED. |
apiState | WAITING, WORKING, UNKNOWN, FILLED, CANCELED, EXPIRED or REJECTED. |
apiManaged, held, cancelPending | Managed scope, pending activation and cancellation awaiting resolution. |
orderListId | List membership; -1 means no list. |
interval, intervalCount, intervalDelay, expireTime | Schedule and expiry configuration. |
icebergQty, participationBips, volumeProfile, volumeBenchmark | Execution controls; benchmark is quote.trade. |
price2, trailingAmount, limitOffset, dynamicLimit | Trailing and dynamic-limit configuration. |
reduceOnly, lastChildClientOrderId | Exposure constraint and latest child identity. |
transactTime, updateTime | Creation/update time, epoch milliseconds. |
Managed-parent responses currently do not serialize rejectReason, reason or errorMessage. Preserve immediate request errors and inspect native child order history for recorded execution details. A managed REJECTED state alone does not provide an explanation; the V2 native-order reason fields are a different response contract.
List replies include orderListId, listClientOrderId, contingencyType (OCO/OTO/OTOCO), listStatusType (EXEC_STARTED/ALL_DONE), listOrderStatus (EXECUTING/ALL_DONE), transactionTime, order identities and full orderReports. Inspect individual legs to distinguish fills from cancellation, expiry or rejection.
Show parent state alongside filled quantity. WAITING can mean a valid limit awaiting its price; WORKING can mean a child is in flight. Neither means fully filled.
WebSocket methods
Private request endpoint: wss://app.quote.trade/ws/listenKey, with the configured host for your environment. Signed requests use the envelope below and the same business fields/scopes as REST.
| Method | Equivalent operation |
|---|---|
order.place | Existing single-parent placement |
orderList.place.oco | POST /api/v3/orderList/oco |
orderList.place.oto | POST /api/v3/orderList/oto |
orderList.place.otoco | POST /api/v3/orderList/otoco |
orderList.status | GET /api/v3/orderList |
orderList.cancel | DELETE /api/v3/orderList |
openOrderLists.status | GET /api/v3/openOrderList |
allOrderLists | GET /api/v3/allOrderList |
openOrders.status | GET /api/v3/openOrders |
openOrders.cancelAll | DELETE /api/v3/openOrders |
{
"id": "history-page-1",
"method": "openOrders.status",
"params": {
"apiKey": "YOUR_API_KEY",
"apiManaged": true,
"includeHistory": true,
"newestFirst": true,
"limit": 50,
"afterOrderId": 0,
"timestamp": 0,
"recvWindow": 5000,
"signature": "YOUR_HMAC_SIGNATURE"
}
}Set timestamp to current epoch milliseconds. Sign every scalar parameter except signature: sort the key=value entries alphabetically, join with &, then HMAC-SHA256 with the secret. Include apiKey, timestamp, recvWindow and all business fields. Preserve decimal strings and lowercase booleans. This differs from REST query/body signing.
recvWindow defaults to 5,000 ms, maximum 60,000 ms. Timestamp must be within that window and less than one second ahead of server time. This timestamp validation replaces the REST nonce field.
Replies correlate by id and return status/result or an error code/message. Use the existing private stream authentication/subscription for ORDER_TRADE_UPDATE and listStatus events, and reconcile after reconnecting. See the existing order stream reference.
Execution limits and errors
Quotes, margin, permissions and exposure can change after admission. Eligibility does not guarantee a fill. Stale market data pauses execution; conditions do not bypass freshness, minimum size, price caps or account restrictions.
| Condition | Client action |
|---|---|
| Unavailable advanced route | Check environment configuration and supported market. Do not silently replace an advanced order with a simple market trade. |
| Precision / minimum rejection | Use at most 6 quantity and 8 price decimals; check $15 opening and per-child minimums. Confirm any size change with the user. |
| Missing consent / permission | Use the owner's existing settings/permission flow. An LLM cannot grant consent. |
| Missing VWAP history | Supply valid explicit weights or wait for history. Do not substitute another strategy without user intent. |
| Client-ID conflict | Reconcile the existing request. Use a new ID only for a new logical order. |
| Timeout, 5xx, UNKNOWN | Treat execution as uncertain; reconcile before resubmitting. |
| Cancel pending | Track fills and state until the server confirms the outcome. |
Inspect the body as well as HTTP status: existing business-error conventions may return errors inside HTTP 200. Transport success is not execution success.
This layer does not offer exchange-native queue priority, pegged/midpoint/SOR orders, new self-trade-prevention or hedge-position modes, or index/mark-price triggers.
Based on current API route, input, sizing, serialization and WebSocket implementations. Reviewed 16 October 2026 against the merged canonical source; local validation is not production deployment verification. Deployment availability must be checked separately.
API documentation ↗