Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing ETF Expense ratio API #29

Closed
adamcataldo opened this issue Oct 12, 2022 · 5 comments
Closed

Missing ETF Expense ratio API #29

adamcataldo opened this issue Oct 12, 2022 · 5 comments

Comments

@adamcataldo
Copy link
Contributor

Hi,

It doesn't look like this API includes the ETF Expense ratio API:

https://site.financialmodelingprep.com/developer/docs/etf-expense-ratio-api/

I'd be open to contributing this, assuming the process for adding a new endpoint isn't insanely painful.

@ipl31
Copy link
Contributor

ipl31 commented Oct 12, 2022

Its a V4 endpoint, so you will need to look at another V4 API implementation as an example: https://github.com/daxm/fmpsdk/blob/master/fmpsdk/alternative_data.py I don't know if @daxm has any plans to do an update, I might get around to it in the next few weeks. But it should not be too hard if you are up for it.

@daxm
Copy link
Owner

daxm commented Oct 12, 2022 via email

@adamcataldo
Copy link
Contributor Author

I'm happy to do it, if you're open to pull requests. The code looks straightforward. Two questions:

  1. I don't see tests, is that right? I want to make sure I'm not missing a requirements somewhere.
  2. What's the release process? I see the deploy_a_release.sh script, but I'm not sure if I can just run that (or if I even should), because I'm not sure what permissions are needed.

@daxm
Copy link
Owner

daxm commented Oct 12, 2022 via email

@adamcataldo
Copy link
Contributor Author

I submitted a pull request. I think setting up the tests is a bigger effort, because you'd probably want to create a fake API that reads a JSON file representing an expected server response and returns that where the FMP server is expected. You'd then you'd need to modularize the functionality in url_methods.py so that tests use the fake service while non-tests use the real service. If you're interested in this, you might be able to persuade me to create the basic setup and a test for say this method, but adding tests for each end-point would probably take quite some time.

@daxm daxm closed this as completed in 5f9c0f3 Oct 12, 2022
daxm added a commit that referenced this issue Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants