Skip to content

Invalid parameters in sync mode #1

Description

@dominik-komenda

I've dowloaded the repo. Created my own script based on the one provided in the project describtion. My script is trying to login and GET some data back.

`
def sync_client_test(user, password):
logger = logging.getLogger("sync client")

with XTBSyncClient(user, password, mode=ConnectionMode.DEMO, proxy=None) as client:

    symbols = client.get_all_symbols()
    logger.info(f"All symbols {symbols}")
    print(f"Symbols: {symbols}.")
    time.sleep(1)

    calendars = client.get_calendar()
    logger.info(f"All calendars {calendars}.")
    print(f"All calendars {calendars}.")

`
I'm getting EX000. Invalid parameters.

It seems that the problem lays within sessionId which is hardcoded

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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