Class RithmicMessageAdapter
- Namespace
- StockSharp.Rithmic
- Assembly
- StockSharp.Rithmic.dll
The message adapter for StockSharp.Rithmic.
[OrderCondition(typeof(RithmicOrderCondition))]
[MediaIcon("Rithmic_logo.png")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Rithmic", Description = "StockConnector", GroupName = "America")]
[MessageAdapterCategory(MessageAdapterCategories.US|MessageAdapterCategories.Stock|MessageAdapterCategories.RealTime|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles|MessageAdapterCategories.MarketDepth|MessageAdapterCategories.Level1|MessageAdapterCategories.OrderLog|MessageAdapterCategories.Transactions|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class RithmicMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter, IDemoAdapter
- Inheritance
-
RithmicMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
RithmicMessageAdapter(IdGenerator)
Initializes a new instance of the RithmicMessageAdapter.
public RithmicMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
AdminConnectionPoint
Connection point for administrative functions (initialization/deinitialization).
[Display(ResourceType = typeof(LocalizedStrings), Name = "AdminServer", Description = "AdminConnectionPoint", GroupName = "Connection", Order = 1)]
public string AdminConnectionPoint { get; set; }
Property Value
AllTimeFrames
Possible time-frames.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
DomainName
Domain name.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Domain", Description = "DomainName", GroupName = "Connection", Order = 7)]
public string DomainName { get; set; }
Property Value
DomainServerAddress
Domain address.
[Display(ResourceType = typeof(LocalizedStrings), Name = "DomainAddress", Description = "DomainAddressDesc", GroupName = "Connection", Order = 6)]
public string DomainServerAddress { get; set; }
Property Value
FeatureName
Feature name.
public override string FeatureName { get; }
Property Value
HistoricalConnectionPoint
Connection point for access to history data.
[Display(ResourceType = typeof(LocalizedStrings), Name = "History", Description = "HistoricalConnectionPoint", GroupName = "Connection", Order = 5)]
public string HistoricalConnectionPoint { get; set; }
Property Value
HistoricalPassword
Additional password. Password used for authentication with the history plant.
[Display(ResourceType = typeof(LocalizedStrings), Name = "HistoricalPassword", Description = "HistoricalPasswordDesc", GroupName = "Connection", Order = 12)]
public SecureString HistoricalPassword { get; set; }
Property Value
HistoricalUserName
Additional login. User id used for authentication with the history plant.
[Display(ResourceType = typeof(LocalizedStrings), Name = "HistoricalUserName", Description = "HistoricalUserNameDesc", GroupName = "Connection", Order = 11)]
public string HistoricalUserName { get; set; }
Property Value
IsReplaceCommandEditCurrent
Is the OrderReplaceMessage command edit a current order.
public override bool IsReplaceCommandEditCurrent { get; }
Property Value
LicenseServerAddress
Licenses server address.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Licenses", Description = "LicenseServerAddress", GroupName = "Connection", Order = 8)]
public string LicenseServerAddress { get; set; }
Property Value
LocalBrokerAddress
Broker address.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Broker", Description = "LocalBrokerAddress", GroupName = "Connection", Order = 9)]
public string LocalBrokerAddress { get; set; }
Property Value
LogFileName
Path to log file.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Log", Description = "PathLogsDesc", GroupName = "General", Order = 5)]
public string LogFileName { get; set; }
Property Value
LoggerAddress
Logger address.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Logs", Description = "LoggerAddress", GroupName = "Connection", Order = 10)]
public string LoggerAddress { get; set; }
Property Value
Login
Login.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "LoginDot", GroupName = "General", Order = 0)]
public string Login { get; set; }
Property Value
MarketDataConnectionPoint
Connection point to market data.
[Display(ResourceType = typeof(LocalizedStrings), Name = "MarketData", Description = "MarketDataConnectionPoint", GroupName = "Connection", Order = 2)]
public string MarketDataConnectionPoint { get; set; }
Property Value
Password
Password.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "PasswordDot", GroupName = "General", Order = 1)]
public SecureString Password { get; set; }
Property Value
PositionConnectionPoint
Connection point for access to portfolios and positions information.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Positions", Description = "PositionConnectionPoint", GroupName = "Connection", Order = 4)]
public string PositionConnectionPoint { get; set; }
Property Value
Server
Server type.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Server", Description = "Server", GroupName = "Connection", Order = 0)]
public RithmicServers? Server { get; set; }
Property Value
TimeFrames
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> TimeFrames { get; }
Property Value
TransactionConnectionPoint
Connection point to the transactions execution system.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Transactions", Description = "TransactionConnectionPoint", GroupName = "Connection", Order = 3)]
public string TransactionConnectionPoint { get; set; }
Property Value
TransactionalLogin
Additional login. Used when transaction sending is carried out to a separate server.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "TransactionalLogin", GroupName = "Connection", Order = 3)]
public string TransactionalLogin { get; set; }
Property Value
TransactionalPassword
Additional password. Used when transaction sending is carried out to a separate server.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "TransactionalPassword", GroupName = "Connection", Order = 4)]
public SecureString TransactionalPassword { get; set; }
Property Value
Methods
GetHistoryStepSize(SecurityId, DataType, out TimeSpan)
Get maximum size step allowed for historical download.
public override TimeSpan GetHistoryStepSize(SecurityId securityId, DataType dataType, out TimeSpan iterationInterval)
Parameters
securityId
SecurityIddataType
DataTypeData type info.
iterationInterval
TimeSpanInterval between iterations.
Returns
- TimeSpan
Step.
IsSupportCandlesPriceLevels(MarketDataMessage)
Support candles PriceLevels.
public override bool IsSupportCandlesPriceLevels(MarketDataMessage subscription)
Parameters
subscription
MarketDataMessage
Returns
- bool
Check result.
IsSupportCandlesUpdates(MarketDataMessage)
Support candles subscription and live updates.
public override bool IsSupportCandlesUpdates(MarketDataMessage subscription)
Parameters
subscription
MarketDataMessage
Returns
- bool
Check result.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()