Quant — Run Indicator Script
quant_runRun quant indicator scripts against historical K-line data to compute and return indicator values as JSON.
Instructions
Run a quant indicator script against historical K-line data on the server. Executes the script server-side and returns the computed indicator/plot values as JSON. Periods: 1m, 5m, 15m, 30m, 1h, day, week, month, year (default: day). The optional input parameter accepts a JSON array matching the order of input.*() calls in the script, e.g. "[14,2.0]".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Symbol in <CODE>.<MARKET> format, e.g. TSLA.US, 700.HK | |
| period | No | K-line period: 1m, 5m, 15m, 30m, 1h, day, week, month, year (default: day) | day |
| start | Yes | Start date (YYYY-MM-DD) for the K-line range | |
| end | Yes | End date (YYYY-MM-DD) for the K-line range | |
| script | No | Indicator script source. | |
| input | No | Script input values as a JSON array, e.g. "[14,2.0]". Must match the order of input.*() calls in the script. |