Table of Contents

Class TradierMessageAdapter

Namespace
StockSharp.Tradier
Assembly
StockSharp.Tradier.dll

The message adapter for StockSharp.Tradier.

[OrderCondition(typeof(TradierOrderCondition))]
[MediaIcon("Tradier_logo.png")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Tradier", Description = "StockConnector", GroupName = "America")]
[MessageAdapterCategory(MessageAdapterCategories.US|MessageAdapterCategories.RealTime|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles|MessageAdapterCategories.Level1|MessageAdapterCategories.Transactions|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class TradierMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ITokenAdapter, IDemoAdapter
Inheritance
TradierMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

TradierMessageAdapter(IdGenerator)

Initializes a new instance of the TradierMessageAdapter.

public TradierMessageAdapter(IdGenerator transactionIdGenerator)

Parameters

transactionIdGenerator IdGenerator

Transaction id generator.

Properties

AllTimeFrames

Possible time-frames.

public static IEnumerable<TimeSpan> AllTimeFrames { get; }

Property Value

IEnumerable<TimeSpan>

BalanceCheckInterval

Balance check interval. Required in case of deposit and withdraw actions.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Balance", Description = "BalanceCheckInterval", GroupName = "Connection", Order = 3)]
public TimeSpan BalanceCheckInterval { get; set; }

Property Value

TimeSpan

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 = "DemoMode", GroupName = "Connection", Order = 1)]
public bool IsDemo { get; set; }

Property Value

bool

IsReplaceCommandEditCurrent

Is the OrderReplaceMessage command edit a current order.

public override bool IsReplaceCommandEditCurrent { get; }

Property Value

bool

TimeFrames

Get possible time-frames for the specified instrument.

protected override IEnumerable<TimeSpan> TimeFrames { get; }

Property Value

IEnumerable<TimeSpan>

Token

Token.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Token", Description = "AccessToken", GroupName = "Connection", Order = 0)]
public SecureString Token { get; set; }

Property Value

SecureString

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