Class QuandlMessageAdapter
The message adapter for StockSharp.Quandl.
Inherited Members
Namespace: StockSharp.Quandl
Assembly: StockSharp.Quandl.dll
Syntax
[CategoryLoc("America")]
[MediaIcon("Quandl_logo.png")]
[DisplayNameLoc("Quandl")]
[DescriptionLoc("Str1770", "Quandl")]
[MessageAdapterCategory]
public class QuandlMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ITokenAdapter
Constructors
QuandlMessageAdapter(IdGenerator)
Initializes a new instance of the QuandlMessageAdapter.
Declaration
public QuandlMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Transaction id generator. |
Properties
AllTimeFrames
Possible time-frames.
Declaration
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TimeSpan> |
DatabaseCode
The database Quandl identifier.
Declaration
public string DatabaseCode { get; set; }
Property Value
Type | Description |
---|---|
String |
Token
Token.
Declaration
public SecureString Token { get; set; }
Property Value
Type | Description |
---|---|
SecureString |
Methods
GetTimeFrames(SecurityId, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Get possible time-frames for the specified instrument.
Declaration
protected override IEnumerable<TimeSpan> GetTimeFrames(SecurityId securityId, Nullable<DateTimeOffset> from, Nullable<DateTimeOffset> to)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | securityId | Security ID. |
Nullable<DateTimeOffset> | from | The initial date from which you need to get data. |
Nullable<DateTimeOffset> | to | The final date by which you need to get data. |
Returns
Type | Description |
---|---|
IEnumerable<TimeSpan> | Possible time-frames. |
Overrides
IsAllDownloadingSupported(DataType)
Is for the specified dataType
all securities downloading enabled.
Declaration
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Data type info. |
Returns
Type | Description |
---|---|
Boolean | Check result. |
Overrides
Load(SettingsStorage)
Load settings.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Overrides
OnSendInMessage(Message)
Send message.
Declaration
protected override bool OnSendInMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | Message. |
Returns
Type | Description |
---|---|
Boolean | true if the specified message was processed successfully, otherwise, false. |
Overrides
Save(SettingsStorage)
Save settings.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Implements
Ecng.Common.ICloneable<>
Ecng.Serialization.IPersistable