Options & Events
Options
Display controls
display controls the embedded trading page shell and high-level containers. In partner embeds, the PC header and bottom market ticker are hidden by default.
Supported display.hidden values:
display.hidden hides whole containers only. It does not hide individual buttons, fields, or tools inside a container. Values that do not map to the current viewport are ignored.
Events
Related Widget guides
Product pages and trading mode
Java Agent SDK and browser Trading Widget SDK are versioned independently. For seconds trading, use the current Widget capabilities and select both the page and trading mode explicitly.
Check TradingWidget.capabilities.pages, TradingWidget.capabilities.tradingModes, and TradingWidget.capabilities.partnerToken before initialization. Token creation does not select a funds environment. To change users or real/demo mode, destroy the old instance and create a new one.
See complete seconds trading example and production/simulated configuration.
Additional display targets and events
The current runtime also accepts symbolFavorites and symbolTicker in display.hidden. Always check TradingWidget.capabilities.displayTargets; a target controls a high-level container and is not a field-level permission setting.
Use onRendered or widget.on('rendered', handler) to handle rendering separately from initialization. Current supported pages are published in TradingWidget.capabilities.pages; validate the requested page rather than guessing a path.