Table of Contents

Delegate PositionPriceChangedHandler

Namespace
ATAS.DataFeedsCore
Assembly
ATAS.DataFeedsCore.dll

Handles a best price of a security that a connector received without publishing it as market data, so the trading core can value the positions in the security with it (ATAS.DataFeedsCore.IPositionPriceSource).

Not in ATAS 8.0.15 yet: available from the next version.

public delegate void PositionPriceChangedHandler(IDataFeedConnector connector, Security security, MarketDataType type, decimal price)

Parameters

connector IDataFeedConnector

The connector that received the price.

security Security

The security of the price.

type MarketDataType

Which best price it is: the bid or the ask.

price decimal

The price.

Extension Methods

Constructors

PositionPriceChangedHandler(object, nint)

public PositionPriceChangedHandler(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(IDataFeedConnector, Security, MarketDataType, decimal, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(IDataFeedConnector connector, Security security, MarketDataType type, decimal price, AsyncCallback callback, object @object)

Parameters

connector IDataFeedConnector
security Security
type MarketDataType
price decimal
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(IDataFeedConnector, Security, MarketDataType, decimal)

public virtual void Invoke(IDataFeedConnector connector, Security security, MarketDataType type, decimal price)

Parameters

connector IDataFeedConnector
security Security
type MarketDataType
price decimal