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

Instance of 'Client' has no 'futures_coin_account_trades' #721

Open zyairelai opened 3 years ago

zyairelai commented 3 years ago

Hi, I have been using this lib since December till now. Thank you for the contributor for this python-binance!

Recently I had updated to version 0.7.9, however, the futures_coin_XXX() functions are all not able to be called.

Here is the sample code I am using:

# Get environment variables
api_key = os.environ.get('API_KEY')
api_secret  = os.environ.get('API_SECRET')
client = Client(api_key, api_secret)
ping = client.futures_coin_ping()
print(ping)

Error Return:

Traceback (most recent call last):
  File "test.py", line 15, in <module>
    ping = client.futures_coin_ping()
AttributeError: 'Client' object has no attribute 'futures_coin_ping'

However, this works well if I replace client.futures_coin_ping() to client.futures_ping(). Seems like only the futures_coin functions has some issue.

tanakachitsamba commented 3 years ago

having the same issue too, have anyone found a fix for this?