Skip to main content

Type Reference

Search public TypeScript aliases and unions by product area. Interval, chart-type, order, and style vocabularies are expressed as literal unions, with links to the complete declaration and related contracts.

If you are starting a specific integration instead of looking up one type, begin with the domain page:

DomainStart with
WidgetTradeScript, ChartWidgetOptions, ChartWidgetApi, ChartApi
DatafeedMarketDataFeed, SymbolInfo, Bar
DrawingsDrawingDefinition, MarkerDefinition
IndicatorsIndicatorDefinition, BUILT_IN_INDICATORS
StorageChartStorageAdapter, ChartLayout, ChartTemplate
TradingTradingBrokerAdapter, order and position contracts
CustomizationChartTheme, style settings
Eventschart, widget, workspace, market, and alert events

Search type aliases

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
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
AgenticAccessClassType aliasWidget
The three agentic permission tiers a control belongs to: 'read' for observation, 'write' for non-financial state mutation, and 'trade' for financial authority.
AgenticCatalogWidgetKindType aliasWidget
Union of the built-in agentic widget kinds declared in AGENTIC_WIDGET_KINDS (e.g. 'chart', 'watchlist', 'order-ticket', 'option-chain'); new public agentic widget kinds must be declared ther
AgenticConstraintExtractorIdType aliasWidget
Union of the exact SDK-owned constraint-extractor identities, aggregated from the customization/drawing, data-projection, symbol/account, resource, and trade binding modules; an extractor carries publ
AgenticConstraintResultFilterType aliasWidget
A source-owned function that narrows one control result, controller state, or subscription event under active policy constraints, receiving the full filter context (subject, args, controller, state, r
AgenticConstraintValueExtractorType aliasWidget
A source-owned function that resolves the constrained values for one control invocation from its extraction context (control id, args, controller, state, resources), returning them synchronously or as
AgenticControlConstraintBindingType aliasWidget
Declares how one policy constraint binds to a control invocation: the constraint id, its value type (string allowlist or finite number), the exact catalog-owned sources of the constrained values withi
AgenticControlGroupType aliasWidget
One authored batch of controller methods sharing an identical semantic classification — controller, permission family, access class, control family, revision domains, mutation outcome, and risk. Group
AgenticControlIdType aliasWidget
Union of every valid agentic control identifier — the read, write, and trade control ids derived from the declared control groups as controller.method strings.
AgenticControllerIdType aliasWidget
Identifier of a built-in SDK controller from the agentic catalog (an alias of AgenticBuiltInControllerId); custom controllers use their own host-chosen string ids instead.
AgenticControllerRegistrationType aliasWidget
Union of the two controller registration shapes a surface registration accepts: a built-in catalog controller registration, or a custom controller registration whose generics are erased at runtime onl
AgenticControlRiskType aliasWidget
Risk classification of a control: 'read' (no mutation), 'write' (non-financial state mutation), or 'financial' (the control can apply financial mutations and carries explicit per-method risk sem
AgenticCustomControlDescriptorType aliasWidget
Control descriptor for a custom controller contract: the built-in AgenticControlDescriptor shape re-keyed with host-chosen control and controller ids, plus optional constraint bindings and a uniform
AgenticCustomFeatureType aliasWidget
Feature grant for surfaces that expose custom controls: true or false for all-or-nothing access, or a custom access policy that can grant host-defined control ids alongside the built-in catalog.
AgenticDataDomainIdType aliasWidget
Union of the exact market-data domain identifiers used by the dataDomains policy constraint ('bars', 'l1', 'l2', 'tape', 'sessions', 'instrument-details', 'external-series', 'marks',
AgenticFamilyIdType aliasWidget
Union of every control-family identifier across the read, write, and trade access classes; each control belongs to exactly one family for family-level permissioning.
AgenticFeatureType aliasWidget
Grant used wherever a feature toggles agentic access to built-in controls: true grants everything the adapter allows, false denies, and an AgenticAccessPolicy grants selectively by class, family
AgenticGrantType aliasWidget
Grant for one access class within an AgenticAccessPolicy: a boolean for all-or-nothing, or an object narrowing by per-family flags, exact per-control flags, and policy constraints, with control flag
AgenticJsonValueType aliasWidget
Deeply readonly JSON-compatible value: a primitive, an array, or a string-keyed object. All agentic state, control results, and subscription events are projected to this shape before leaving the in-pr
AgenticMutationOutcomeContractType aliasWidget
Exact callable-owned authority for deciding whether a successful invocation applied a state mutation. Registries consume this declaration; they never infer mutation semantics from method names or proj
AgenticNumericMaxConstraintIdType aliasWidget
Identifier of one numeric upper-bound policy constraint (e.g. maxQuantity, maxHistoryLookbackMs), drawn from AGENTIC_NUMERIC_MAX_CONSTRAINT_IDS. Each id names a finite non-negative ceiling a hos
AgenticPolicyConstraintIdType aliasWidget
Identifier of any host-authorable policy constraint: either a string allowlist id (e.g. symbols, accounts) or a numeric maximum id (e.g. maxNotional). These are the only keys accepted in `Agenti
AgenticPortableSchemaType aliasWidget
Bounded, protocol-neutral schema language used to validate agentic subscription options and events as portable JSON. Every unbounded dimension must be explicitly capped: strings require maxLength, a
AgenticProjectionConstraintIdType aliasWidget
Identifier of a policy constraint whose active value must be explicitly classified by every aggregate state and event projection contract, drawn from AGENTIC_PROJECTION_CONSTRAINT_IDS. Covers all st
AgenticReadControlIdType aliasWidget
Identifier of a read-class control: either a catalog read operation id (e.g. chart.getState, plus the projection controls chart.formatPrice, chart.snapshot, and widget.snapshot) or a `subscrip
AgenticReadFamilyIdType aliasWidget
Identifier of one read permission family (e.g. chart, marketData, trading, risk), drawn from AGENTIC_READ_FAMILY_IDS. Access policies may grant or deny whole families before refining individ
AgenticResultFilterIdType aliasWidget
Identifier of one SDK-owned result-filter function used to narrow readable results under active policy constraints, drawn from the merged AGENTIC_RESULT_FILTER_IDS inventory. Descriptors reference f
AgenticSessionAccessType aliasWidget
Session-attachment access: flat grants applying to every surface, optionally narrowed per surface kind via surfaces. Wherever a request accepts sessionAccess, the per-kind entry for the resolved t
AgenticSubscriptionChannelIdType aliasWidget
Identifier of one built-in subscription channel declared in AGENTIC_SUBSCRIPTION_CATALOG (e.g. data.bars, trading.events, replay.state). These are the canonical semantic identities for control
AgenticSurfaceExclusionReasonType aliasWidget
Categorical reason a controller method is not exposed as an agentic control: it is an accessor, callback registration, cleanup, DOM access, live browser handle, host-lifecycle operation, provider regi
AgenticSurfaceSemanticBindingType aliasWidget
Declares one semantic capability of a built-in surface as either a bound controller (kind: 'controller') or a bound event channel (kind: 'subscription'), each with an availability classification a
AgenticTargetScopeType aliasWidget
Addressing scope of an agentic target: session for the shared session surface, chart for one mounted chart, or widget for one mounted widget. Controllers declare which scopes they can be registe
AgenticTradeControlIdType aliasWidget
Identifier of one trade-class (financial) control derived from the catalog control groups, in controller.method form (e.g. trading.placeOrder). Trade controls require an explicit trade grant with
AgenticTradeFamilyIdType aliasWidget
Identifier of one trade permission family (orders, positions, leverage, or emergency), drawn from AGENTIC_TRADE_FAMILY_IDS. Trade grants may enable or disable whole families before refining
AgenticValueProjectorType aliasWidget
One explicit SDK-owned portability boundary. Projection happens before a state, result, or event leaves the in-process adapter; transports only apply generic size/depth limits to the resulting JSON va
AgenticWriteFamilyIdType aliasWidget
Identifier of one write permission family (e.g. drawings, indicators, orderEntry, customization), drawn from AGENTIC_WRITE_FAMILY_IDS. Access policies may grant or deny whole families before
AlertConditionKindType aliasEvents
What an alert watches. price-* and percent-change are evaluated by the SDK's built-in evaluator against the loaded symbol; drawing-cross / indicator / expression are evaluated by an injected
AlertProviderCallbackType aliasEvents
Callback an AlertProvider.subscribe implementation invokes to push provider-driven events — out-of-band alert creates/updates/removes and provider-evaluated triggers — back into the SDK.
AlertProviderEventType aliasEvents
Event pushed through an AlertProvider subscription: a created/updated/removed change carrying the affected alert record, or a triggered event carrying the full AlertTriggerContext.
AssetTypeType aliasDatafeed
Asset-class classification carried on SdkSymbolInfo.type, spanning equities, indices, forex, futures, crypto, options, funds, and prediction/event-contract markets, with unknown as the fallback.
AutoSaveReasonType aliasEvents
Category of chart change that marks the chart dirty for auto-save, accumulated into AutoSaveNeededPayload.reasons: symbol/interval switches, drawing, indicator, and comparison edits, display-setting
BarCacheEvictionPolicyType aliasDatafeed
Given the current entries and the configured limits, return the keys to evict. Built-ins below cover LRU/LFU/FIFO; supply your own for size-, byte-, or pin-aware strategies (e.g. a prop firm keeping c
BarCachePolicyType aliasDatafeed
- none: no caching, pure passthrough to the inner feed. - memory: in-session cache only, lost on reload. - persistent: in-session cache backed by a store (IndexedDB by default).