- 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
GetCacheSnapshot
Retrieve a snapshot from the live cache for the specified items.
The snapshot is a copy of the values from the cache.
By default, all fields will be copied from the cache.
Syntax
IDictionary<string, IPriceData> GetCacheSnapshot(params string[] items)IDictionary<string, IPriceData> GetCacheSnapshot(IEnumerable<string> items, IEnumerable<string> fields = null)
Usage
The following example demonstrates how to get a snapshot from the cache.
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=" });
var snapshot = stream.GetCacheSnapshot();
stream.Close();