HITBTC fetch_balance return alternating 0 for BCH
See original GitHub issueMUST READ THIS BEFORE SUBMITTING ISSUES (read the links, then delete this message before submitting):
- https://github.com/ccxt/ccxt/wiki/FAQ
- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-submit-an-issue
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:
- Created 3 years ago
- Comments:14 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
P.S. The new build 1.38.56+ will arrive in ~15 minutes.
Thank you! Really appreciate your prompt response! You are awesome @kroitor