Class ETradeMessageAdapter
- Namespace
- StockSharp.ETrade
- Assembly
- StockSharp.ETrade.dll
The messages adapter for ETrade.
[OrderCondition(typeof(ETradeOrderCondition))]
[MediaIcon("ETrade_logo.svg")]
public class ETradeMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, IKeySecretAdapter, IDemoAdapter
- Inheritance
-
ETradeMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
ETradeMessageAdapter(IdGenerator)
Initializes a new instance of the ETradeMessageAdapter.
public ETradeMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
AccessToken
OAuth access token. Required to restore connection. Saved AccessToken can be valid until EST midnight.
[Browsable(false)]
public OAuthToken AccessToken { get; set; }
Property Value
FeatureName
Feature name.
public override string FeatureName { get; }
Property Value
IsDemo
Connect to demo trading instead of real trading server.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Demo", Description = "Str3369", GroupName = "Str174", Order = 2)]
public bool IsDemo { get; set; }
Property Value
Key
Key.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Str3304", Description = "Str3304Dot", GroupName = "Str174", Order = 0)]
public SecureString Key { get; set; }
Property Value
Secret
Secret.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Str3306", Description = "Str3307", GroupName = "Str174", Order = 1)]
public SecureString Secret { get; set; }
Property Value
VerificationCode
Verification code, received by user in browser, after confirming program's permission to work.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Str3370", Description = "Str3371", GroupName = "Str174", Order = 3)]
public string VerificationCode { get; set; }
Property Value
Methods
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()