Skip to main content

Enumerations and Constants

TradeScript prefers typed literal unions over classic TypeScript enums, so most "enumerations" appear as union type aliases (for example interval, chart-type, and order-status unions). What ships as runtime values are exported catalog constants — use BUILT_IN_INDICATORS, DRAWING_TOOLS, ALL_CHART_TYPES, and the interval/favorites constants when application UI needs the same catalog values as the chart.

Every entry below links to its full declaration in the domain reference.

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
AGENTIC_READ_FAMILY_IDSConstantWidget
Identifiers of the read-access control families used to group read controls for family-level permissioning (terminal, chart, market data, trading, risk, account, options, and the rest); the source of
AGENTIC_REVISION_DOMAINSConstantWidget
Identifier of one optimistic-concurrency revision domain: the chart-owned ChartRevisionDomain values plus domains owned by standalone trading widgets such as risk, orderTicket, and depthLadder
AGENTIC_SUBSCRIPTION_CONSTRAINTSConstantWidget
Exact SDK-owned subscription option bindings. These are direct input facts: they are checked after the option schema and before the provider subscribe function. No channel-name, controller-family, or
AGENTIC_SURFACE_EXCLUSIONSConstantWidget
Flattened, reviewed list of controller methods deliberately excluded from the agent-callable surface — one entry per controller/method with the exclusion reason (callback wiring, host-owned lifecycle,
AGENTIC_TRADE_MODE_MISMATCHConstantWidget
The SdkError code thrown when an access policy's trade grant declares an execution mode (e.g. paper) that does not match the broker's actual execution environment. Hosts can match this constant wh
AGENTIC_WRITE_FAMILY_IDSConstantWidget
Identifiers of the write-access control families used to group non-financial state-mutating controls (layout, navigation, drawings, indicators, watchlists, customization, risk policy, and the rest); t
ALL_CHART_TYPESConstantWidget
Canonical registry of SDK-facing chart types. Single source of truth shared by the controller (supported list / validation), the engine (mapping to internal candle types), and the chart-type selector
BUILT_IN_ACTIONSConstantCustomization
Catalog of the built-in default hotkey actions (undo/redo, zoom, symbol search, layout save/load, snapshots, scale toggles, drawing tools, alerts, and buy/sell intents) that the SDK widget seeds as or
BUILT_IN_CONTROL_IDSConstantCustomization
Lists the stable id of every built-in chart control, in inventory order (one per entry in BUILT_IN_CONTROLS). Use it to enumerate or validate control ids without carrying the full descriptors.
BUILT_IN_CONTROLSConstantCustomization
The complete inventory of built-in visible chart controls, grouped by surface (period bar, drawing sidebar, chart canvas, pane headers, time scale). Each entry carries a stable public id, a built-in E
BUILT_IN_MARKET_EVENT_CATALOGConstantEvents
Catalog of the SDK's built-in market event types — news, company-calendar, corporate-action, market-structure, futures-lifecycle, and economic-calendar entries — each carrying its default marker style
CHART_THEME_PRESETSConstantCustomization
The frozen first-party theme catalog: all twelve shipped presets keyed by name, each carrying its label and description, base ground, derivation seed, derived UI tokens, plot color palette, and a read
DEFAULT_FAVORITE_INTERVALSConstantCustomization
Default favourite intervals ('1m', '15m', '1h') for the period bar's quick-access row, used whenever localStorage holds no stored favourites and the host has not seeded any via `initializeFavoriteInte
IDENTITY_PALETTE_DEFAULTSConstantCustomization
The shipped defaults, in hash order. Entry 0 is the identity-1 token pair, entry 1 the identity-2 pair, and so on — the tokens are 1-indexed so they read naturally in CSS. (Written without the ful
MAX_MULTI_CHARTSConstantWidget
Maximum number of chart panes a multi-chart layout may contain (16); layout builders clamp requested chart counts and leaf-id generation to this bound.
TradeScriptConstantWidget
The frozen SDK entry-point namespace: installLease for authorization, the mount, createChart, and widget constructors, and version.
TRADING_CONTROLLER_OPERATION_IDSConstantTrading
Public semantic operations a TradingController can expose to host UIs and agentic transports. Support is declared by the controller; consumers must not infer it from broker names, feature-family strin
TRADING_DRAFT_LINE_KINDSConstantTrading
Runtime tuple of the line kinds rendered by the native pre-trade order draft — entry, takeProfit, and stopLoss; backs the TradingDraftLineKind union and keys `TradingDraftOverlayStyle.kindStyl
TRADING_ORDER_TYPESConstantTrading
Runtime tuple of every provider-neutral order-type semantic the SDK understands, from plain market/limit/stop orders through pegged, algorithmic, and auction (on-open/on-close) types; backs the `Tradi
US_EQUITIES_SESSION_SCHEDULEConstantDatafeed
US equities schedule (NYSE/Nasdaq): pre-market 04:00–09:30, regular 09:30–16:00, post-market 16:00–20:00 New York time, Monday through Friday. Exchange holidays are venue data — merge them in via `hol
  • Type Reference — the literal unions most enumerations are expressed as.
  • Interfaces — every public interface and class in one index.
  • API Catalog — the same surface organized by product area.