Namespace DxFeed.Graal.Net.Ipf.Live
Classes
- InstrumentProfileCollector
Collects instrument profile updates and provides the live list of instrument profiles. This class contains a map that keeps a unique instrument profile per symbol. This class is intended to be used with InstrumentProfileConnection as a repository that keeps profiles of all known instruments.
As set of instrument profiles stored in this collector can be accessed with View() method. A snapshot plus a live stream of updates can be accessed with AddUpdateListener(InstrumentProfileUpdateListener) method.
Removal of instrument profile is represented by an InstrumentProfile instance with a type equal to REMOVED.
This class is thread-safe.
- InstrumentProfileConnection
Connects to an instrument profile URL and reads instrument profiles with support of streaming live updates. Please see Instrument Profile Format documentation for complete description.
The key different between this class and InstrumentProfileReader is that the later just reads a snapshot of a set of instrument profiles, while this classes allows to track live updates, e.g. addition and removal of instruments. To use this class you need an address of the data source from you data provider. The name of the IPF file can also serve as an address for debugging purposes. The recommended usage of this class to receive a live stream of instrument profile updates is:
Delegates
- InstrumentProfileUpdateListener
Notifies about instrument profile changes.