-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fetching Senate / HOR financial disclosures #6674
Fetching Senate / HOR financial disclosures #6674
Conversation
Hi @mmistroni, thanks for the PR and I appreciate the efforts, but I will need to kindly decline. The code I shared with you was not intended as a solution appropriate for submitting as a PR. The code would be significantly different if I were to submit as a PR. While it's fine for personal use as a notebook, It is not a viable solution for a production environment and will be unreliable in operation. After 1 or 2 queries the IP address is flagged and banned for the day, so this approach is clearly not going to work at scale. There are some minimum requirements when considering a function that serves this data:
Some general notes:
|
Hello
sure, i was not expecting it to go through.,,,, what was more important
for me was to get some feedback, which you duly provided
i will try to work on it to get it to a decent state where it can be
submitted
Thanks again & kind regards
Marco
…On Mon, Sep 23, 2024 at 4:39 PM Danglewood ***@***.***> wrote:
Hi @mmistroni <https://github.com/mmistroni>, thanks for the PR and I
appreciate the efforts, but I will need to kindly decline.
The code I shared with you was not intended as a solution appropriate for
submitting as a PR. The code would be significantly different if I were to
submit as a PR. While it's fine for personal use as a notebook, It is not a
viable solution for a production environment and will be unreliable in
operation. After 1 or 2 queries the IP address is flagged and banned for
the day, so this approach is clearly not going to work at scale.
There are some minimum requirements when considering a function that
serves this data:
- Queryable by stock ticker.
- Queryable by date range.
- Queryable by representative.
- The standard model -> provider model -> fetcher pattern needs to be
followed.
- Users won't know - or likely care - about the difference between HOR
and Senate, a representatives endpoint should gracefully handle both with
none or very little user intervention.
- Provider models need to map to the router, there is no endpoint
created which means there is no function.
Some general notes:
- There are too many files.
- There are files that are unrelated to the PR.
- Notebook files are for Examples only, they have no purpose within
the library code.
- Tests should not need to stray at all from the established pattern
throughout all unit and integration tests.
—
Reply to this email directly, view it on GitHub
<#6674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPNCDXZYKF2GMIHPVKFHTDZYAY2RAVCNFSM6AAAAABOLHXX7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYGY3TCNRUGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@deeleeramone i will carry on working on this.. i might need some assistance..can i post here rather than pinging you directly on Discord? |
Why don't we just add this to fmp provider? |
Sure, will will work on that. only reservation i have is that i think this endpoint requires premium subscription....
rgds
…On Thu, 10 Oct 2024, 06:19 邱承, ***@***.***> wrote:
Why don't we just add this to fmp provider?
—
Reply to this email directly, view it on GitHub
<#6674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACPNCDUMEPICGQOKDF32YULZ2YE5LAVCNFSM6AAAAABOLHXX7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBUGA2DSMBQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
680b3f8
to
06186b7
Compare
Pull Request Template for OpenBB Developers
Title:
Why? (1-3 sentences or a bullet point list):
What? (1-3 sentences or a bullet point list):
Impact (1-2 sentences or a bullet point list):
Testing Done:
of a ZIP file which is extracted on the fly, atm i dont know how to get around it
Reviewer Notes (optional):
QueryParams. not really sure what should be the driver for this data. for senate i thought number of reports as the api is quick enough to retrieve all of them at once
for HOR, i have made driven by year as the HOR URLS has data by years. FMP exposes also a 'query by member' but this will require a new implemetnation similar to what @deeleeramone has done for senate
Any other information (optional)
Please advise on potential improvement soi can try to work on them myself