Welcome to the Forum

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

Getting an error while trying to extract signals


I have an issue while trying to extract signals data.
I run the following code:

import pandas as pd
import numpy as np
import simfin as sf
from simfin.names import *


sf.load_api_key(path='~/simfin_api_key.txt', default_key='-')

market = 'us'

df_income_ttm = sf.load_income(variant='ttm', market=market)
df_prices = sf.load_shareprices(variant='daily', market=market)

df_vol_signals = sf.volume_signals(df_prices=df_prices,

But receive the following error:

py:679: RuntimeWarning: divide by zero encountered in log
result = getattr(ufunc, method)(*inputs, **kwargs)

I guess it has something to do with dividing by zero, but how can I solve it using the signals extract?

Thank you,


  • edited June 10
    Hi Uri,

    this should be only a warning and not an error: "RuntimeWarning"
    I am getting this as well but the script doesn't crash, it just shows the warning. So you can ignore it I think.
Sign In to comment.