Capital.com (Unofficial) icon

Capital.com (Unofficial)

Interact with the Capital.com Open API

Order → Create

AI-generated

Summary

Builds and submits a Capital.com working order for the selected market, direction, size, and order settings. Dry Run is enabled by default, so the node validates the request and returns it without contacting the broker until Dry Run is turned off.

Inputs

  • EPIC (required) — The 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 datetime. Omitted when empty.
  • Stops & Limits — Optional stop and profit amount, distance, or level settings, plus Guaranteed Stop and Trailing Stop flags. Numeric values of 0 are omitted.
  • Wait for Confirmation — When enabled, polls for broker confirmation after a real order is submitted and attaches it to the result if the response includes a deal reference.
  • Dry Run — Defaults to true. When enabled, returns the constructed request without submitting it.
  • Max Size Guard — Rejects the request when its size exceeds this value; 0 disables the guard.
  • Allowed EPICs — Comma-separated EPIC allow-list; an empty value permits any EPIC.

Output shape

A single item containing either the dry-run request or the broker response.

Dry-run output has dryRun: true and request. With Dry Run off, the node POSTs the request to the working-orders endpoint; when confirmation polling is enabled and a deal reference is returned, the result also includes confirmation with an ACCEPTED, REJECTED, or TIMEOUT status.

Links

Discussion