Contracts SDK reference
Reference overview
The public type surface a plugin compiles against — terse, code-derived lookup pages that complement the narrative chapters. Pure contracts: no engine code, no internals.
How the SDK is packaged
Install one NuGet, TradeStrike.Sdk. It is a meta-package with no source of its own; it
bundles the three contract assemblies a plugin author needs and re-exposes their types transitively:
| Bundled assembly | Covers |
|---|---|
TradeStrike.Pipeline.Contracts |
Indicators, bars & series, ticks, plots & rendering, order-flow & depth, drawing tools, data providers, market-analyzer columns, alerts, sessions. |
TradeStrike.Pipeline.Trading.Contracts |
Orders, brackets, fills, positions, accounts, ATM strategies, risk, commissions. |
TradeStrike.Pipeline.Strategies.Contracts |
The Strategy base class, parameters, the discovery catalog, replay/backtest harness and analytics metrics. |
Two further contract assemblies are not part of the meta-package — reference them directly only if you are building those integrations:
| Standalone assembly | Covers |
|---|---|
TradeStrike.Pipeline.Brokerage.Contracts |
Brokerage gateway interfaces, capabilities and registration. |
TradeStrike.Pipeline.TradeHistory.Contracts |
Trade-history records and backfill seams. |
The meta-package also ships an MSBuild .targets file: set
<DeployToAlgoStudioPlugins>true</DeployToAlgoStudioPlugins> in your plugin
csproj to drop the built DLL into the host's Plugins folder on every build. Every
contract assembly targets net10.0, so your plugin targets net10.0 or higher
— the same baseline as the TradeStrike host.
TradeStrike.Pipeline.*) so your using directives never change. Note that the
folder name and declared namespace can differ — rendering / viewport types live under the
folders Rendering/ and Viewport/ but declare
TradeStrike.Pipeline.Charts.Rendering and TradeStrike.Pipeline.Charts.Viewport. Always
use the namespace shown on each reference page.
Namespace map
| Namespace | Assembly | Reference page |
|---|---|---|
TradeStrike.Pipeline.Bars · .Series
|
Pipeline.Contracts | Bars & series |
TradeStrike.Pipeline.Ticks |
Pipeline.Contracts | Ticks |
TradeStrike.Pipeline.Indicators |
Pipeline.Contracts | Indicators |
TradeStrike.Pipeline.Plots · .Charts.Rendering · .Charts.Viewport
|
Pipeline.Contracts | Plots & rendering |
TradeStrike.Pipeline.OrderFlow · .MarketDepth
|
Pipeline.Contracts | Orderflow & depth |
TradeStrike.Pipeline.Drawing |
Pipeline.Contracts | Drawing |
TradeStrike.Pipeline.Providers · .Runtime
|
Pipeline.Contracts | Providers |
TradeStrike.Pipeline.Trading · .Atm · .Brackets · .Risk · .Commissions
|
Trading.Contracts | Trading |
TradeStrike.Pipeline.Strategies · .Catalog · .Replay · .Analytics
|
Strategies.Contracts | Strategies |
TradeStrike.Pipeline.MarketAnalyzer |
Pipeline.Contracts | Market Analyzer |
TradeStrike.Pipeline.Alerts |
Pipeline.Contracts | Alerts & sessions |
TradeStrike.Pipeline.Brokerage · TradeStrike.Pipeline.TradeHistory
|
Brokerage / TradeHistory.Contracts | Brokerage & trade history |
Reference pages
Each page documents one area of the SDK. Pick the one that matches what you are building, or page through them in order.
Bars & series
The OHLCV Bar, bar-specification records, builders, instrument metadata, and the barsAgo series.
Ticks
The raw Tick record struct and its TickFlags bitmask.
Indicators
The indicator base class, runtime context, lifecycle, attributes, and optional capability interfaces.
Plots & rendering
Plot / line models, ChartColor, the immediate-mode renderer, candle geometry and the viewport.
Orderflow & depth
Footprint bars and stats plus L2/L3 depth feeds, the order book and depth/MBO events.
Drawing
The drawing-tool surface, anchors, render context, geometry helpers, metadata attributes and Fib levels.
Providers
Data-provider factories, capabilities, backfill flavours and tick sources.
Trading
Orders, brackets, fills, positions, accounts and ATM strategies.
Strategies
The Strategy base class, parameters, discovery catalog and the backtest harness.
Market Analyzer
Column definitions, value production and registration for the market-analyzer grid.
Alerts & sessions
Alert channels and severities plus trading-hours / session contracts.
Brokerage & trade history
Brokerage gateway interfaces and the trade-history records / backfill seams.
Signatures throughout the reference are quoted from the contract source; the authoritative surface is the SDK assemblies you reference. A public-API snapshot test gates the SDK against accidental drift, so a pinned version is a stable surface.