StockSharp.Algo 5.0.233

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package StockSharp.Algo --version 5.0.233
                    
NuGet\Install-Package StockSharp.Algo -Version 5.0.233
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StockSharp.Algo" Version="5.0.233" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StockSharp.Algo" Version="5.0.233" />
                    
Directory.Packages.props
<PackageReference Include="StockSharp.Algo" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StockSharp.Algo --version 5.0.233
                    
#r "nuget: StockSharp.Algo, 5.0.233"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package StockSharp.Algo@5.0.233
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StockSharp.Algo&version=5.0.233
                    
Install as a Cake Addin
#tool nuget:?package=StockSharp.Algo&version=5.0.233
                    
Install as a Cake Tool

StockSharp Algo Library

Overview

StockSharp.Algo is the core algorithmic trading library used throughout the StockSharp platform. It provides the building blocks for creating trading bots, managing market data, handling order routing, and simulating strategies against historical data. The library targets .NET 6.0 and can be used in desktop, server, or cloud applications.

Features

  • Connectors and Message Adapters – unified infrastructure for connecting to exchanges and data feeds. Includes offline adapters for simulation and adapters for incremental order books, snapshots, and extended order information.
  • Strategy Framework – base classes for building algorithmic strategies with built‑in event model, parameter system, and rule management. Strategies can be composed and executed in parallel or as baskets.
  • Market Data Storages – tools for storing quotes, trades, candles, and order books in various formats (binary, CSV) with caching and synchronization support.
  • Risk and PnL – modules for risk management, slippage modeling, commission calculation, and real‑time profit‑and‑loss tracking.
  • Testing and Emulation – historical emulation connectors and market data generators for backtesting strategies under conditions close to real trading.
  • Services Registry – helper class to access common services (exchanges, securities, storages) across the application.

Getting Started

Prerequisites

  • .NET SDK 6.0 or later.
  • Visual Studio 2022 or any compatible IDE.

Basic Usage

The typical entry point for working with the library is the Connector class. Below is a very simplified example that demonstrates how to run a custom strategy using historical data:

using StockSharp.Algo;
using StockSharp.Algo.Strategies;
using StockSharp.Algo.Testing;

var connector = new HistoryEmulationConnector(securityProvider, portfolioProvider, storageRegistry);
var myStrategy = new MyStrategy { Connector = connector, Portfolio = myPortfolio, Security = mySecurity };

connector.NewStrategy += strategy => strategy.Start();
connector.Connect();

A full‑fledged application will include market data subscriptions, order registration, and more advanced strategy logic.

Documentation

Comprehensive documentation for the API and subsystems is available at the StockSharp documentation website.

Support

Questions and discussions are welcome in the community chat.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on StockSharp.Algo:

Package Downloads
StockSharp.Studio.Core

Core types for UI applications. More info on web site https://stocksharp.com/store/

StockSharp.Xaml.Diagram

Visual designer to create trading strategies. More info on web site https://stocksharp.com/store/

StockSharp.CSV

CSV connector. More info on web site https://stocksharp.com/store/

StockSharp.QuikLua

Trading and algorithmic trading platform (stock markets, forex, bitcoins and options). .NET API for InteractiveBrokers, GainCapital, OANDA, FIX/FAST, Binance etc. More info on web site https://stocksharp.com/products/api/

StockSharp.CoinEx

Trading and algorithmic trading platform (stock markets, forex, bitcoins and options). .NET API for InteractiveBrokers, GainCapital, OANDA, FIX/FAST, Binance etc. More info on web site https://stocksharp.com/products/api/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.235 114 8/20/2026
5.0.234 224 8/18/2026
5.0.233 246 8/15/2026
5.0.232 200 8/11/2026
5.0.231 250 7/30/2026
5.0.230 219 7/28/2026
5.0.229 5,370 9/11/2025
5.0.228 658 9/1/2025
5.0.227 585 8/30/2025
5.0.226 755 8/10/2025
5.0.225 1,147 7/23/2025
5.0.224 841 7/22/2025
5.0.223 723 7/20/2025
5.0.222 1,392 7/14/2025
5.0.221 557 7/8/2025
5.0.220 522 7/4/2025
5.0.219 546 6/30/2025
5.0.218 761 6/24/2025
5.0.217 495 6/20/2025
5.0.216 591 6/18/2025
Loading failed

Let an execution say it states no side
Give a commission rule a floor
Quote a widened price the instrument can actually trade at
Move the shared MSBuild props into props/
Enforce order identity for connector fills
Use shared multicast async invocation
Updated Ecng.Compilation to 1.0.328.
Updated Ecng.IO.Compression to 1.0.48.
Updated Ecng.Linq to 1.0.184.
Updated Ecng.Net to 1.0.536.
Updated Ecng.StringSearch to 1.0.262.