Skip to main content

API Reference

The TradeScript Pro Charts API divides into nine surfaces: chart and standalone surface modules, controller APIs, datafeed contracts, trading contracts, drawing tools, indicator overrides, storage adapters, events, and the type system.

Start from what you are building

I want to…Read this firstThen use
Embed a chart in my appQuickstartWidget API, Widget Options
Mount standalone widgets in any frameworkFramework and Widget StartersProduct Surfaces, Widget API
Connect my market dataDatafeeds guideDatafeed API
Add trading (orders, positions, account UI)Trading quickstartTrading API
Control a mounted chart at runtimeChart ControllerChart Events, Widget API
Theme and customize the terminalCustomization overviewCustomization API
Save layouts, drawings, and settingsStorage overviewStorage API
Build or configure indicatorsIndicators overviewIndicators API, Built-in catalog
Verify my integration in a browserRuntime testing guideThe API page for the product surface under test

Open the complete API catalog to browse by product area, or search for a symbol below.

Find a symbol

Search interfaces, classes, functions, type aliases, enumerations, and constants, then open the exact declaration and usage notes.

AgentConsoleCommandsInterfaceWidget
Host-implemented command callbacks the agent console invokes in response to operator actions; each is optional and may complete synchronously or return a promise.
AgentConsoleConnectionStatusType aliasWidget
Lifecycle status of the agent connection, from waiting for a terminal through session issuance, pairing, and connection to closed, revoked, or error; every status maps onto either the setup or the con
AgentConsoleControllerApiInterfaceWidget
Host-owned authority consumed by AgentConsoleWidget. Implementations own gateway URLs, fetch/WebSocket work, credential storage, session rotation, policy changes, clipboard behavior, simulation, and e
AgentConsoleFeedSnapshotInterfaceWidget
One renderable activity feed — the live activity view while connected, or the retained session log shown in the setup template after a session ended. Hosts supply the visible entries plus overflow met
AgentConsoleGrantsSnapshotInterfaceWidget
State of the Grant access section: the per-surface read/write grant matrix plus the paper-trading toggle row. Hosts derive the rows from their mounted surfaces and apply changes through `commands.setG
AgentConsoleNoticeInterfaceWidget
A host-authored notice rendered by the console — either the setup-template banner (disconnect, revocation, issuance errors) or a secondary strip under the active template (e.g. market-feed failures).
AgentConsolePairingSnapshotType aliasWidget
Discriminated union describing the pairing section. Hosted mode moves through loading, ready (endpoint plus nonsecret credential readiness and copyable instructions), error, and revoked states; local
AgentConsolePromptInterfaceWidget
One suggested-prompt pill shown in the connected template. Clicking the pill copies the host-side prompt text via commands.copyPrompt(id); an optional Simulate button runs it via `commands.simulateP
AgentConsoleSnapshotInterfaceWidget
Complete read model rendered by AgentConsoleWidget. Presentation-ready values only. Transport credentials entered by the operator never belong in this snapshot.
AgentConsoleWidgetLabelsInterfaceWidget
The complete set of user-visible strings rendered by AgentConsoleWidget. Hosts override any subset through the widget's labels prop; unspecified keys fall back to DEFAULT_AGENT_CONSOLE_LABELS.
AGENTIC_CATALOG_CONTROLLER_IDSConstantWidget
Identifiers of every SDK controller contract in the agentic catalog, spanning the widget/chart core (widget, chart, timeScale, data) through trading, risk, replay, workspace, and the terminal widget c
AGENTIC_CONSTRAINT_EXTRACTOR_IDSConstantWidget
Exact SDK-owned extractor identities. The bulk symbol/account/resource bindings are intentionally added separately; an extractor becomes public semantic authority only when its exact id is declared he
AGENTIC_CONTROL_CATALOGConstantWidget
The complete frozen catalog of agent-callable control descriptors: every classified controller method from the authored control groups plus the projection-backed chart.formatPrice and chart/widget s
AGENTIC_CONTROL_CONSTRAINTSConstantWidget
Exact broad-input contracts implemented by the SDK policy validator. A new binding is authored here; registries and transports never derive one from a method name, argument position, or runtime object
  • API Catalog — the same surface organized by product area rather than by symbol.
  • Widget Options — the mount options every integration starts from.
  • Chart Controller — the runtime controller grouped by task.
  • Chart Events — the typed event bus and its subscription rules.