Virtufin Strategy DevKit
The strategy development kit: two NuGet packages that turn an
IDecide coalgebra (Virtufin.Core) into a WorkManager worker.
flowchart LR
MKT[("Market stream")]
PORT[("Portfolio state")]
DEC["IDecide<S, M, P, A>"]
BRIDGE["StrategyWorkerBase"]
EXE["IExecutor"]
MKT --> BRIDGE
PORT --> BRIDGE
BRIDGE --> DEC
DEC -->|"TradeAction[]"| EXE
Packages
| Package | What it provides |
|---|---|
Virtufin.Strategy.DevKit |
StrategyWorkerBase (the bridge), WithPortfolio, PortfolioState + PortfolioAlgebra |
Virtufin.Trading.Contracts |
the shared trading wire contracts (order.submitted, position events, trading entity ids) |
Indicators (SimpleMovingAverage<TTime,TValue>) live in Virtufin.Base.Behavior
(lib) — see that repo's docs, not this one.
Where to start
- Overview — the strategy model.
- Strategy Author Guide — implement
IDecide, subclassStrategyWorkerBase, wire config. - Bridge — the CloudEvent bridge architecture.
- Helpers — mappers, portfolio fold, config.
Deployable strategy workers (e.g. the moving-average strategy) live in the strategies repo, which consumes these packages via NuGet.