Clueless-Community / fintech-api

An API that helps you to deal with your financial calculations
MIT License
90 stars 106 forks source link

[Feature] Add function Sharpe ratio #318

Open Abhinavcode13 opened 1 year ago

Abhinavcode13 commented 1 year ago

Are you adding a new feature?

Are you enhancing the old feature?

Describe your feature/enhancement.

This function calculates the Sharpe Ratio, which measures the risk-adjusted return of an investment.

It takes three arguments: returns represents the historical returns of an investment, risk_free_rate is the risk-free rate of return, and volatility is the standard deviation of the investment's returns.

Can you add the feature by yourself?

Additional Information

Abhinavcode13 commented 1 year ago

Please assign this to me @ighoshsubho

ighoshsubho commented 1 year ago

Sure go ahead @Abhinavcode13 ;)

ighoshsubho commented 1 year ago

Hello @Abhinavcode13, this is Version 2 of Fintech API repository, there had been few major updates, please go through the CONTRIBUTING.md to make further contributions. Thanks.