Organization
Delete a trading rule
Delete a trading rule. Admin only.
Cannot delete if:
- The rule is used by any trading plans
You must first reassign or delete the trading plans that use this rule before deleting it.
Example:
curl -X DELETE "https://api.example.com/platform/v1/organization/trading-rules/{ruleId}" \
-H "X-API-Key: hp_live_your_key_here"
Error Codes:
| Code | Description |
|---|---|
RULE_NOT_FOUND | No rule exists with this ID |
RULE_NOT_IN_ORG | Rule belongs to a different organization |
RULE_IN_USE | Rule is used by trading plans or accounts — see hint in the response for how to resolve |
ADMIN_REQUIRED | Only admins can delete rules |
DELETE
Delete a trading rule
Authorizations
JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.
Path Parameters
The rule ID to delete
Related topics
Delete a copy trading configDelete a trading planDelete all copy trading configsUpdate a trading ruleGet a specific trading rule