10.3.0 to 10.4.0
CLI getExecutor()
To utilize the getExecutor function without UI:
// Single import for headless CLI (no UI component, no extra setup)
import "./plugins/cli/headlesscli.js";
// Get executor from chart engine (v10.1.0+)
const executor = stxx.getExecutor();
// Execute commands
await executor("symbol AAPL");
await executor("type line");
Sanitize Large Objects
Configure the amount or size of returned data by modifying DATASET_MAX_BARS and DATASET_MAX_BYTES in chartiq/plugins/cli/registry.js. Adjust these defaults based on your needs. DATASET_MAX_BARS limits the number of returned datapoints, while DATASET_MAX_BYTES limits the total size in bytes. Whichever constraint is reached first limits the dataset.
// Requires ChartIQ v10.4.0
const DATASET_MAX_BARS = 1500;
const DATASET_MAX_BYTES = 1048576;
