ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
33.26k stars 7.56k forks source link

BitMart watchBalance() does not work #20358

Closed grozz97 closed 11 months ago

grozz97 commented 11 months ago

Operating System

Ubuntu 20.04.5 LTS

Programming Languages

Python

CCXT Version

4.1.85

Description

BitMart watchBalance() does not update balance.

The example shows the latest data received by watchBalance() after buying 33 PAAL. At this moment PAAL was already on my balance, but watchBalance() shows 0.

Also, the USDT balance has not changed, it should be ~52, but it is indicated as ~58, which means it has not been updated either.

No further data was received.

Code

await bitmart.watch_balance():

 {'info': {'message': 'OK', 'code': '1000', 'trace': 'f984ce11603a49f0bba5e61e194cada3.67.17024854360392239', 'data': {'wallet': [{'id': 'SPONGEBUCKS', 'name': '$PONGEBUCKS', 'available': '2555.00000000', 'frozen': '0.00000000', 'total': '2555.00000000'}, {'id': 'BMX', 'name': 'BitMart Token', 'available': '0.00000000', 'frozen': '0.00000000', 'total': '0.00000000'}, {'id': 'PRINTR', 'name': 'PRINTR', 'available': '385.00000000', 'frozen': '0.00000000', 'total': '385.00000000'}, {'id': 'PEKA', 'name': 'PEKACHU', 'available': '0.00000180', 'frozen': '0.00000000', 'total': '0.00000180'}, {'id': 'NEXA', 'name': 'NEXA', 'available': '1322290.39000000', 'frozen': '0.00000000', 'total': '1322290.39000000'}, {'id': 'TWOB', 'name': 'The Wolf of Blockchain', 'available': '5.40000000', 'frozen': '0.00000000', 'total': '5.40000000'}, {'id': 'USDT', 'name': 'Tether USD', 'available': '58.92709332', 'frozen': '0.00000000', 'total': '58.92709332'}, {'id': 'PAAL', 'name': 'PAAL AI', 'available': '0.00000000', 'frozen': '0.00000000', 'total': '0.00000000'}]}}, 'SPONGEBUCKS': {'free': 2555.0, 'used': 0.0, 'total': 2555.0}, 'BMX': {'free': 0.0, 'used': 0.0, 'total': 0.0}, 'PRINTR': {'free': 385.0, 'used': 0.0, 'total': 385.0}, 'PEKA': {'free': 1.8e-06, 'used': 0.0, 'total': 1.8e-06}, 'NEXA': {'free': 1322290.39, 'used': 0.0, 'total': 1322290.39}, 'TWOB': {'free': 5.4, 'used': 0.0, 'total': 5.4}, 'USDT': {'free': 58.92709332, 'used': 0.0, 'total': 58.92709332}, 'PAAL': {'free': 0.0, 'used': 0.0, 'total': 0.0}, 'free': {'SPONGEBUCKS': 2555.0, 'BMX': 0.0, 'PRINTR': 385.0, 'PEKA': 1.8e-06, 'NEXA': 1322290.39, 'TWOB': 5.4, 'USDT': 58.92709332, 'PAAL': 0.0}, 'used': {'SPONGEBUCKS': 0.0, 'BMX': 0.0, 'PRINTR': 0.0, 'PEKA': 0.0, 'NEXA': 0.0, 'TWOB': 0.0, 'USDT': 0.0, 'PAAL': 0.0}, 'total': {'SPONGEBUCKS': 2555.0, 'BMX': 0.0, 'PRINTR': 385.0, 'PEKA': 1.8e-06, 'NEXA': 1322290.39, 'TWOB': 5.4, 'USDT': 58.92709332, 'PAAL': 0.0}} 
pcriadoperez commented 11 months ago

hi @grozz97 thanks for reporting. I found several bugs and opened a PR to address them.