Closed DextyGummy closed 1 year ago
If you are getting a 401 error it means that there is something wrong with your API-key.
For me the code is running fine.
Can you try instead of sf.load_api_key the following (probably the file with the api-key is not found): sf.set_api_key(api_key='YOUR_KEY')
Hi Thomas,
Thank you, I did use my own API key but I still get the error. I will check the SimFin support page.
Thanks, Eliana Velazquez
On Tue, Mar 7, 2023 at 6:25 AM Thomas Flassbeck @.***> wrote:
If you are getting a 401 error it means that there is something wrong with your API-key.
For me the code is running fine.
Can you try instead of sf.load_api_key the following (probably the file with the api-key is not found): sf.set_api_key(api_key='YOUR_KEY')
— Reply to this email directly, view it on GitHub https://github.com/SimFin/simfin/issues/15#issuecomment-1458264630, or unsubscribe https://github.com/notifications/unsubscribe-auth/A57HNHW4J4NSZY3GX4AED5DW25AMTANCNFSM6AAAAAAVR375IE . You are receiving this because you authored the thread.Message ID: @.***>
E-mail was not confirmed - if your e-mail is not confirmed in our system the API calls won't work. We will add a notice to the website if that should be the case.
Bug Report
Please make sure you have the latest simfin package installed by running:
And make sure you have downloaded fresh data-files from the SimFin server by setting
refresh_days=0
(see example below).If you still cannot solve the problem and need our help, then please provide the following.
Description
I am getting error message Dataset "us-income-ttm" not on disk. when attempting to download data into colab notebook. I also get this error message when running tutorials that have the same code as mine. This did not happen with the previous version. I was able to down signal dataset prior to Feb 22, 2023 update. I have the latest version 0.9.0.
System Details
Code Example
Import the main functionality from the SimFin Python API.
import simfin as sf
Import names used for easy access to SimFin's data-columns.
from simfin.names import *
import seaborn as sns
Refresh the fundamental datasets (Income Statements etc.)
every 30 days.
refresh_days = 30
try to download data using StockHub Object
also tried same code from SimFin tutorial https://github.com/SimFin/simfin-tutorials/blob/master/05_Data_Hubs.ipynb but get #similar error message
Result / Error
Dataset "us-income-ttm" not on disk.
HTTPError Traceback (most recent call last)