REDI CacheControl: "Date" field

I'm developing a C# app to work with the REDI API. It uses the CacheControl object to subscribe to CacheEvents, and I've used your example as a starting point:
https://github.com/Refinitiv-API-Samples/Example.REDI.CSharp.Examples/tree/master/REDIConsoleOrders
One of the data fields in each CacheEvent is called "Date". My questions are:
- What is the meaning of this "Date" field?
- The value of the "Date" field includes both date and time information, but no time zone. So I need the time zone to use it correctly. Is it represented in UTC, America/New_York, the timezone of the machine running the REDIPlus app, or some other time zone?
- Can I expect the CacheEvents received during a session to all be the same? For example, if I start my REDIPlus app on Sunday at 21:05 New York time and let it run until it's forced to log off by the system at 20:00 Monday, will the value of "Date" be the same for all CacheEvents received during that time period?
Thanks in advance for your help.
Patrick
Best Answer
-
Hi @patrick.noble,
1) The "Date" field shows both the date and a time value, but the time value should be ignored. (i.e. take only the date from "Date").
2) The time zone used is the local machine time.
3) You should expect the date values to change as the actual dates change. (e.g. if an execution is received on 6/2, the Date will be 6/2, even if the initial snapshot occurred on 5/31)
Thanks,
Brian
0
Answers
-
One more question... At what time does the "Date" value change to the next day?
Thanks,
Patrick0 -
It's been a week since I asked this question, with no reply. Is someone available to answer, please?
0 -
Hi Zoya, thanks for getting back to me.
0 -
The "Date" field is one of several fields returned by the CacheEvent object. The list of fields we are parsing follows. (The raw REDI field name is on the left, you can ignore the string on the right of each row):
0 -
"Account",
"AccountAlias",
"ActCleanNum",
"Agency",
"AllOrNone",
"BID",
"BranchCode",
"BranchSeq",
"ClientData",
//"CrossSession",
"Currency",
"Date",
"DispSize",
"EntryUserID",
"Exchange",
"ExchangeType",
"ExecPrice",
"ExecQuantity",
"LeavesQty",
"Memo",
"MessageSource",
"MsgPriceType",
"OrderRefKey",
"OrdStat",
"ParentOrdRefKey",
"PrefMarketMaker",
"Price",
"PriceType",
"Quantity",
"RefNum",
"RegionGroup",
"RIC",
"Sector",
"Sedol",
"Side",
"StopPrice",
"Symbol",
//"TIF",
"Time",
"UnderlyingSymbol",
"PriceDesc"0 -
And here is an extract of our code:
Fields = new Dictionary<string, OrderElement>(); foreach ((string, string) s in OrderFields.FieldNames)
OrderElement oe = new OrderElement(s); oe.Value = StreamREDIMessages.GetCell(cc, row, s.Item1, out int errCode).ToString().TrimStart(); Fields.Add(oe.REDIFieldName, oe);cc is a reference to the CacheControl object
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 280 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 721 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛