![]() |
VOOZH | about |
dotnet add package StockSharp.BusinessEntities --version 5.0.216
NuGet\Install-Package StockSharp.BusinessEntities -Version 5.0.216
<PackageReference Include="StockSharp.BusinessEntities" Version="5.0.216" />
<PackageVersion Include="StockSharp.BusinessEntities" Version="5.0.216" />Directory.Packages.props
<PackageReference Include="StockSharp.BusinessEntities" />Project file
paket add StockSharp.BusinessEntities --version 5.0.216
#r "nuget: StockSharp.BusinessEntities, 5.0.216"
#:package StockSharp.BusinessEntities@5.0.216
#addin nuget:?package=StockSharp.BusinessEntities&version=5.0.216Install as a Cake Addin
#tool nuget:?package=StockSharp.BusinessEntities&version=5.0.216Install as a Cake Tool
StockSharp.BusinessEntities is the core library that defines the trading entities used throughout the S# platform. It contains models describing exchanges, instruments, orders, trades and other objects along with provider interfaces for market data and order management.
TimeFrameCandle, TickCandle) β candle models for analyzing market data.The library declares base interfaces for interacting with various data sources and trading systems:
IConnector is the main interface combining connectivity, subscriptions, orders and data access. It inherits from IMarketDataProvider, ITransactionProvider, ISecurityProvider and others. A fragment of the interface:public interface IConnector : IMessageChannel, IPersistable, ILogReceiver,
IMarketDataProvider, ITransactionProvider, ISecurityProvider,
ISubscriptionProvider, ITimeProvider,
IPortfolioProvider, IPositionProvider
{
event Action<Message> NewMessage;
event Action Connected;
event Action Disconnected;
// ...
}
IMarketDataProvider β receiving market data and price levels.ITransactionProvider β registering, canceling and modifying orders.ISubscriptionProvider β managing realβtime data subscriptions.ISecurityProvider, IPortfolioProvider, IPositionProvider β access to lists of securities, portfolios and positions.ITimeProvider β current time source.EntitiesExtensions.cs contains many utilities:
StockSharp.Messages types.Example method:
public static IEnumerable<Exchange> EnumerateExchanges()
=> typeof(Exchange)
.GetMembers<PropertyInfo>(_publicStatic, typeof(Exchange))
.Select(prop => (Exchange)prop.GetValue(null, null));
BusinessEntities.csproj connects shared settings and package dependencies:
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\common_target_net.props" />
<PropertyGroup>
<ProjectGuid>{DCE69DB8-53CA-4B7F-9368-02F175A31074}</ProjectGuid>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Ecng.Configuration" Version="$(EcngVer)" />
<PackageReference Include="Ecng.Drawing" Version="$(EcngVer)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Messages\Messages.csproj" />
</ItemGroup>
</Project>
BusinessEntities is used in all Samples projects and production connectors. Add the project to your solution or install the package from the private S# NuGet feed. You can then create Security objects, subscribe to data through the interfaces and register orders.
A code fragment for subscribing to an instrument and receiving market data can be found in Samples/01_Basic/01_ConnectAndDownloadInstruments.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 3 NuGet packages that depend on StockSharp.BusinessEntities:
| Package | Downloads |
|---|---|
|
StockSharp.Alerts.Interfaces
S#.Alerts.Interfaces More info on web site https://stocksharp.com/store/ |
|
|
StockSharp.Charting.Interfaces
S#.Charting.Interfaces More info on web site https://stocksharp.com/store/ |
|
|
TradeSystemsCommon.Tools
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.216 | 4,899 | 9/11/2025 |
| 5.0.215 | 696 | 9/1/2025 |
| 5.0.214 | 643 | 8/30/2025 |
| 5.0.213 | 847 | 8/10/2025 |
| 5.0.212 | 1,168 | 7/23/2025 |
| 5.0.211 | 979 | 7/20/2025 |
| 5.0.210 | 1,456 | 7/14/2025 |
| 5.0.209 | 588 | 7/8/2025 |
| 5.0.208 | 581 | 7/4/2025 |
| 5.0.207 | 590 | 6/30/2025 |
| 5.0.206 | 1,101 | 6/20/2025 |
| 5.0.205 | 583 | 6/18/2025 |
| 5.0.204 | 693 | 6/2/2025 |
| 5.0.203 | 824 | 5/14/2025 |
| 5.0.202 | 1,469 | 3/29/2025 |
| 5.0.201 | 546 | 3/27/2025 |
| 5.0.200 | 1,263 | 2/26/2025 |
| 5.0.199 | 1,097 | 2/15/2025 |
| 5.0.198 | 660 | 2/14/2025 |
| 5.0.197 | 1,175 | 1/7/2025 |