Create a new trading plan
Create a new trading plan for your organization. Admin only.
Required fields:
| Field | Description |
|---|---|
name | Plan name (unique within org) |
price | Plan price |
accountSize | Account size in $ |
tradingRuleId | ID of the trading rule to use |
Optional fields:
| Field | Default | Description |
|---|---|---|
description | null | Plan description |
currency | ”USD” | Currency code |
durationDays | null | Duration in days (null = unlimited) |
isActive | true | Whether plan is active for purchase |
metadata | Custom organization data |
Example:
curl -X POST "https://api.example.com/platform/v1/organization/trading-plans" \
-H "X-API-Key: hp_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "100K Evaluation",
"description": "Our flagship 100K evaluation challenge",
"price": 299,
"accountSize": 100000,
"tradingRuleId": "660e8400-e29b-41d4-a716-446655440000",
"durationDays": 30,
"metadata": { "featured": true }
}'
Error Codes:
| Code | Description |
|---|---|
PLAN_NAME_EXISTS | A plan with this name already exists |
RULE_NOT_FOUND | Trading rule ID not found |
RULE_NOT_IN_ORG | Trading rule belongs to different org |
ADMIN_REQUIRED | Only admins can create plans |
Authorizations
JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.
Body
Plan name (must be unique within your organization)
"100K Evaluation"
Account size ($)
100000
Trading rule ID to use for this plan
"660e8400-e29b-41d4-a716-446655440000"
Plan description
"Our flagship 100K evaluation challenge"
Plan price in the plan currency. OPTIONAL — omit (or send 0) for plans that are provisioned via the API rather than sold through a checkout.
x >= 0299
Currency code (default: USD)
"USD"
Plan duration in days (null = unlimited)
30
Whether the plan is active for purchase
Custom metadata
Related topics
Create a new trading ruleCreate a trading accountUpdate a trading planBulk-create unlinked accounts with import keysCreate admin lockout