StreamLink.NET  7.1.5-7.1.5-3946-4e293d0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | Properties | List of all members
Caplin.StreamLink.IRecordType2Event Interface Reference

Provides information about a change to type 2 data in a record. More...

Inheritance diagram for Caplin.StreamLink.IRecordType2Event:
Caplin.StreamLink.IDataEvent

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...
 

Detailed Description

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.

Member Function Documentation

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.

Property Documentation

IDictionary<string,string> Caplin.StreamLink.IRecordType2Event.Fields
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
string Caplin.StreamLink.IRecordType2Event.Type2IndexField
get

Gets the type 2 index field relating to the event.

  • the index field.

Generated on Tue Mar 24 2020 11:57:50 for StreamLink.NET