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
OrderThe 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
PortfolioPortfolio. 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
ExchangeBoardTrading board. If the value is equal to null, then the board does not match the orders cancel filter.
security
SecurityInstrument. 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
IsOrderEditable(Order)
Determines the specified order can be edited by EditOrder(Order, Order).
bool? IsOrderEditable(Order order)
Parameters
order
OrderOrder.
Returns
IsOrderReplaceable(Order)
Determines the specified order can be replaced by ReRegisterOrder(Order, Order).
bool? IsOrderReplaceable(Order order)
Parameters
order
OrderOrder.
Returns
ReRegisterOrder(Order, Order)
Reregister the order.
void ReRegisterOrder(Order oldOrder, Order newOrder)
Parameters
RegisterOrder(Order)
Register new order.
void RegisterOrder(Order order)
Parameters
order
OrderRegistration details.
RegisterPortfolio(Portfolio)
Subscribe on the portfolio changes.
[Obsolete("Use Subscribe method.")]
void RegisterPortfolio(Portfolio portfolio)
Parameters
portfolio
PortfolioPortfolio for subscription.
UnRegisterPortfolio(Portfolio)
Unsubscribe from the portfolio changes.
[Obsolete("Use UnSubscribe method.")]
void UnRegisterPortfolio(Portfolio portfolio)
Parameters
portfolio
PortfolioPortfolio for unsubscription.
Events
LookupPortfoliosResult
Lookup result PortfolioLookupMessage received.
event Action<PortfolioLookupMessage, IEnumerable<Portfolio>, Exception> LookupPortfoliosResult
Event Type
LookupPortfoliosResult2
Lookup result PortfolioLookupMessage received.
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.
event Action<MyTrade> NewMyTrade
Event Type
NewOrder
Order received.
event Action<Order> NewOrder
Event Type
NewStopOrder
Stop-order received.
[Obsolete("Use NewOrder event.")]
event Action<Order> NewStopOrder
Event Type
OrderCancelFailed
Order cancellation error event.
event Action<OrderFail> OrderCancelFailed
Event Type
OrderChanged
Order changed (cancelled, matched).
event Action<Order> OrderChanged
Event Type
OrderEditFailed
EditOrder(Order, Order) error result event.
event Action<long, OrderFail> OrderEditFailed
Event Type
OrderEdited
EditOrder(Order, Order) success result event.
event Action<long, Order> OrderEdited
Event Type
OrderRegisterFailed
Order registration error event.
event Action<OrderFail> OrderRegisterFailed
Event Type
OrderStatusFailed
Failed order status request event.
[Obsolete("Use SubscriptionFailed event.")]
event Action<long, Exception> OrderStatusFailed
Event Type
OrderStatusFailed2
Failed order status request event.
[Obsolete("Use SubscriptionFailed event.")]
event Action<long, Exception, DateTimeOffset> OrderStatusFailed2
Event Type
StopOrderCancelFailed
Stop-order cancellation error event.
[Obsolete("Use OrderCancelFailed event.")]
event Action<OrderFail> StopOrderCancelFailed
Event Type
StopOrderChanged
Stop order state change event.
[Obsolete("Use OrderChanged event.")]
event Action<Order> StopOrderChanged
Event Type
StopOrderRegisterFailed
Stop-order registration error event.
[Obsolete("Use OrderRegisterFailed event.")]
event Action<OrderFail> StopOrderRegisterFailed