Make an account a strategy
Marks an account as a strategy: its trades are copied to every account that subscribes to it. The account must be always_on — a master traded by hand never sends fxapis an order, so an idle terminal would be stopped — and a hedging account, and must not follow a strategy itself. One live strategy per account. A member confirms it is them (step-up). While copy trading is paused on this server (GET /v1/copy/status), this answers 503 COPY_TRADING_PAUSED.
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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/copy/strategies" \ -H "Content-Type: application/json" \ -d '{ "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "name": "Gold scalper" }'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "name": "string", "status": "active", "masterAlwaysOn": true, "followers": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}