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

Quickstart Demos Failing #58

Open
peter-lillie opened this issue Sep 7, 2023 · 0 comments
Open

Quickstart Demos Failing #58

peter-lillie opened this issue Sep 7, 2023 · 0 comments

Comments

@peter-lillie
Copy link
Contributor

Attempted following the Quickstart and was not able to get Asset and Assets elements working.

  • Installed pstock-python onto python -m venv .venv in Visual Studio Code version 1.81.1
  • Ran Asset.get:
    •  from pstock import Asset
       asset = asyncio.run(Asset.get("TSLA"))
       print(asset)'```
      
  • Asset.get Error Returned:
    • .venv\lib\site-packages\pstock\quote.py", line 50, in parse_quote .get("QuoteSummaryStore", {}) AttributeError: 'str' object has no attribute 'get'
  • Ran Assets.get
    •    from pstock import Assets
         assets = asyncio.run(Assets.get(["TSLA", "AAPL", "GME"]))
         print(assets)```
      
  • Assets.get Error Returned:
    • .venv\lib\site-packages\httpcore\_async\connection_pool.py", line 312, in aclose raise RuntimeError( RuntimeError: The connection pool was closed while 2 HTTP requests/responses were still in-flight.
  • Ran Bars.get
  • Worked as expected.
  • Ran News.get
  • Worked as expected.
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

1 participant