Table of Contents

Interface ITransactionProvider

Namespace
StockSharp.BusinessEntities
Assembly
StockSharp.BusinessEntities.dll

Transactional operations provider interface.

public interface ITransactionProvider : IPositionProvider, IPortfolioProvider
Inherited Members
Extension Methods

Properties

TransactionIdGenerator

Transaction id generator.

IdGenerator TransactionIdGenerator { get; }

Property Value

IdGenerator

Methods

CancelOrder(Order)

Cancel the order.

void CancelOrder(Order order)

Parameters

order Order

The order which should be canceled.

CancelOrders(bool?, Portfolio, Sides?, ExchangeBoard, Security, SecurityTypes?, long?)

Cancel orders by filter.

void CancelOrders(bool? isStopOrder = null, Portfolio portfolio = null, Sides? direction = null, ExchangeBoard board = null, Security security = null, SecurityTypes? securityType = null, long? transactionId = null)

Parameters

isStopOrder bool?

true, if cancel only a stop orders, false - if regular orders, null - both.

portfolio Portfolio

Portfolio. If the value is equal to null, then the portfolio does not match the orders cancel filter.

direction Sides?

Order side. If the value is null, the direction does not use.

board ExchangeBoard

Trading board. If the value is equal to null, then the board does not match the orders cancel filter.

security Security

Instrument. If the value is equal to null, then the instrument does not match the orders cancel filter.

securityType SecurityTypes?

Security type. If the value is null, the type does not use.

transactionId long?

Order cancellation transaction id.

EditOrder(Order, Order)

Edit the order.

void EditOrder(Order order, Order changes)

Parameters

order Order

Order.

changes Order

Order changes.

IsOrderEditable(Order)

Determines the specified order can be edited by EditOrder(Order, Order).

bool? IsOrderEditable(Order order)

Parameters

order Order

Order.

Returns

bool?

true if the order is editable, false order cannot be changed, null means no information.

IsOrderReplaceable(Order)

Determines the specified order can be replaced by ReRegisterOrder(Order, Order).

bool? IsOrderReplaceable(Order order)

Parameters

order Order

Order.

Returns

bool?

true if the order is replaceable, false order cannot be replaced, null means no information.

ReRegisterOrder(Order, Order)

Reregister the order.

void ReRegisterOrder(Order oldOrder, Order newOrder)

Parameters

oldOrder Order

Cancelling order.

newOrder Order

New order to register.

RegisterOrder(Order)

Register new order.

void RegisterOrder(Order order)

Parameters

order Order

Registration details.

RegisterPortfolio(Portfolio)

Subscribe on the portfolio changes.

[Obsolete("Use Subscribe method.")]
void RegisterPortfolio(Portfolio portfolio)

Parameters

portfolio Portfolio

Portfolio for subscription.

UnRegisterPortfolio(Portfolio)

Unsubscribe from the portfolio changes.

[Obsolete("Use UnSubscribe method.")]
void UnRegisterPortfolio(Portfolio portfolio)

Parameters

portfolio Portfolio

Portfolio for unsubscription.

Events

LookupPortfoliosResult

Lookup result PortfolioLookupMessage received.

event Action<PortfolioLookupMessage, IEnumerable<Portfolio>, Exception> LookupPortfoliosResult

Event Type

Action<PortfolioLookupMessage, IEnumerable<Portfolio>, Exception>

LookupPortfoliosResult2

Lookup result PortfolioLookupMessage received.

event Action<PortfolioLookupMessage, IEnumerable<Portfolio>, IEnumerable<Portfolio>, Exception> LookupPortfoliosResult2

Event Type

Action<PortfolioLookupMessage, IEnumerable<Portfolio>, IEnumerable<Portfolio>, Exception>

MassOrderCancelFailed

Mass order cancellation errors event.

event Action<long, Exception> MassOrderCancelFailed

Event Type

Action<long, Exception>

MassOrderCancelFailed2

Mass order cancellation errors event.

event Action<long, Exception, DateTimeOffset> MassOrderCancelFailed2

Event Type

Action<long, Exception, DateTimeOffset>

MassOrderCanceled

Mass order cancellation event.

event Action<long> MassOrderCanceled

Event Type

Action<long>

MassOrderCanceled2

Mass order cancellation event.

event Action<long, DateTimeOffset> MassOrderCanceled2

Event Type

Action<long, DateTimeOffset>

NewMyTrade

Own trade received.

event Action<MyTrade> NewMyTrade

Event Type

Action<MyTrade>

NewOrder

Order received.

event Action<Order> NewOrder

Event Type

Action<Order>

NewStopOrder

Stop-order received.

[Obsolete("Use NewOrder event.")]
event Action<Order> NewStopOrder

Event Type

Action<Order>

OrderCancelFailed

Order cancellation error event.

event Action<OrderFail> OrderCancelFailed

Event Type

Action<OrderFail>

OrderChanged

Order changed (cancelled, matched).

event Action<Order> OrderChanged

Event Type

Action<Order>

OrderEditFailed

EditOrder(Order, Order) error result event.

event Action<long, OrderFail> OrderEditFailed

Event Type

Action<long, OrderFail>

OrderEdited

EditOrder(Order, Order) success result event.

event Action<long, Order> OrderEdited

Event Type

Action<long, Order>

OrderRegisterFailed

Order registration error event.

event Action<OrderFail> OrderRegisterFailed

Event Type

Action<OrderFail>

OrderStatusFailed

Failed order status request event.

[Obsolete("Use SubscriptionFailed event.")]
event Action<long, Exception> OrderStatusFailed

Event Type

Action<long, Exception>

OrderStatusFailed2

Failed order status request event.

[Obsolete("Use SubscriptionFailed event.")]
event Action<long, Exception, DateTimeOffset> OrderStatusFailed2

Event Type

Action<long, Exception, DateTimeOffset>

StopOrderCancelFailed

Stop-order cancellation error event.

[Obsolete("Use OrderCancelFailed event.")]
event Action<OrderFail> StopOrderCancelFailed

Event Type

Action<OrderFail>

StopOrderChanged

Stop order state change event.

[Obsolete("Use OrderChanged event.")]
event Action<Order> StopOrderChanged

Event Type

Action<Order>

StopOrderRegisterFailed

Stop-order registration error event.

[Obsolete("Use OrderRegisterFailed event.")]
event Action<OrderFail> StopOrderRegisterFailed

Event Type

Action<OrderFail>