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):
("Account", "AccountID"),
("AccountAlias", ""),
("ActCleanNum", ""),
("Agency", ""),
("AllOrNone", ""),
("BID", ""),
("BranchCode", ""),
("BranchSeq", ""),
("ClientData", ""),
//("CrossSession", ""),
("Currency", "TransactionCurrency"),
("Date", ""),
("DispSize", ""),
("EntryUserID", ""),
("Exchange", ""),
("ExchangeType", "ListingExchange"),
("ExecPrice", "TransactionPrice"),
("ExecQuantity", "TransactionQty"),
("LeavesQty", ""),
("Memo", ""),
("MessageSource", ""),
("MsgPriceType", "OrderType"),
("OrderRefKey", "OrderID"),
("OrdStat", "OrderStatus"),
("ParentOrdRefKey", "ParentOrder"),
("PrefMarketMaker", ""),
("Price", "OrderPrice"),
("PriceType", ""),
("Quantity", "OrderQty"),
("RefNum", "RefNum"),
("RegionGroup", ""),
("RIC", ""),
("Sector", ""),
("Sedol", ""),
("Side", "OrderSide"),
("StopPrice", ""),
("Symbol", "Symbol"),
//("TIF", ""),
("Time", "TransactionTime"),
("UnderlyingSymbol", ""),
("PriceDesc", "PriceDesc")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
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛