Interface ITransactionProvider
- Namespace
- StockSharp.BusinessEntities
- Assembly
- StockSharp.BusinessEntities.dll
Transactional operations provider interface.
public interface ITransactionProvider
- Extension Methods
Properties
TransactionIdGenerator
Transaction id generator.
IdGenerator TransactionIdGenerator { get; }
Property Value
Methods
CancelOrder(Order)
Cancel the order.
void CancelOrder(Order order)
Parameters
orderOrderThe 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
isStopOrderbool?true, if cancel only a stop orders, false - if regular orders, null - both.
portfolioPortfolioPortfolio. If the value is equal to null, then the portfolio does not match the orders cancel filter.
directionSides?Order side. If the value is null, the direction does not use.
boardExchangeBoardTrading board. If the value is equal to null, then the board does not match the orders cancel filter.
securitySecurityInstrument. If the value is equal to null, then the instrument does not match the orders cancel filter.
securityTypeSecurityTypes?Security type. If the value is null, the type does not use.
transactionIdlong?Order cancellation transaction id.
EditOrder(Order, Order)
Edit the order.
void EditOrder(Order order, Order changes)
Parameters
IsOrderEditable(Order)
Determines the specified order can be edited by EditOrder(Order, Order).
bool? IsOrderEditable(Order order)
Parameters
orderOrderOrder.
Returns
IsOrderReplaceable(Order)
Determines the specified order can be replaced by ReRegisterOrder(Order, Order).
bool? IsOrderReplaceable(Order order)
Parameters
orderOrderOrder.
Returns
ReRegisterOrder(Order, Order)
Reregister the order.
void ReRegisterOrder(Order oldOrder, Order newOrder)
Parameters
RegisterOrder(Order)
Register new order.
void RegisterOrder(Order order)
Parameters
orderOrderRegistration details.
Events
LookupPortfoliosResult
Lookup result PortfolioLookupMessage received.
[Obsolete("Use ISubscriptionProvider.PortfolioReceived and ISubscriptionProvider.SubscriptionStopped events.")]
event Action<PortfolioLookupMessage, IEnumerable<Portfolio>, Exception> LookupPortfoliosResult
Event Type
LookupPortfoliosResult2
Lookup result PortfolioLookupMessage received.
[Obsolete("Use ISubscriptionProvider.PortfolioReceived and ISubscriptionProvider.SubscriptionStopped events.")]
event Action<PortfolioLookupMessage, IEnumerable<Portfolio>, IEnumerable<Portfolio>, Exception> LookupPortfoliosResult2
Event Type
MassOrderCancelFailed
Mass order cancellation errors event.
event Action<long, Exception> MassOrderCancelFailed
Event Type
MassOrderCancelFailed2
Mass order cancellation errors event.
event Action<long, Exception, DateTimeOffset> MassOrderCancelFailed2
Event Type
MassOrderCanceled
Mass order cancellation event.
event Action<long> MassOrderCanceled
Event Type
MassOrderCanceled2
Mass order cancellation event.
event Action<long, DateTimeOffset> MassOrderCanceled2
Event Type
NewMyTrade
Own trade received.
[Obsolete("Use ISubscriptionProvider.OwnTradeReceived event.")]
event Action<MyTrade> NewMyTrade
Event Type
NewOrder
Order received.
[Obsolete("Use ISubscriptionProvider.OrderReceived event.")]
event Action<Order> NewOrder
Event Type
OrderCancelFailed
Order cancellation error event.
[Obsolete("Use ISubscriptionProvider.OrderCancelFailReceived event.")]
event Action<OrderFail> OrderCancelFailed
Event Type
OrderChanged
Order changed (cancelled, matched).
[Obsolete("Use ISubscriptionProvider.OrderReceived event.")]
event Action<Order> OrderChanged
Event Type
OrderEditFailed
EditOrder(Order, Order) error result event.
[Obsolete("Use ISubscriptionProvider.OrderEditFailReceived event.")]
event Action<long, OrderFail> OrderEditFailed
Event Type
OrderEdited
EditOrder(Order, Order) success result event.
[Obsolete("Use ISubscriptionProvider.OrderReceived event.")]
event Action<long, Order> OrderEdited
Event Type
OrderRegisterFailed
Order registration error event.
[Obsolete("Use ISubscriptionProvider.OrderRegisterFailReceived event.")]
event Action<OrderFail> OrderRegisterFailed
Event Type
OrderStatusFailed2
Failed order status request event.
[Obsolete("Use ISubscriptionProvider.SubscriptionFailed event.")]
event Action<long, Exception, DateTimeOffset> OrderStatusFailed2