Capital.com (Unofficial) icon

Capital.com (Unofficial)

Interact with the Capital.com Open API

Position → Preview

AI-generated

Summary

Builds a position request preview from the selected market, direction, size, and optional stops and limits. It applies the configured safety checks and returns the request without sending it to Capital.com or opening a position.

Inputs

  • EPIC (required) — Market EPIC to include in the request.
  • Direction — Buy or sell; defaults to Buy.
  • Size — Position size; defaults to 1.
  • Stops & Limits — Optional guaranteed or trailing stop settings and stop/profit amount, distance, or level values. Values of 0 are omitted from the request.

Output shape

A single record

Contains preview: true and request, the assembled position request body. Preview also enforces the configured Max Size Guard and Allowed EPICs safety checks; violations produce an error. It does not send the request to the broker.

Links

Discussion