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
                    
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.Samples" Version="5.0.172" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StockSharp.Samples" Version="5.0.172" />
                    
Directory.Packages.props
<PackageReference Include="StockSharp.Samples" />
                    
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.Samples --version 5.0.172
                    
#r "nuget: StockSharp.Samples, 5.0.172"
                    
#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.Samples@5.0.172
                    
#: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.Samples&version=5.0.172
                    
Install as a Cake Addin
#tool nuget:?package=StockSharp.Samples&version=5.0.172
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

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
Loading failed

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.