Delete a subscription
Last updated:
Request
Synthetic example for the production API. Replace YOUR_API_KEY and the ids. Do not send it against a live account until you mean to.
curl -X DELETE "https://api.fxapis.com/v1/copy/subscriptions/ACCOUNT_ID" \
-H "Authorization: Bearer YOUR_API_KEY"closePositions is required.
true: the subscription stops at once (stopped,stopReasondeleted,deletingtrue) and every position it holds on the follower is closed, by ticket — including one whose copied open is still in flight, once it fills. The closes are recorded before any is sent, so they go even if this request is cut off, and a follower that is offline gets them when it is back. The subscription is removed once they are all closed: 200 withdeletedtrue when that happens within this request, otherwise 202 with what is stillpending. A close the broker refuses (failed) keeps the subscription until it is closed: delete again to retry, or withfalseto keep the rest.false: the subscription is removed now, and its links with it: the positions stay open on the follower as the account's own, no longer copied, closed or corrected by copy trading (releasedcounts them).
Either way the executions log is kept, with subscriptionId null.
Authorization
apiKey Authorization: Bearer fx_live_<id>_<secret>.
A key is shown once, at creation. We cannot show it again or recover it for you.
Keys carry a label (live or test) in the key itself, so each configuration is easy to tell
apart. Both reach real brokers: test with a broker demo account.
Scopes are per key. A key without accounts:write can read accounts and nothing else.
In: header
Path Parameters
uuidQuery Parameters
Value in
- "true"
- "false"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://api.fxapis.com/v1/copy/subscriptions/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deleted": true, "deleting": true, "closed": 0, "pending": 0, "failed": 0, "released": 0 }}Change a subscription's settings or status PATCH
`settings` is merged into what is there: objects key by key, lists and `symbols.map` replaced. `status` is `active`, `paused` or `close_only`; a stopped subscription is brought back with POST …/reset. Changing sizing, limits, reverse or risk limits, or resuming, asks a member to confirm it is them (step-up); pausing and close_only never do. Moving into `active` or `close_only` counts against the plan's followers. Moving into `active` is refused while copy trading is paused on this server (503 `COPY_TRADING_PAUSED`, `GET /v1/copy/status`); settings, pausing and close_only still work.
Fetch a strategy GET
Next Page