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

[Bug] openbb.stocks.gov.topbuys() & openbb.stocks.gov.topsells() give same output #5258

Closed
deeleeramone opened this issue Jul 27, 2023 · 8 comments · Fixed by #5289
Closed
Labels
bug Fix bug platform OpenBB Platform

Comments

@deeleeramone
Copy link
Contributor

Screenshot 2023-07-27 at 8 41 20 AM

Screenshot 2023-07-27 at 8 44 33 AM

@deeleeramone deeleeramone added bug Fix bug platform OpenBB Platform labels Jul 27, 2023
@deeleeramone
Copy link
Contributor Author

deeleeramone commented Jul 28, 2023

Digging in to this a bit, and it appears there is something up with the quiverquant_model functions because they all return empty:

In [29]: from openbb_terminal.stocks.government import quiverquant_model as qm

In [30]: qm.get_government_trading("congress")
Out[30]: 
Empty DataFrame
Columns: []
Index: []

In [31]: qm.get_government_trading("senate")
Out[31]: 
Empty DataFrame
Columns: []
Index: []

In [32]: qm.get_government_trading("house")
Out[32]: 
Empty DataFrame
Columns: []
Index: []


and today the SDK endpoints return nothing as well:

In [35]: from openbb_terminal.sdk import openbb

In [36]: openbb.stocks.gov.topbuys()
Out[36]:
Empty DataFrame
Columns: []
Index: []

In [37]: openbb.stocks.gov.topsells()
Out[37]:
Empty DataFrame
Columns: []
Index: []

@jmaslek
Copy link
Collaborator

jmaslek commented Jul 28, 2023

getting 500 status code :(

@deeleeramone
Copy link
Contributor Author

getting 500 status code :(

was just going to update my comment to include that.

In [48]: r = requests.get("https://api.quiverquant.com/beta/historical/congresstrading/AAPL", headers=headers)

In [49]: r.status_code
Out[49]: 500

In [50]: r.content
Out[50]: b'"unsupported operand type(s) for -: \'NoneType\' and \'int\'"'

@deeleeramone
Copy link
Contributor Author

BUT, you can still read the tables:

Screenshot 2023-07-28 at 11 58 23 AM

@deeleeramone
Copy link
Contributor Author

getting 500 status code :(

Related to the API call getting routed to /beta/?

image

@jmaslek
Copy link
Collaborator

jmaslek commented Aug 7, 2023

not related to beta
Screenshot 2023-08-07 at 11 25 33 AM

@jmaslek
Copy link
Collaborator

jmaslek commented Aug 7, 2023

its back to just buys==sells

@jmaslek
Copy link
Collaborator

jmaslek commented Aug 7, 2023

will be fixed in release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug platform OpenBB Platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants