StreamLink.NET
6.1.0-285711
|
Provides information about a change to type 2 data in a record. More...
Public Member Functions | |
bool | DeleteAllRows () |
Returns whether all rows should be deleted. More... | |
bool | DeleteRow () |
Returns whether the row should be deleted. More... | |
Properties | |
IDictionary< string, string > | Fields [get] |
Returns the record fields relating to the event, as a collection of key-value pairs. More... | |
string | Type2IndexField [get] |
Gets the type 2 index field relating to the event. More... | |
Properties inherited from Caplin.StreamLink.IDataEvent | |
bool | IsImage [get] |
Returns whether this was an image event or an update event. More... | |
string | Subject [get] |
Returns the subject to which the event relates. More... | |
Provides information about a change to type 2 data in a record.
The RecordType2Event is provided in an onRecordType2Update callback to a ISubscriptionListener.
Type 2 data is a 2-dimensional array, where the type 2 index acts as a row key, and the field-value pairs are column keys and values. This type of record is often used to represent a level 2 order book, for example:
Stock (type2Index) | BidSize | Bid | Ask | AskSize |
---|---|---|---|---|
ABN1 | 100 | 10.22 | 10.28 | 55 |
ZBN2 | 200 | 10.20 | 20.33 | 250 |
ARC | 1 | 10.16 | 10.41 | 1 |
When the type 2 data is updated, the new values are sent as a set of com.caplin.streamlink.RecordType2Events, one event for each row of the record that has changed.
bool Caplin.StreamLink.IRecordType2Event.DeleteAllRows | ( | ) |
Returns whether all rows should be deleted.
true if all rows should be deleted, otherwise false.
bool Caplin.StreamLink.IRecordType2Event.DeleteRow | ( | ) |
Returns whether the row should be deleted.
true if the row should be deleted, otherwise false.
|
get |
Returns the record fields relating to the event, as a collection of key-value pairs.
When a call to isImage() returns true, the subscription data event contains an image of the data for the subscribed item. All the fields comprising the record are present in the collection. The application must discard any values previously received and replace them with the values contained within the collection.
When a call to isImage() returns false, the subscription data event contains new data for the subscribed record. The values in the collection returned are an update to any values previously received and any application caches should be updated appropriately.
the fields
|
get |
Gets the type 2 index field relating to the event.
A com.caplin.streamlink.RecordType2Event contains information about one row of the type 2 data. The row is identified by the value of the type 2 index fieldname returned by this method.
the index field.