preflight
Validate payload shape, entitlement, quota, market source, and render readiness before spending a chart generation call.
Trade review chart API
The KLinePic Agent API is for automated trading journals, research agents, and strategy tools that need repeatable K-line review charts from structured trade records.
Free tier: 150 chart renders and 20 batch jobs per month with a required KLinePic watermark. Preflight does not consume render quota, and no payment is required to start.
kline_agent_... secret when it appears. The full secret is shown only once./api/agents/me or preflight to verify the key without consuming render quota.No sales contact or manual approval is required for the Free plan.
Validate payload shape, entitlement, quota, market source, and render readiness before spending a chart generation call.
Generate one trade review PNG from structured trades and market K-line data.
Create a batch job for many trade groups and download a ZIP when the job finishes.
Agents can send trade CSV plus K-line CSV for deterministic rendering from their own data source. The shortened shape below shows the main fields; use the complete runnable sample for preflight or rendering.
{
"kind": "review-chart",
"requestId": "agent-demo-btcusdt-001",
"chart": {
"tradesText": "trade_id,symbol,event_type,position_side,time,price,quantity\nT1,BTCUSDT,buy,long,2024-01-02T12:00:00.000Z,42210,0.2\nT1,BTCUSDT,sell,long,2024-01-02T14:30:00.000Z,43020,0.2",
"tradesFormat": "csv",
"symbol": "BTCUSDT",
"market": "crypto",
"period": "15m",
"source": "csv",
"klineCsv": "symbol,time,open,high,low,close,volume\nBTCUSDT,2024-01-02T12:00:00.000Z,42180,42600,42140,42490,156"
}
}
For Chinese search intent: 这个页面对应“自动生成交易复盘图 API”“Agent API 出图”“批量交易复盘图 ZIP”等具体需求。
For multilingual Agent/API search intent, this page also covers 取引履歴チャート API, 自動チャート生成 API, 一括チャート出力, 거래 복기 차트 API, 자동 차트 생성 API, and 일괄 차트 내보내기.
Yes. An agent can validate a payload with preflight, call review-chart for one PNG, or call review-batch for a batch job and ZIP export.
The OpenAPI contract is published at /api/agents/openapi.json.
Yes. The open-source stdio MCP server exposes capability, no-charge preflight, and PNG rendering tools. The accepted installation Q&A provides GitHub npx configuration and a Windows fallback.
Yes. The Free plan includes 150 chart renders and 20 batch jobs per month with a required KLinePic watermark. Preflight does not consume render quota.
Open the self-service Agent API page, sign in by email, choose the required scopes, and create a key. No sales contact or manual approval is required for the Free plan.