sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.89k stars 2.2k forks source link

use correct account status path if the tld is .us, add param for vers… #1360

Open OpenCoderX opened 9 months ago

OpenCoderX commented 9 months ago

…ion in Client.get_account_status

The paths for the .com and .us account status endpoints have diverged. We now check the tld configured in the Client and use path 'accountStatus' if the tld is .us. We also allow the caller to pass an api version, which defaults to 1 if not passed. This leaves the functionality the same for traders lucky enough to interact with the .com api.

OpenCoderX commented 9 months ago

@sammchardy If you could take a look at this it would be great. I use the get_account_status function with the us tld and have had to maintain a patch to make get_account_status to work.