StockSharp.BusinessEntities
5.0.213
Prefix Reserved
dotnet add package StockSharp.BusinessEntities --version 5.0.213
NuGet\Install-Package StockSharp.BusinessEntities -Version 5.0.213
<PackageReference Include="StockSharp.BusinessEntities" Version="5.0.213" />
<PackageVersion Include="StockSharp.BusinessEntities" Version="5.0.213" />
<PackageReference Include="StockSharp.BusinessEntities" />
paket add StockSharp.BusinessEntities --version 5.0.213
#r "nuget: StockSharp.BusinessEntities, 5.0.213"
#:package StockSharp.BusinessEntities@5.0.213
#addin nuget:?package=StockSharp.BusinessEntities&version=5.0.213
#tool nuget:?package=StockSharp.BusinessEntities&version=5.0.213
StockSharp.BusinessEntities
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.
Key classes
- Exchange and ExchangeBoard — descriptions of an exchange and a specific electronic board.
- Security — represents a financial instrument with fields such as symbol, type, price step and currency.
- Portfolio and Position — trading account information and open positions.
- Order, MyTrade and Trade — objects that reflect registered orders and trades.
- MarketDepth — order book (best bid/ask and current quotes).
- News — news item information.
- Candle and its derivations (e.g.
TimeFrameCandle
,TickCandle
) — candle models for analyzing market data.
Provider interfaces
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 fromIMarketDataProvider
,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.
Extensions and helpers
EntitiesExtensions.cs
contains many utilities:
- Converting price values to pips or points.
- Cloning and re-registering orders.
- Transforming entities to
StockSharp.Messages
types. - Enumerating all registered exchanges and boards.
Example method:
public static IEnumerable<Exchange> EnumerateExchanges()
=> typeof(Exchange)
.GetMembers<PropertyInfo>(_publicStatic, typeof(Exchange))
.Select(prop => (Exchange)prop.GetValue(null, null));
Project structure
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>
Usage
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.
Example
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 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net6.0
- Ecng.Configuration (>= 1.0.206)
- Ecng.Drawing (>= 1.0.119)
- StockSharp.Messages (>= 5.0.219)
NuGet packages (3)
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 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
5.0.213 | 117 | 8/10/2025 |
5.0.212 | 566 | 7/23/2025 |
5.0.211 | 209 | 7/20/2025 |
5.0.210 | 357 | 7/14/2025 |
5.0.209 | 357 | 7/8/2025 |
5.0.208 | 293 | 7/4/2025 |
5.0.207 | 367 | 6/30/2025 |
5.0.206 | 651 | 6/20/2025 |
5.0.205 | 334 | 6/18/2025 |
5.0.204 | 466 | 6/2/2025 |
5.0.203 | 568 | 5/14/2025 |
5.0.202 | 1,065 | 3/29/2025 |
5.0.201 | 295 | 3/27/2025 |
5.0.200 | 915 | 2/26/2025 |
5.0.199 | 748 | 2/15/2025 |
5.0.198 | 405 | 2/14/2025 |
5.0.197 | 905 | 1/7/2025 |
5.0.196 | 553 | 12/30/2024 |
5.0.195 | 1,100 | 11/18/2024 |
5.0.194 | 379 | 11/16/2024 |
5.0.193 | 863 | 10/14/2024 |
5.0.192 | 395 | 10/9/2024 |
5.0.191 | 381 | 10/7/2024 |
5.0.190 | 362 | 10/3/2024 |
5.0.189 | 511 | 9/23/2024 |
5.0.188 | 406 | 9/18/2024 |
5.0.187 | 405 | 9/16/2024 |
5.0.186 | 535 | 9/8/2024 |
5.0.185 | 787 | 8/24/2024 |
5.0.184 | 628 | 8/9/2024 |
5.0.183 | 571 | 8/1/2024 |
5.0.182 | 315 | 7/28/2024 |
5.0.181 | 649 | 7/4/2024 |
5.0.180 | 574 | 6/23/2024 |
5.0.179 | 504 | 6/13/2024 |
5.0.178 | 587 | 5/30/2024 |
5.0.177 | 386 | 5/22/2024 |
5.0.176 | 524 | 5/13/2024 |
5.0.175 | 595 | 5/5/2024 |
5.0.174 | 475 | 4/26/2024 |
5.0.173 | 446 | 4/25/2024 |
5.0.172 | 492 | 4/12/2024 |
5.0.171 | 615 | 4/4/2024 |
5.0.170 | 787 | 3/12/2024 |
5.0.169 | 1,318 | 2/21/2024 |
5.0.168 | 830 | 2/14/2024 |
5.0.167 | 769 | 2/12/2024 |
5.0.166 | 975 | 2/6/2024 |
5.0.165 | 1,139 | 1/31/2024 |
5.0.164 | 1,777 | 1/10/2024 |
5.0.163 | 1,445 | 12/15/2023 |
5.0.162 | 1,268 | 12/8/2023 |
5.0.161 | 1,325 | 11/28/2023 |
5.0.160 | 1,123 | 11/28/2023 |
5.0.159 | 2,370 | 10/8/2023 |
5.0.158 | 1,428 | 9/29/2023 |
5.0.157 | 1,526 | 9/19/2023 |
5.0.156 | 1,073 | 9/18/2023 |
5.0.155 | 2,156 | 7/30/2023 |
5.0.154 | 1,789 | 7/10/2023 |
5.0.153 | 1,516 | 7/8/2023 |
5.0.152 | 1,583 | 7/5/2023 |
5.0.151 | 1,591 | 6/22/2023 |
5.0.150 | 1,580 | 6/19/2023 |
5.0.149 | 2,052 | 5/14/2023 |
5.0.148 | 1,682 | 5/8/2023 |
5.0.147 | 1,909 | 4/21/2023 |
5.0.146 | 2,102 | 4/17/2023 |
5.0.145 | 1,972 | 4/7/2023 |
5.0.144 | 1,910 | 4/3/2023 |
5.0.143 | 2,457 | 3/6/2023 |
5.0.142 | 2,805 | 2/23/2023 |
5.0.141 | 2,163 | 2/13/2023 |
5.0.140 | 2,961 | 2/9/2023 |
5.0.139 | 2,832 | 2/8/2023 |
5.0.138 | 2,937 | 2/2/2023 |
5.0.137 | 3,028 | 1/30/2023 |
5.0.136 | 3,967 | 1/3/2023 |
5.0.135 | 3,185 | 12/30/2022 |
5.0.134 | 3,737 | 12/12/2022 |
5.0.133 | 3,493 | 12/8/2022 |
5.0.132 | 4,179 | 11/11/2022 |
5.0.131 | 18,610 | 11/1/2022 |
5.0.130 | 20,924 | 10/16/2022 |
5.0.129 | 42,428 | 9/8/2022 |
5.0.128 | 42,298 | 8/29/2022 |
5.0.127 | 42,709 | 8/24/2022 |
5.0.126 | 43,371 | 7/26/2022 |
5.0.125 | 42,430 | 7/19/2022 |
5.0.124 | 43,982 | 5/13/2022 |
5.0.123 | 42,255 | 4/30/2022 |
5.0.122 | 7,721 | 3/29/2022 |
5.0.121 | 44,107 | 3/25/2022 |
5.0.120 | 43,038 | 3/17/2022 |
5.0.119 | 42,384 | 2/15/2022 |
5.0.118 | 44,385 | 2/11/2022 |
5.0.117 | 7,585 | 2/2/2022 |
5.0.116 | 7,550 | 1/28/2022 |
5.0.115 | 42,237 | 1/26/2022 |
5.0.114 | 41,668 | 1/21/2022 |
5.0.113 | 41,515 | 1/21/2022 |
5.0.112 | 40,090 | 1/13/2022 |
5.0.111 | 25,988 | 12/29/2021 |
5.0.110 | 25,909 | 12/20/2021 |
5.0.109 | 26,000 | 12/11/2021 |
5.0.108 | 25,809 | 12/6/2021 |
5.0.107 | 27,504 | 11/29/2021 |
5.0.106 | 25,758 | 11/22/2021 |
5.0.105 | 26,632 | 11/13/2021 |
5.0.104 | 28,457 | 11/8/2021 |
5.0.103 | 29,100 | 11/5/2021 |
5.0.102 | 29,548 | 10/21/2021 |
5.0.101 | 28,594 | 10/14/2021 |
5.0.100 | 28,668 | 10/14/2021 |
5.0.99 | 2,025 | 10/13/2021 |
5.0.98 | 4,192 | 10/13/2021 |
5.0.97 | 29,272 | 10/11/2021 |
5.0.96 | 31,382 | 10/8/2021 |
5.0.95 | 3,812 | 10/7/2021 |
5.0.94 | 29,278 | 10/7/2021 |
5.0.93 | 30,339 | 9/23/2021 |
5.0.92 | 28,850 | 9/7/2021 |
5.0.91 | 29,691 | 7/31/2021 |
5.0.90 | 28,296 | 7/30/2021 |
5.0.89 | 27,983 | 7/30/2021 |
5.0.88 | 27,904 | 7/19/2021 |
5.0.87 | 28,465 | 7/13/2021 |
5.0.86 | 28,542 | 7/5/2021 |
5.0.85 | 29,858 | 6/16/2021 |
5.0.84 | 29,103 | 6/4/2021 |
5.0.83 | 28,695 | 5/15/2021 |
5.0.82 | 28,821 | 4/30/2021 |
5.0.81 | 28,684 | 4/26/2021 |
5.0.80 | 29,061 | 4/19/2021 |
5.0.79 | 28,353 | 4/16/2021 |
5.0.78 | 28,207 | 4/13/2021 |
5.0.77 | 27,973 | 4/12/2021 |
5.0.76 | 28,837 | 4/8/2021 |
5.0.75 | 28,255 | 4/7/2021 |
5.0.74 | 28,070 | 4/6/2021 |
5.0.73 | 28,357 | 3/29/2021 |
5.0.72 | 28,505 | 3/28/2021 |
5.0.71 | 28,559 | 3/26/2021 |
5.0.70 | 28,070 | 3/26/2021 |
5.0.69 | 28,190 | 3/24/2021 |
5.0.68 | 27,657 | 3/23/2021 |
5.0.67 | 26,592 | 3/18/2021 |
5.0.66 | 26,272 | 3/17/2021 |
5.0.65 | 26,839 | 3/12/2021 |
5.0.64 | 26,624 | 3/4/2021 |
5.0.63 | 2,883 | 3/4/2021 |
5.0.62 | 26,566 | 2/26/2021 |
5.0.61 | 26,936 | 2/17/2021 |
5.0.60 | 26,344 | 2/15/2021 |
5.0.59 | 26,105 | 2/13/2021 |
5.0.58 | 26,386 | 2/12/2021 |
5.0.57 | 26,951 | 2/7/2021 |
5.0.56 | 26,396 | 2/2/2021 |
5.0.55 | 26,401 | 2/2/2021 |
5.0.54 | 26,979 | 1/26/2021 |
5.0.53 | 26,479 | 1/25/2021 |
5.0.52 | 26,155 | 1/25/2021 |
5.0.51 | 26,786 | 1/21/2021 |
5.0.50 | 26,333 | 1/20/2021 |
5.0.49 | 26,240 | 1/19/2021 |
5.0.48 | 25,314 | 1/16/2021 |
5.0.47 | 26,744 | 1/14/2021 |
5.0.46 | 27,366 | 12/29/2020 |
5.0.45 | 27,477 | 12/23/2020 |
5.0.44 | 26,829 | 12/18/2020 |
5.0.43 | 52,335 | 12/14/2020 |
5.0.42 | 29,564 | 12/10/2020 |
5.0.41 | 27,602 | 12/1/2020 |
5.0.41-a3 | 2,154 | 11/30/2020 |
5.0.41-a2 | 2,093 | 11/30/2020 |
5.0.40 | 29,773 | 11/29/2020 |
5.0.39 | 26,182 | 11/22/2020 |
5.0.38 | 26,047 | 11/22/2020 |
5.0.38-a7 | 19,776 | 11/22/2020 |
5.0.38-a6 | 20,147 | 11/22/2020 |
5.0.37 | 29,136 | 11/13/2020 |
5.0.36 | 26,971 | 10/11/2020 |
5.0.35 | 26,958 | 9/20/2020 |
5.0.34 | 25,632 | 9/18/2020 |
5.0.33 | 26,603 | 9/15/2020 |
5.0.32 | 25,724 | 9/9/2020 |
5.0.31 | 25,775 | 9/3/2020 |
5.0.30 | 26,186 | 8/21/2020 |
5.0.29 | 26,258 | 8/11/2020 |
5.0.28 | 25,944 | 8/10/2020 |
5.0.27 | 26,487 | 8/10/2020 |
5.0.26 | 25,728 | 7/28/2020 |
5.0.25 | 25,596 | 7/19/2020 |
5.0.24 | 25,463 | 7/9/2020 |
5.0.23 | 25,399 | 7/7/2020 |
5.0.22 | 26,616 | 6/10/2020 |
5.0.21 | 26,271 | 6/9/2020 |
5.0.20 | 26,354 | 6/9/2020 |
5.0.19 | 26,671 | 6/4/2020 |
5.0.18 | 26,590 | 6/2/2020 |
5.0.17 | 26,331 | 5/29/2020 |
5.0.16 | 26,383 | 5/25/2020 |
5.0.15 | 26,378 | 5/21/2020 |
5.0.14 | 26,385 | 5/14/2020 |
5.0.13 | 26,429 | 5/12/2020 |
5.0.12 | 26,692 | 5/11/2020 |
5.0.11 | 26,679 | 5/9/2020 |
5.0.10 | 26,546 | 5/5/2020 |
5.0.9 | 26,769 | 5/4/2020 |
5.0.8 | 2,766 | 4/24/2020 |
5.0.7 | 2,772 | 4/22/2020 |
5.0.6 | 27,856 | 4/18/2020 |
5.0.5 | 26,109 | 4/16/2020 |
5.0.4 | 21,986 | 4/15/2020 |
5.0.3 | 23,484 | 4/12/2020 |
5.0.2 | 23,069 | 4/4/2020 |
5.0.1 | 8,962 | 3/27/2020 |
5.0.0 | 8,875 | 3/26/2020 |