Click or drag to resize

IConnectorRegisterSecurity Method

To start getting new information (for example, LastTrade or BestBid) by the instrument.

Namespace:  StockSharp.BusinessEntities
Assembly:  StockSharp.BusinessEntities (in StockSharp.BusinessEntities.dll) Version: 4.4.14.0 (4.4.14)
Syntax
C#
void RegisterSecurity(
	Security security,
	Nullable<DateTimeOffset> from = null,
	Nullable<DateTimeOffset> to = null,
	Nullable<long> count = null,
	MarketDataBuildModes buildMode = MarketDataBuildModes.LoadAndBuild,
	Nullable<MarketDataTypes> buildFrom = null
)

Parameters

security
Type: StockSharp.BusinessEntitiesSecurity
The instrument by which new information getting should be started.
from (Optional)
Type: SystemNullableDateTimeOffset
The initial date from which you need to get data.
to (Optional)
Type: SystemNullableDateTimeOffset
The final date by which you need to get data.
count (Optional)
Type: SystemNullableInt64
Max count.
buildMode (Optional)
Type: StockSharp.MessagesMarketDataBuildModes
Build mode.
buildFrom (Optional)
Type: SystemNullableMarketDataTypes
Which market-data type is used as a source value.
See Also