Capital.com (Unofficial) icon

Capital.com (Unofficial)

Interact with the Capital.com Open API

Order → Amend

AI-generated

Summary

Amend a working order by sending updated trigger, expiry, stop, or profit settings to Capital.com. Provide the required working order Deal ID and any fields to change; the operation returns the broker’s response.

Inputs

  • Deal ID (required) — The working order deal ID to amend.
  • Level — Optional order trigger level. A value of 0 is treated as unset, so it cannot be used to explicitly set a zero level.
  • Good Till Date — Optional ISO 8601 expiry date; an empty value is omitted.
  • Stops & Limits — Optional settings: guaranteed stop, trailing stop, profit amount, distance or level, and stop amount, distance or level. Enabled booleans are sent as true; numeric values of 0 are treated as unset.

Output shape

A single record containing the Capital.com API response to the amendment request.

The node sends a PUT request for the specified working order. It builds the request body from the supplied settings; omitted or zero-valued fields are not included.

Links

Discussion