Loading the API reference…

Browse the API reference

Validate an order without placing it

post https://trading-gateway-api.prod.thinkalpha.io/orders/validate
Authentication
Bearer token or Client credentials (HTTP Basic)

Request body application/json required

Request body for creating a new order. This is the base type accepted by the REST `POST /orders` endpoint and the `order.create` Socket.IO event. Executor-specific validation is applied on top via a dynamic JSON Schema.

  • AccountDescriptor required

    Polymorphic account identifier — can be a raw UUID or a qualified name lookup. This is the client-facing version with all 5 lookup variants.

  • attributes object
  • duration OrderDuration

    Time-in-force / duration of an order.

    one of "gtc", "day", "gtx", "gtd", "opg", "ioc", "atc", "fok"
  • exDestination string

    Execution destination name.

  • expireTime string<date-time>

    Expiry timestamp. Required when duration is `gtd`.

  • instructions ExecutionInstructions

    Execution instructions (DNR, DNI, AON, NotHeld, Held, BIN).

  • Instrument required

    A discriminated union of instrument types.

  • isManualReviewEnabled boolean

    Whether manual review rules are applied to this order.

  • NewOrderLeg[]

    Legs for multi-leg orders (required when side is `multi-leg`).

    min items 1max items 100
  • maxFloor number<double>

    Max floor for reserve/iceberg orders.

    >= 0
  • nonce string

    Optional nonce for idempotency (client-generated unique string).

  • openClose OpenClose

    Open/close indicator. Required for option orders.

  • price number<double>

    Limit price. Required when type is `limit`, `stop_limit`, or `box_limit`.

  • quantity integer<int64>

    Quantity in shares. Required for all sides except `closeout`. Must be >= 1.

    >= 1
  • route string

    Route name within an execution destination.

  • side OrderInitialSide required

    The initial side of an order (excludes sell-split).

    one of "buy", "sell", "sell-short", "closeout", "multi-leg"
  • statusWebhook string

    Webhook URL to receive order status updates.

  • stopPrice number<double>

    Stop price. Required when type is `stop` or `stop_limit`.

  • tags object
  • type OrderType required

    Type of an order.

    one of "market", "limit", "stop", "stop_limit", "pegged", "box_limit", "box_market"

Responses

The outcome of a validation-only order submission.

  • message string required
  • NewOrderBase required

    The order as it would be placed, after normalization.

  • valid boolean required