ffn icon indicating copy to clipboard operation
ffn copied to clipboard

ffn - a financial function library for Python

Results 28 ffn issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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?

enhancement
help wanted

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):...

enhancement
help wanted

![image](https://github.com/pmorissette/ffn/assets/75166223/4606b29a-a8a3-4e16-aa60-5eb2b9007db0) ![image](https://github.com/pmorissette/ffn/assets/75166223/109bb448-8803-48b9-be31-1a3b764c75cc) 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...