Function script_info

Source
pub fn script_info(source: &str) -> Result<ScriptInfo, Error>
Expand description

Compile a script from source and return its ScriptInfo without building an Instance or requiring a data provider.

This is a lightweight alternative to Instance::script_info() for cases where you only need metadata (script type, inputs, alert conditions) and don’t plan to execute the script.

Internally uses a dummy symbol (NASDAQ:AAPL) and timeframe (1 day); functions like request.security() return na during collection so no real data is fetched.