Table of Contents

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 IdGenerator

Transaction 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

OAuthToken

FeatureName

Feature name.

public override string FeatureName { get; }

Property Value

string

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

bool

Key

Key.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Str3304", Description = "Str3304Dot", GroupName = "Str174", Order = 0)]
public SecureString Key { get; set; }

Property Value

SecureString

Secret

Secret.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Str3306", Description = "Str3307", GroupName = "Str174", Order = 1)]
public SecureString Secret { get; set; }

Property Value

SecureString

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

string

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnSendInMessage(Message)

Send message.

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ToString()

public override string ToString()

Returns

string