Class TradeSubscription
Inheritance
TradeSubscription
Assembly: tt-net-api.dll
Syntax
public class TradeSubscription : Subscription, IDisposable
Constructors
TradeSubscription(Dispatcher)
Declaration
public TradeSubscription(Dispatcher dispatcher)
Parameters
TradeSubscription(Dispatcher, bool)
Declaration
public TradeSubscription(Dispatcher dispatcher, bool ownOrdersOnly)
Parameters
Properties
BuyWorking
Declaration
public decimal BuyWorking { get; }
Property Value
Fills
Declaration
public IDictionary<string, Fill> Fills { get; }
Property Value
Filter
Declaration
public TradeSubscriptionFilter Filter { get; }
Property Value
Orders
Declaration
public IDictionary<string, Order> Orders { get; }
Property Value
OwnOrdersOnly
Declaration
public bool OwnOrdersOnly { get; }
Property Value
PositionStatistics
Declaration
public PositionStatistics PositionStatistics { get; }
Property Value
SellWorking
Declaration
public decimal SellWorking { get; }
Property Value
Methods
CancelOrderViaREST(OrderProfile)
This method provides an alternative mechanism to cancel orders which can be used when
the TTSDK is disconnected from the system. Using the method the application can cancel the
working orders via a REST ASI call. If successfully cancelled, a OrderDeleted event will be
triggered. If not, a OrderRejected event will be triggered.
Note: This is a synchronous call and only one order at a time is supported.
If the reason the SDK is discionnected is network/internet related, this request can fail so
code accordingly.
Declaration
public virtual bool CancelOrderViaREST(OrderProfile orderProfile)
Parameters
Returns
ClearFilter()
Declaration
public bool ClearFilter()
Returns
DeleteAll()
Declaration
Returns
DeleteBySide(BuySell)
Declaration
public bool DeleteBySide(BuySell buySell)
Parameters
Type |
Name |
Description |
BuySell |
buySell |
|
Returns
GetLogString()
Declaration
public string GetLogString()
Returns
PublishManualFill(FillProfile, out string)
Declaration
public bool PublishManualFill(FillProfile fillProfile, out string response)
Parameters
Returns
SendOrder(IEnumerable<OrderProfile>)
Declaration
public virtual bool SendOrder(IEnumerable<OrderProfile> profiles)
Parameters
Returns
SendOrder(OrderProfile)
Declaration
public virtual bool SendOrder(OrderProfile orderProfile)
Parameters
Returns
SendRFQ(Instrument, Account)
Declaration
public bool SendRFQ(Instrument instrument, Account account)
Parameters
Returns
SetFilter(TradeSubscriptionFilter)
Declaration
public bool SetFilter(TradeSubscriptionFilter filter)
Parameters
Returns
Start()
Declaration
public override void Start()
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Events
OrderAdded
Declaration
public event EventHandler<OrderAddedEventArgs> OrderAdded
Event Type
OrderBookDownload
Declaration
public event EventHandler<OrderBookDownloadEventArgs> OrderBookDownload
Event Type
OrderDeleted
Declaration
public event EventHandler<OrderDeletedEventArgs> OrderDeleted
Event Type
OrderFilled
Declaration
public event EventHandler<OrderFilledEventArgs> OrderFilled
Event Type
OrderPendingAction
Declaration
public event EventHandler<OrderPendingActionEventArgs> OrderPendingAction
Event Type
OrderRejected
Declaration
public event EventHandler<OrderRejectedEventArgs> OrderRejected
Event Type
OrderStatusUnknown
Declaration
public event EventHandler<OrderStatusUnknownEventArgs> OrderStatusUnknown
Event Type
OrderTimeout
Declaration
public event EventHandler<OrderTimeoutEventArgs> OrderTimeout
Event Type
OrderUpdated
Declaration
public event EventHandler<OrderUpdatedEventArgs> OrderUpdated
Event Type
QuoteResponse
Declaration
public event EventHandler<QuoteResponseEventArgs> QuoteResponse
Event Type
Implements