[Python] I can't execute any action using bybit api with with demo account. What can be reason?

Discussão em 'Python' iniciado por Stack, Abril 4, 2025.

  1. Stack

    Stack Membro Participativo

    I connect HTTP with pybit:

    session = HTTP(
    api_key="api_key",
    api_secret="secret_key",
    return_response_headers=True,
    demo=True
    )


    then i try any HTTP method and get " API key is invalid. (ErrCode: 10003)" for example:

    info=session.get_api_key_information()
    info=list(info)[0]['result']
    for key, value in info.items():
    print (key, " ", value)


    As result i get " API key is invalid. (ErrCode: 10003)". AS for real (not demo) keys, everything is all right.

    Continue reading...

Compartilhe esta Página