- Introduction
- Concepts and Design
-
SESSION LAYER
-
CONTENT LAYER
- Intro
-
Fundamental and Reference
-
Historical Pricing
- Intro
-
Events
-
Summaries
- Event Types
- Adjustments
- Market Sessions
- Quality of Service (QoS)
-
News
-
Pricing
- Intro
-
Pricing Definition
-
Pricing Stream
-
Chains
-
Chain Definition
-
Chain Stream
-
Search
-
SymbolConversion
-
IPA
-
FinancialContracts
- About FinancialContracts
- FinancialContracts.Definition
-
Bonds
- Intro
- Definition
- Adjustment
- Ammortization
- Benchmark Yield
- Business Day Methods
- Compounding Methods
- Date Rolling
- Day Count Methods
- Direction
- Fallback Logic
- Index Frequency
- Interest Type
- Price Side
- Projected Index Calculation Method
- Redemption Date Type
- Rounding Type
- Rounding
- Stub Rules
- Yield Type
- Output
-
CapFloor
-
FxCross
-
Option
-
Swaption
-
Surfaces
-
-
DELIVERY LAYER
- Intro
-
Endpoint Request
-
OMM streams
-
RDP streams
-
Queue
-
RDP Websocket
AddItems
Allows to add items to the stream, even when the stream has been already opened.
We can even specify the incoming fields for the requested instrument.
Syntax
void AddItems(params string[] items)void AddItems(IEnumerable<string> items)void AddItems(IEnumerable<string> items, IEnumerable<string> fields)
Usage
The following example demonstrates how to add items to a pricing stream.
var stream = Pricing.Definition("EUR=").GetStream();
stream.Open();
// Add one item or a list of items
stream.AddItems("MSFT.O");
stream.AddItems(new[] { "EUR=", "GBP=", "CAD=" });
// Add a list of items, in this case one, and a specified list of fields to be retrieved for it
stream.AddItems(new[] { "AAPL.O" }, new[] { "BID", "ASK", "HST_CLOSE", "IRGPRC", "DSPLY_NAME" });
stream.Close();