Close Price Not Available

Hi,
It is Aug 13, 2019, 4:30 pm IST now and I am trying to download close price for couple of Indian RICs `TCS.NS` and `HDBK.NS` since it has been end of trading hours for Indian market (3:30 pm IST).
Usually everyday by this time, the close price gets downloaded via Excel or Python API, but today I am unable to retrieve them.
Please see my below code and corresponding output.
import eikon as ek
rics = ['HDBK.NS', 'TCS.NS']
fields = [ek.TR_Field('TR.PriceClose'), ek.TR_Field('TR.PriceClose.date')]
df = ek.get_data(instruments=rics, fields=fields, parameters={'SDate': '2019-08-08', 'EDate': '2019-08-13', 'FRQ': 'D', 'CH': 'Fd;IN', 'RH': 'date', 'SORTD': 'date'})
print(df)
Output is as follows:
( Instrument Price Close Date
0 HDBK.NS 2233.15 2019-08-08T00:00:00Z
1 HDBK.NS 2282.00 2019-08-09T00:00:00Z
2 HDBK.NS 2282.00 2019-08-09T00:00:00Z
3 TCS.NS 2258.10 2019-08-08T00:00:00Z
4 TCS.NS 2246.25 2019-08-09T00:00:00Z
5 TCS.NS 2246.25 2019-08-09T00:00:00Z, None)
Note that the price downloaded is for Aug 8 and 9, not Aug 13.
Any help would be appreciated.
Best Answer
-
Hi @dayquant
Because the historical database is not ready yet (it takes some time)
You can retrieve today close price from "Intraday" fields.
0
Answers
-
Hi @dayquant The figures from chavalit above are in fact the previous days close (ie 9th)
I have just run the code and it has correctly delivered the results.
The only reason I can think of is there was some delay with closing run process of that exchange today. Im not sure if this can help - but please observe it tomorrow again. If there is a similar issue we can investigate further.
0 -
Sorry I would like to update my answer a bit.
CF_CLOSE of today is the previous trading day CLOSE (which @jason.ramchandani pointed out, thanks.)
CF_<xx> fields are on realtime data set, while TR.PriceClose is on a time series dataset.
It usually takes some time before the data is ready in time series dataset.
So you have to use "CF_LAST" field for today last price like you experienced it yourselves that the data was not ready yet and you could not retrieve it using TR.PriceClose field.
0 -
Thanks for the answer.
Can you help me with understanding the difference between these fields?
- TR.PriceClose
- TR.ClosePrice
- OFF_CLOSE
- TR.OFFICIALCLOSEPRICE
- CF_CLOSE
I am looking for 30-min closing (end of day) VWAP price. Which of the above should I use?
0 -
Thanks for the answer.
Can you help me with understanding the difference between these fields?
- TR.PriceClose
- TR.ClosePrice
- OFF_CLOSE
- TR.OFFICIALCLOSEPRICE
- CF_CLOSE
I am looking for 30-min closing (end of day) VWAP price. Which of the above should I use?
0 -
Hi @dayquant
You can use "Data Item Browser" to see each of the field description.
Please type in "DIB" (without double quotes) on the Eikon Desktop search bar and press enter.
Then input the instrument code and field name.
The fields you provided are from 3 different databases:
For example TR.PRICECLOSE is on "Prine & Volume" database.
OFF_CLOSE and CF_CLOSE are on "Real Time" database.
TR.ClosePrice and TR.OFFICIALCLOSEPRICE are on "Time Series Data" database.
If the Data Item Browser does not provide enough information on each fields, you can contact Refinitiv Content Support at https://my.refinitiv.com/
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 683 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 626 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛