SWAGGER STYLE
Trade Copier Explorer
Test copier rule creation, account assignment, sync monitoring, and latency analytics.
Base URLhttps://api.metatraderapi.xyz/copy
AuthBearer API key
How To Test This API
Test copier rules with a single source and a small target pool before widening rollout.
Use health and latency endpoints alongside write operations so you can confirm worker assignment and replication quality.
- Attach a source account and at least one destination account.
- Create a low-risk rule with explicit symbol mapping and risk multiplier.
- Inspect the rule inventory and latency timeline after activation.
- Review health and divergence endpoints before expanding the rollout.
| Header | Value | Notes |
|---|---|---|
| Authorization | Bearer <api-key> | Workspace API key. |
| x-workspace-id | core-prod | Optional multi-workspace selector. |
| x-request-id | req_copy_demo | Recommended for replay-safe mutations. |
Sample Request
BASH
curl -X POST https://api.metatraderapi.xyz/copy/rules \
-H "Authorization: Bearer <api-key>" \
-d '{
"name": "core-eurusd-follow",
"sourceAccount": "src-01",
"targets": ["dst-11", "dst-17"],
"riskMultiplier": 1.0
}'Sample Response
JSON
{
"ruleId": "copy_84x2",
"status": "active",
"sourceCount": 1,
"targetCount": 2
}Common Status Codes
| Code | Meaning | Typical Cause |
|---|---|---|
| 200 | OK | Read or health request completed successfully. |
| 201 | Created | Rule or account attachment created. |
| 409 | Conflict | Rule revision or account state conflict detected. |
| 429 | Busy | Replication queues are saturated or throttled. |
| 503 | Worker Unavailable | Required copy workers are not healthy. |