Capital.com (Unofficial) icon

Capital.com (Unofficial)

Interact with the Capital.com Open API

Order → Preview

AI-generated

Summary

Builds a proposed Capital.com working order from the selected market, direction, order type, size, trigger level, optional expiry, and stops or limits. Runs safety checks and returns the request details without sending the order to the broker.

Inputs

  • EPIC (required) — Market EPIC for the order.
  • Direction — Buy or sell; defaults to Buy.
  • Order Type — Limit or Stop; defaults to Limit.
  • Size — Order size; defaults to 1.
  • Level — Order trigger level; defaults to 0.
  • Good Till Date — Optional ISO 8601 expiry. An empty value is omitted.
  • Stops & Limits — Optional guaranteed or trailing stop settings and profit or stop amount, distance, or level. Numeric values of 0 are omitted.

Output shape

A single object containing the preview request.

Returns { "preview": true, "request": {...} }. Safety controls may reject the request if its size exceeds the configured maximum or its EPIC is outside the allowed list.

Links

Discussion