-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'NoneType' object has no attribute 'encode #26
Comments
It sounds to me like you’re not passing anything from the csv file. Is this located in the same directory as your script? |
I'm unable to replicate your issue. Are you using the Binance Testnet? |
@CyberPunkMetalHead Yes using testnet - What for vars do you set for Live/Mainnet? |
For mainnet the API keys and secret would have to be changed and the API.URL line removed. But if you’re using it on the testnet that shouldn’t be an issue since the bot is made work on the testnet first and foremost. Can you create a simple test order outside of the buy function and see what it returns? Give it explicit lot sizes and coin. |
Yes sir, I have my all mine set up from testnet.binance.vision. |
same error 'NoneType' object has no attribute 'encode' i wrote volume = calculate_volume() after the def calculate_volume(): |
Does your code return anything when you run client.get_account() ? |
'NoneType' object has no attribute 'encode' same error. so there is something wrong with the connection? am using the credentials from with client.API_URL = 'https://testnet.binance.vision/api' |
It looks like the API can't process your request. You can try updating the python-binance library and retry. |
still not working, would you mind if i dm you and we can sort this problem out live? |
@gossip69 @CyberPunkMetalHead |
I am also having this issue with no solution in sight. I tried it all. |
Created API key from https://testnet.binance.vision , but I dont know how it connects to my actual Binance account if that makes sense or adds to the issue
|
@ozeitis your testnet acc is not connected to your live account, just your GitHub account. It does look like an issue with your python-binance setup, unfortunately I'm unable to replicate it. I will update you if I come accross this issue. In the meantime you could try looking for this issue, or opening an issue in the python-binance lib. |
+1 |
create test order before pushing an actual order
over in this line im getting error message "'NoneType' object has no attribute 'encode", while it says preparing to buy xxx with USDT at xxx price.
Can help help me solve this issue?
Thanks.
The text was updated successfully, but these errors were encountered: