StockSharp.Samples
5.0.172
Prefix Reserved
dotnet add package StockSharp.Samples --version 5.0.172
NuGet\Install-Package StockSharp.Samples -Version 5.0.172
<PackageReference Include="StockSharp.Samples" Version="5.0.172" />
<PackageVersion Include="StockSharp.Samples" Version="5.0.172" />
<PackageReference Include="StockSharp.Samples" />
paket add StockSharp.Samples --version 5.0.172
#r "nuget: StockSharp.Samples, 5.0.172"
#:package StockSharp.Samples@5.0.172
#addin nuget:?package=StockSharp.Samples&version=5.0.172
#tool nuget:?package=StockSharp.Samples&version=5.0.172
StockSharp API Examples Directory
This directory contains a collection of example projects and scripts demonstrating the use of the StockSharp API for developing trading applications. These examples are intended specifically for developers who are programming in C# and are looking to create comprehensive trading robots or tools that do not integrate directly with the Designer platform.
Overview
The examples provided in this folder serve as practical guides to various aspects of the StockSharp API, showcasing how to leverage its capabilities to access market data, execute trades, and manage portfolios. These examples are particularly useful for users with a background in software development and an interest in financial markets.
Contents
- Basic API Usage: Simple scripts demonstrating the initialization of the API, connection to trading services, and basic data handling.
- Advanced Trading Algorithms: More complex examples that implement full trading strategies or algorithms using the StockSharp API.
- Data Management: Scripts that show how to fetch, store, and manage historical market data for analysis.
- Utility Tools: Utility programs that assist with account management, order placement, and other trading operations.
Purpose
The primary goal of this directory is to provide:
- A learning resource for new programmers who are just starting with trading software development.
- A reference point for experienced developers looking to explore different features of the StockSharp API.
- Code bases that can be extended or customized for personal trading solutions.
Usage
Each example comes with a detailed explanation of the code and instructions on how to set it up and run it. Developers are encouraged to modify and extend these examples to fit their specific trading needs and strategies.
Important Note
Please note that the examples provided in this folder are not compatible with the Designer platform. They are intended for direct use and modification within C# projects and require a solid understanding of programming concepts and the .NET. Additionally, some examples may require adding a connector from StockSharp's private NuGet server. For more information on accessing and using this server, please visit StockSharp's NuGet server manual.
By exploring and utilizing these examples, developers can gain a deeper understanding of how to implement robust trading solutions using the StockSharp API, paving the way for the development of sophisticated trading robots and analytical tools.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.172 | 52 | 10/25/2026 |
| 5.0.171 | 1,028 | 8/30/2025 |
| 5.0.170 | 779 | 7/20/2025 |
| 5.0.169 | 676 | 7/8/2025 |
| 5.0.168 | 607 | 7/4/2025 |
| 5.0.167 | 683 | 6/30/2025 |
| 5.0.166 | 694 | 6/24/2025 |
| 5.0.165 | 689 | 6/18/2025 |
| 5.0.164 | 711 | 6/2/2025 |
| 5.0.163 | 763 | 4/1/2025 |
| 5.0.162 | 698 | 3/29/2025 |
| 5.0.161 | 700 | 3/27/2025 |
| 5.0.160 | 641 | 2/28/2025 |
| 5.0.159 | 683 | 2/16/2025 |
| 5.0.158 | 674 | 2/14/2025 |
| 5.0.157 | 682 | 12/30/2024 |
| 5.0.156 | 686 | 11/16/2024 |
| 5.0.155 | 635 | 11/16/2024 |
| 5.0.154 | 680 | 10/14/2024 |
| 5.0.153 | 669 | 10/7/2024 |
MultiConnect sample: connectors that sign in through OAuth get their token
Samples: build from the applications' sources again and follow the awaited API
Unwind the blocking waits left by the async rework and fix what it uncovered
Mark the blocking wrappers obsolete
Move instrument lookups and persistence to async
Give three Avalonia samples the namespaces they compile against
Keep the name a strategy was given, and stop testing the samples
Say what the core promises, in tests that can fail
Put every sample on the library, and both heads in one place
Update sample source paths for nested Xaml projects
Move the shared MSBuild props into props/
Follow the web-api client's new optional parameters in the MultiConnect sample, and align the solution
Clear the compiler warnings in the samples
Drop the Finam connector from the samples
samples: reference what the samples are actually written against
Samples: point the Binance connector reference at the moved Connectors repo
Samples: add missing using Ecng.Common where samples call Ecng extensions
Update README links and English wording
Convert security access to async (SaveAsync/GetSecurityAsync) end to end
Optimization sample: suspend running backtests on Pause, give the Pause button visible feedback, and enable Server GC.
Optimization sample: enable the Pause button during a run
Optimization sample: fill Progress and P&L columns in the results grid
Replace remaining string.Join, Math.*, decimal.Parse with Ecng extensions
Use Ecng Common extensions across codebase
Remove IBinaryAdapter interface and IsBinaryEnabled from RemoteMarketDataDrive
Update history testing sample: extract message variable for readability
Add stop order Replace support and SmaServerStopStrategy
IMessageAdapter. GetSupportedDataTypes -> GetSupportedDataTypesAsync
Security. Stat fields made obsolete.
Slnx
Report generation
Add _fromsrc.csproj for console history sample
Add console history backtesting sample (04_Testing.HistoryConsole)
StrategyParamHelper. Optimization values generation.
Loading data fix
Updated samples and tests for IFileSystem API.
Refactored NativeIdStorage to use provider pattern
IAsyncEnumerable<T> impl refactoring.
Storages. Init -> InitAsync.
Derivatives refactoring.
IMessageAdapter. SendInMessage fully replaced by SendInMessageAsync
Themes fixes.
Lock usage.
DelayAction -> ChannelExecutor
DateTimeOffset -> DateTime UTC
IMarketDataDrive uses async mode.
Sample optimization. Random search supported.
IMarketDataProvider. SessionStateChanged, LookupBoardsResult, LookupTimeFramesResult removed as obsolete.
IComplexIndicatorValue inheritance.
IIndicator. Source is writable
Sample chart app. Cross-thread issue fix.