Skip to content

https://api.huobi.pro/v1/account/accounts/{id}/balance - Read timed out For SPOT account #158

@valentin-osadchii

Description

@valentin-osadchii

Hello

I am using cctx to get my account balances like this:

import ccxt

exchange = ccxt.htx({
    'apiKey': 'mykey',
    'secret': open('htx_private_key.pem', 'rb').read(), 
    'sandbox': False,
})

balance = exchange.fetch_balance()

But I get HTTPSConnectionPool(host='api.huobi.pro', port=443): Read timed out error.

When I try to get balances via https://api.huobi.pro/v1/account/accounts/{id}/balance using my own script, it works for OTC-margin account, but also fails with the same Timed Out error for SPOT account (The only change is the account id in path parameters).

Any ideas why this happens?

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