Skip to content

Quickstart Demos Failing #58

Description

@peter-lillie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions