AI Trade Constructor
cc.trade_builderCall cc.trade_builder — Takes natural language or structured trade ideas, fetches live market context, and generates fully executable order parameters with AI reasoning. Purpose: Takes natural language or structured trade ideas, fetches live market context, and generates fully executable order parameters with AI reasoning. Behavior: mostly READ (plan/validate). WRITE/destructive only when action=execute — that can submit live orders. Prefer action=plan first. Auth: X-Api-Key or x402 payment proof (X-PAYMENT / __x_payment). Anonymous unauthenticated calls receive HTTP 402 with payment accepts. Cost: $0.02 USDC per successful call (x402 Base USDC pay-per-use or prepaid X-Api-Key balance). Linked Connect keys are free. This is billing, not a side effect. Rate limit: 10/min (per API key). Tier: premium. Returns: Complete trade specification: symbol, side, size, leverage, entry type, TP levels, SL level, AI reasoning for each parameter. Guidelines: Prefer paper/simulation paths. For live money require explicit human confirmation (confirm_live / action=execute). Report real HTTP errors; never invent proxy failures. Tags: ai, trade-planning, order-generation, risk-management, automation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idea | Yes | Natural language trade idea or structured params Required. | |
| risk_pct | No | Max risk as % of account Optional. | |
| __x_payment | No | Optional x402 payment proof (same value as X-PAYMENT header). Use when retrying after HTTP 402 if your MCP client cannot set custom headers. Not a business parameter. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the gateway HTTP status is 2xx. | |
| data | No | Parsed JSON body from the endpoint (shape varies by slug). | |
| error | No | Error message when ok is false. | |
| status | Yes | Upstream HTTP status from x402-gateway. | |
| billing | No | Optional payment / cost metadata when present. | |
| endpoint | Yes | Catalog slug that was invoked (e.g. funding-rates). |