Welcome to the Forum

Creating an account is currently only possible via registration at SimFin.

AttributeError: module 'simfin' has no attribute 'load_derived_shareprices'

edited July 24 in Functionality bugs
I'm new to SimFin and recently upgraded to SimFin+. I was just trying to use the Python API to load the derived figures and ratios dataset and the share price ratios dataset but got AttributeError: module 'simfin' has no attribute 'load_derived_shareprices'. I've double checked that the code is correct and will post it below. Any idea what is going on there? I've had no problems loading the other datasets.

Thanks

import simfin as sf
sf.set_api_key('XX')
sf.set_data_dir(r'C:\Users\Owner\Documents\SimFinDataCSVs')
df = sf.load_derived_shareprices(variant='daily', market='us')

Comments

  • Hi,

    Your code looks fine. I suspect you have to upgrade the simfin package because the derived datasets were only introduced recently.

    If you run
    import simfin as sf
    print(sf.__version__)
    it should say 0.8.1 (that's the most recent version).

    If your version is lower than that, you can upgrade the package via:
    pip install simfin --upgrade
Sign In to comment.