Clueless-Community / fintech-api

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

[Feature] Add Endpoint to calculate Capital Asset Pricing Model (CAPM) #368

Open Codeansh opened 1 year ago

Codeansh commented 1 year ago

Are you adding a new feature?

Are you enhancing the old feature?

Describe your feature/enhancement.

The Capital Asset Pricing Model (CAPM) is a widely used financial model that helps estimate the expected return on an investment based on its risk and the risk-free rate of return. The formula for calculating the expected return (ER) of an asset using the CAPM is as follows:

ER = Rf + β * (Rm - Rf)

where:

ER represents the expected return on the asset,
Rf is the risk-free rate of return (typically a government bond yield),
β (beta) measures the asset's sensitivity to systematic risk,
Rm is the expected return of the market (usually represented by a broad market index, such as the S&P 500),
Rm - Rf is the equity risk premium, representing the excess return of the market over the risk-free rate.

Can you add the feature by yourself?

Additional Information

Please assign this issue to me.

github-actions[bot] commented 1 year ago

👋 @Codeansh

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.

Please make sure you have given us as much context as possible.

github-actions[bot] commented 1 year ago

Hello @Codeansh, thank you for raising an issue. 🙌 I have assigned the issue to you. You can now start working on it. If you encounter any problems, please feel free to connect with us. 👍

ighoshsubho commented 1 year ago

Hello @Codeansh, 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.

Codeansh commented 1 year ago

399 , please review my pull request.