Skip to content

Flaky APIError(code=-1109): Invalid account on same account #544

Description

@rachael-soh

I'm getting this error randomly when trying to connect to the Futures DEMO trading Websocket and API. I generated the API key and secret from the main Demo Trading > Account > API management and i see all the boxes checked.
I've regenerated the keys multiple times, tried using testnet, demo, etc. but this error keeps coming up intermittently. It helps sometimes when i log out/in, as well as manually generate positions. But it doesn't consistently get rid of this error.

Any suggestions on how to tackle this? Is my account missing something? Am i supposed to create a real Futures account before using the demo one?

Image
from binance import AsyncClient, Client

self._rest_client = Client(
                api_key=self._api_key,
                api_secret=self._api_secret,
                demo=True,
                ping=False,

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