Marketplace →
Compiler & Sandbox

Script & Sandbox API

Validate custom indicator syntax, check AST security constraints, and execute scripts in an isolated Web Worker sandbox.


Validate Script

POST /api/v1/developer/scripts/validate

Validates source script syntax, balanced brackets, and ensures no forbidden JavaScript or Node.js runtime globals are referenced.

Developer Sandbox Execution

POST /api/v1/developer/sandbox/execute

Executes the custom indicator script inside a dedicated Web Worker sandbox injected with synthetic or historical market data fixtures. Returns calculated plot series, histograms, and execution metrics.

Deterministic Security Boundaries

Scripts execute with zero access to network sockets (fetch, XMLHttpRequest), file systems (fs), processes (child_process), or browser DOM storage (localStorage). Execution is strictly capped at 3,000 milliseconds and 64MB of heap memory.