For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 2

No data available for the requested date range​​ (HCN.TO)

There was no problem yesterday, but a RIC(HCN.TO) gave me this error, today.

[The code I use to retrieve data]

data = ek.get_timeseries(ticker, fields=[field], start_date=start_day, end_date=end_day, interv
al='daily')

[Yesterday Log]

20180905 09:05:29.532 INFO c.m.r.d.MainScheduler runSavePrice_Python - get_time_series retrieving instruments: HCN.TO - from: 2018-08-31, to: 2018-09-05
20180905 09:05:31.076 INFO c.m.r.d.MainScheduler runSavePrice_Python - get_time_series retrieving instruments: EWJ - from: 2018-08-31, to: 2018-09-05
20180905 09:05:31.773 INFO c.m.r.d.MainScheduler runSavePrice_Python - get_time_series retrieving instruments: ENZL.O - from: 2018-08-31, to: 2018-09-05
20180905 09:05:32.276 INFO c.m.r.d.MainScheduler runSavePrice_Python - get_time_series retrieving instruments: EWS - from: 2018-08-31, to: 2018-09-05
20180905 09:05:32.856 INFO c.m.r.d.MainScheduler runSavePrice_Python - get_time_series retrieving instruments: EWY - from: 2018-08-31, to: 2018-09-05
20180905 09:05:33.451 INFO c.m.r.d.MainScheduler runSavePrice_Python - get_time_series retrieving instruments: SHV.O - from: 2018-08-31, to: 2018-09-05
20180905 09:05:35.166 INFO c.m.r.d.MainScheduler runSavePrice_Python - get_time_series retrieving instruments: ACWI.O - from: 2018-08-31, to: 2018-09-05
20180905 09:05:35.909 INFO c.m.r.d.MainScheduler runSavePrice_Python - result: {'EWD': 31.82, 'EWJ': 57.5, 'SHV_O': 110.3, 'HXQ_TO': 56.03, 'EWO': 22.82, 'IWM': 172.25, 'VWO': 41.1, 'EWP': 29.77, 'HXS_TO': 72.3, 'EWS': 23.56, 'HCN_TO': 25.17, 'EWY': 66.76, 'EIRL_K': 46.0, 'EIS': 56.44, 'EWZ': 30.96, 'PGAL_K': 12.29, 'EWK': 19.37, 'EWU': 33.34, 'EWN': 30.77, 'EWI': 27.5, 'EWL': 34.51, 'EWG': 29.89, 'INDA_K': 34.68, 'HXT_TO': 34.12, 'ENZL_O': 48.52, 'DAX_O': 28.2733, 'AAXJ_O': 70.6, 'MCHI_O': 59.99, 'EDEN_K': 66.4525, 'EWA': 22.24, 'EWQ': 30.65, 'ACWI_O': 73.4, 'ENOR_K': 27.509, 'EFNL_K': 40.98}

[Today Log]

get_time_series retrieving instruments: EWA - from: 2018-09-01, to: 2018-09-06
get_time_series retrieving instruments: HCN.TO - from: 2018-09-01, to: 2018-09-06
Error with HCN.TO: No data available for the requested date range
HCN.TO: No data available for the requested date range |
>>> traceback <<<
Traceback (most recent call last):
 File "save_price.py", line 149, in get_timeseries
   interval='daily')
 File "C:\Program Files\Anaconda3\lib\site-packages\eikon\time_series.py", line 183, in get_timeseries
   raise EikonError('Error', message=ts_error_messages)
eikon.eikonError.EikonError: Error code Error | HCN.TO: No data available for the requested date range |
>>> end of traceback <<<
Error occurred. Instruments: HCN.TO, Trying Again... (1)
Error with HCN.TO: No data available for the requested date range

Can somebody tell me what causes this error?

I've heard that there might be a permission problem on that RIC.

If anyone can help me out, that would be greatly appreciated.

Thanks in advance.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
39.2k 75 11 27

@jungjoon.yoon
According to Toronto Stock Exchange Web site there were no trades on this ETF on Sep 4th and Sep 5th. Since Sep 1 - 3 were non business days, there were no trades on this ETF during the period you requested.
https://web.tmxmoney.com/pricehistory.php?qm_symbol=HCN
The error you got seems appropriate.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
38.1k 71 35 53

@jungjoon.yoon

The data is similar to Eikon Chart. For HCN.TO, the latest data available on Eikon Chart is on 2018-08-31.

With other applications, it shows that there is no OHLC data on 2018-09-04 and 2018-09-05.

The problem also happens with Eikon Chart so you can contact Eikon support team via Get Support to verify the data.


hcn-to.png (8.5 KiB)
ts.png (5.3 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea