Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

RuntimeError: no running event loop #34

@costaverde22

Description

@costaverde22

from deriv_api import DerivAPI
api=DerivAPI(app_id=1234)

Traceback (most recent call last):
File "", line 1, in
File ".../py3.11.4/lib/python3.11/site-packages/deriv_api/deriv_api.py", line 128, in init
self.add_task(self.api_connect(), 'api_connect')
File ".../py3.11.4/lib/python3.11/site-packages/deriv_api/deriv_api.py", line 446, in add_task
asyncio.create_task(wrap_coro(coroutine, name), name=name)
File ".../py3.11.4/lib/python3.11/asyncio/tasks.py", line 371, in create_task
loop = events.get_running_loop()
^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no running event loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions