ffn
ffn copied to clipboard
ffn - a financial function library for Python
It seems that my daily data is being annualized assuming 252 days in the year. I'm wondering if it's possible to annualize using 365 days It looks like thee annualize...
I'd love for ffn to be aware of shorts so that displayed calcs were appropriate. Is this possible today without extra code today and I've missed it?
I have data already in db. May I define a custom data source or feed pandas dataframe to ffn?
the '_erc_weights_slqp'(core.py) function has a 'fitness' function inside. I would like to improve the piece of code (fitness): ``` sse = 0.0 for i in range(n): for j in range(n):...
  QQQ Yearly returns based on Monthly Returns Do not Match!
when run below example code, failure(python3.11) ``` import ffn print(ffn.get('aapl:Open,aapl:High,aapl:Low,aapl:Close', start='2010-01-01', end='2014-01-01').head()) ``` ``` python3.11 a.py Failed to get ticker 'AAPL' reason: Expecting value: line 1 column 1 (char 0)...
I set the risk free rate as a Series but the Sharpe Ratio is considerably different from the one calculated just with a float number, even if the Series of...
Hi all, It looks like calc_stats uses ffn.core.calc_sortino_ratio and this has the below calc: `negative_returns = np.minimum(er[1:], 0.0)` In this case, it inadvertently includes zeroes when a value is not...