Class TradeSubscription
Inheritance
System.Object
TradeSubscription
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: tt-net-api.dll
Syntax
public class TradeSubscription : Subscription, IDisposable
Constructors
TradeSubscription(Dispatcher)
Declaration
public TradeSubscription(Dispatcher dispatcher)
Parameters
TradeSubscription(Dispatcher, Boolean)
Declaration
public TradeSubscription(Dispatcher dispatcher, bool ownOrdersOnly)
Parameters
Type |
Name |
Description |
Dispatcher |
dispatcher |
|
System.Boolean |
ownOrdersOnly |
|
Properties
BuyWorking
Declaration
public decimal BuyWorking { get; }
Property Value
Type |
Description |
System.Decimal |
|
Fills
Declaration
public IDictionary<string, Fill> Fills { get; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, Fill> |
|
Filter
Declaration
public TradeSubscriptionFilter Filter { get; }
Property Value
Orders
Declaration
public IDictionary<string, Order> Orders { get; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, Order> |
|
OwnOrdersOnly
Declaration
public bool OwnOrdersOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
PositionStatistics
Declaration
public PositionStatistics PositionStatistics { get; }
Property Value
SellWorking
Declaration
public decimal SellWorking { get; }
Property Value
Type |
Description |
System.Decimal |
|
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
Type |
Description |
System.Boolean |
|
ClearFilter()
Declaration
public bool ClearFilter()
Returns
Type |
Description |
System.Boolean |
|
DeleteAll()
Declaration
Returns
Type |
Description |
System.Boolean |
|
DeleteBySide(BuySell)
Declaration
public bool DeleteBySide(BuySell buySell)
Parameters
Type |
Name |
Description |
BuySell |
buySell |
|
Returns
Type |
Description |
System.Boolean |
|
GetLogString()
Declaration
public string GetLogString()
Returns
Type |
Description |
System.String |
|
PublishManualFill(FillProfile, out String)
Declaration
public bool PublishManualFill(FillProfile fillProfile, out string response)
Parameters
Type |
Name |
Description |
FillProfile |
fillProfile |
|
System.String |
response |
|
Returns
Type |
Description |
System.Boolean |
|
SendOrder(IEnumerable<OrderProfile>)
Declaration
public virtual bool SendOrder(IEnumerable<OrderProfile> profiles)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<OrderProfile> |
profiles |
|
Returns
Type |
Description |
System.Boolean |
|
SendOrder(OrderProfile)
Declaration
public virtual bool SendOrder(OrderProfile orderProfile)
Parameters
Returns
Type |
Description |
System.Boolean |
|
SendRFQ(Instrument, Account)
Declaration
public bool SendRFQ(Instrument instrument, Account account)
Parameters
Returns
Type |
Description |
System.Boolean |
|
SetFilter(TradeSubscriptionFilter)
Declaration
public bool SetFilter(TradeSubscriptionFilter filter)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Start()
Declaration
public override void Start()
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
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
System.IDisposable