StreamLink.NET
7.1.16-7.1.16-812-a585a9a
|
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.
bool Caplin.StreamLink.IRecordType2Event.DeleteRow | ( | ) |
Returns whether the row should be deleted.
|
get |
Returns the record fields relating to the event, as a collection of key-value pairs.
|
get |
Gets the type 2 index field relating to the event.