sammchardy / python-binance

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

NameError: name 'Client' is not defined #1012

Open Chaneriel opened 2 years ago

Chaneriel commented 2 years ago

I just started coding yesterday, but when I type;

from binance.client import Client api_key = 'api_key' api_secret = 'api_secret' client = Client(api_key, api_secret, tld='us')

it returns the error;

SyntaxError: EOL while scanning string literal

client = Client(api_key, api_secret, tld='us') Traceback (most recent call last): File "", line 1, in NameError: name 'Client' is not defined

Any help?

luk0y commented 2 years ago

It's saying syntax error EOL. Can you confirm there is no more code after the client variable?