Hi Brian,
I just bought the Sharadar US Equities Bundle on Nasdaq Data Link and subscription is already in active status and I set up the license as below.
from quantrocket.license import set_license, set_quandl_key, get_license_profile, get_quandl_key
set_license("XXX")
set_quandl_key(api_key="XXX")
And started to collect data but it keeps giving me below error. Restarting docker doesn't help either. Can you please give some suggestions? Is there a delay?
from quantrocket.fundamental import collect_sharadar_fundamentals
collect_sharadar_fundamentals()
HTTPError Traceback (most recent call last)
Input In [3], in <cell line: 8>()
5 set_quandl_key(api_key="xxx")
7 from quantrocket.fundamental import collect_sharadar_fundamentals
----> 8 collect_sharadar_fundamentals()
File /opt/conda/lib/python3.9/site-packages/quantrocket/fundamental.py:1914, in collect_sharadar_fundamentals(country)
1912 params["country"] = country
1913 response = houston.post("/fundamental/sharadar/fundamentals", params=params)
-> 1914 houston.raise_for_status_with_json(response)
1915 return response.json()
File /opt/conda/lib/python3.9/site-packages/quantrocket/houston.py:225, in Houston.raise_for_status_with_json(response)
223 e.json_response = {}
224 e.args = e.args + ("please check the logs for more details",)
--> 225 raise e
File /opt/conda/lib/python3.9/site-packages/quantrocket/houston.py:217, in Houston.raise_for_status_with_json(response)
212 """
213 Raises 400/500 error codes, attaching a json response to the
214 exception, if possible.
215 """
216 try:
--> 217 response.raise_for_status()
218 except requests.exceptions.HTTPError as e:
219 try:
File /opt/conda/lib/python3.9/site-packages/requests/models.py:1021, in Response.raise_for_status(self)
1016 http_error_msg = (
1017 f"{self.status_code} Server Error: {reason} for url: {self.url}"
1018 )
1020 if http_error_msg:
-> 1021 raise HTTPError(http_error_msg, response=self)
HTTPError: ('403 Client Error: FORBIDDEN for url: http://houston/fundamental/sharadar/fundamentals?country=US', {'status': 'error', 'error': 'no active software subscription found, can only collect the FREE country'})
Eileen