Skip to content

[Bug]: asyncio.run() cannot be called from a running event loop #660

@mehtap198

Description

@mehtap198

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

when trying to run the historic_async.py in spyder keep getting the asyncio.run() running event loop error . I am running python 3.8

Could you kindly advice and help

Expected Behavior

Expecting price data for 200 symbols in the list [symbols]

SDK Version I encountered this issue in

python version 3.8.5

Steps To Reproduce

1.running historic_async.py
2.getting error

 RuntimeError: asyncio.run() cannot be called from a running event loop

Filled out the Steps to Reproduce section?

  • I have entered valid steps to reproduce my issue or have attached a minimally reproducible case in code that shows my issue happening; and understand that without this my issue will be flagged as invalid and closed after 30 days.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions