OandaMessageAdapter
The messages adapter for OANDA.
Inherits: MessageAdapter
Implements: ITokenAdapter, IDemoAdapter
Constructors
OandaMessageAdapter(IdGenerator)
Initializes a new instance of the OandaMessageAdapter.
- transactionIdGenerator
- Transaction id generator.
Properties
AllTimeFrames : IEnumerable<TimeSpan>
Possible time-frames.
AssociatedBoards : string[]
The adapter can process subscription only with instruments associated with the specified board.
FeatureName : string
Feature name.
IsSupportExecutionsPnL : bool
Adapter fills PnL.
IsSupportTransactionLog : bool
Adapter translates orders changes on reply of OrderStatusMessage.
LogOnlyTransactions : bool
Write log messages only for transaction stream.
Token : SecureString
Token-rules, it is associated with (for example, for rule ISubscriptionProvider) the order will be a token). If rule is not associated with anything, will be returned.
UseCompression : bool
Compression.
Methods
IsAllDownloadingSupported(DataType) : bool
Is for the specified all securities downloading enabled.
- dataType
- Data type info.
Returns: Check result.
OnMarketDepthSubscriptionAsync(MarketDataMessage, CancellationToken) : ValueTask
Handles subscription request for market depth data. Override to provide implementation for market depth subscription processing. The default implementation throws NotSupported.
- mdMsg
- Market data subscription message.
- cancellationToken
- Cancellation token to cancel the operation.
Returns: A ValueTask representing the asynchronous operation.
OnTFCandlesSubscriptionAsync(MarketDataMessage, CancellationToken) : ValueTask
Handles subscription request for time-frame candles (TF candles) data. Override to provide implementation for TF candles subscription processing. The default implementation throws NotSupported.
- mdMsg
- Market data subscription message.
- cancellationToken
- Cancellation token to cancel the operation.
Returns: A ValueTask representing the asynchronous operation.
Fields
DefaultHeartbeatInterval : TimeSpan
Default value for HeartbeatInterval.