Class PriceSubscription
Provides properties, methods, and events for monitoring market data for an Instrument.
Implements
IDisposable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: tt_net_sdk
Assembly: tt-net-api.dll
Syntax
public class PriceSubscription : Subscription, IDisposable
Remarks
A PriceSubscription represents the most recent snapshot of an instrument's market data, including LTP/LTQ. When a price update occurs, a PriceSubscription fires a FieldsUpdated event, which contains the updated fields. If you are developing an application that needs historical data, such a tick charting application, that needs access to all LTP/LTQ changes, you should use a TimeAndSalesSubscription to get the non-coalesced prices.
Constructors
PriceSubscription(Instrument, Dispatcher)
PriceSubscription Constructor.
Declaration
public PriceSubscription(Instrument instrument, Dispatcher dispatcher)
Parameters
Type | Name | Description |
---|---|---|
Instrument | instrument | The instrument. |
Dispatcher | dispatcher | Options for controlling the operation. |
Properties
Fields
Declaration
public PriceSubscriptionFields Fields { get; }
Property Value
Type | Description |
---|---|
PriceSubscriptionFields |
Settings
Settings - gets or sets the current PriceSubscription settings.
Declaration
public PriceSubscriptionSettings Settings { get; set; }
Property Value
Type | Description |
---|---|
PriceSubscriptionSettings |
Methods
Start()
Starts this object.
Declaration
public override void Start()
Overrides
Exceptions
Type | Condition |
---|---|
Exception | Thrown when an exception error condition occurs. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
System.Object.ToString()
Events
FieldsUpdated
Declaration
public event EventHandler<FieldsUpdatedEventArgs> FieldsUpdated
Event Type
Type | Description |
---|---|
EventHandler<FieldsUpdatedEventArgs> |
Implements
System.IDisposable