question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HITBTC fetch_balance return alternating 0 for BCH

See original GitHub issue

MUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):

Make sure your local version of CCXT is up to date. Check by comparing the output of ccxt.version to https://github.com/ccxt/ccxt/blob/master/package.json#L3

  • OS: macOS Catalina
  • Programming Language version: python 3.8.5
  • CCXT version:1.36.33
import ccxt
from decouple import config
from logzero import logger

exchange_client = ccxt.hitbtc(
    {
        "apiKey": config("HITBTC_API_KEY", default=""),
        "secret": config("HITBTC_SECRET_KEY", default=""),
        "timeout": 30000,
    }
)
if __name__ == "__main__":
    logger.info(exchange_client.fetch_balance()["BCH"])
[I 201120 16:51:54 exchange:142] {'free': 0.0, 'used': 0.0, 'total': 0.0}
❯ python smartpool/clients/exchange.py
[I 201120 16:52:04 exchange:142] {'free': 0.0, 'used': 0.0, 'total': 0.0}
❯ python smartpool/clients/exchange.py
[I 201120 16:52:08 exchange:142] {'free': 0.0, 'used': 0.0, 'total': 0.0}
❯ python smartpool/clients/exchange.py
[I 201120 16:52:11 exchange:142] {'free': 0.2, 'used': 0.0, 'total': 0.2}
❯ python smartpool/clients/exchange.py
[I 201120 16:52:20 exchange:142] {'free': 0.2, 'used': 0.0, 'total': 0.2}
❯ python smartpool/clients/exchange.py
[I 201120 16:52:24 exchange:142] {'free': 0.0, 'used': 0.0, 'total': 0.0}
❯ python smartpool/clients/exchange.py
[I 201120 16:52:29 exchange:142] {'free': 0.0, 'used': 0.0, 'total': 0.0}
❯ python smartpool/clients/exchange.py
[I 201120 16:52:34 exchange:142] {'free': 0.2, 'used': 0.0, 'total': 0.2}```

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
kroitorcommented, Nov 30, 2020

P.S. The new build 1.38.56+ will arrive in ~15 minutes.

1reaction
qlbnbcommented, Nov 30, 2020

Thank you! Really appreciate your prompt response! You are awesome @kroitor

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cardano (ADA) to Bitcoin Cash (BCH) exchange - HitBTC
HitBTC is a global cryptocurrency trading platform established in 2013, offering fast and secure 24/7 exchange of ADA to BCH and many other...
Read more >
[HitBTC v3] FetchBalance incomplete · Issue #10484 · ccxt/ccxt ...
The hitbtc exchange contains 2 types of account (main and trading). This is correctly handled in hitbtc.js, however hitbtc3.js lacks this possibility ...
Read more >
@jmparsons/ccxt - npm
CCXT – CryptoCurrency eXchange Trading Library ... huobi.load_markets()) print(hitbtc.fetch_order_book(hitbtc.symbols[0])) ...
Read more >
CCXT - 简书
cryptocurrency exchange markets and trading APIs: ... The ccxt library will convert BCC to BCH where it is appropriate (some exchanges.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found