Comments (16)
@edeng23 no I have not, still waiting for binance.us to do advanced verification if that was needed.
this is the error i get with the latest repo
python ./crypto_trading.py
2021-02-22 17:39:08,232 - crypto_trader_logger - INFO - Started
Traceback (most recent call last):
File "./crypto_trading.py", line 477, in
main()
File "./crypto_trading.py", line 439, in main
client = Client(api_key, api_secret_key, tld=tld)
TypeError: init() got an unexpected keyword argument 'tld'
If i remove tld=tld from the crypto_trading.py i get
- crypto_trader_logger - INFO - APIError(code=-2015): Invalid API-key, IP, or permissions for action.
my user.cfg
[binance_user_config]
api_key=xxxxxxxx
api_secret_key=xxxxxxxx
current_coin=ETH
bridge=USDT
botChatID=xxxxxxxx
botToken=xxxxxxxx
tld=us
from binance-trade-bot.
Whenever you initialize the Client try passing in the tld parameter.
client = Client(api_key, api_secret_key, tld='us')
from binance-trade-bot.
Can you help me a little more and tell me how to do that?
I tried to add tld='us' to line 347 in the crypto_trading.py and get another error.
Thank you for your time.
from binance-trade-bot.
Currently the line is on 368
for me.
client = Client(api_key, api_secret_key, tld='us')
I get the same error as before...
I am also using a US key
from binance-trade-bot.
Does Advanced Verification and/or Cash Account Verification need to be completed in your binance.us account?
from binance-trade-bot.
Whenever you initialize the Client try passing in the tld parameter.
client = Client(api_key, api_secret_key, tld='us')
This worked for me, I'm a new Binance user in the US.
from binance-trade-bot.
So adding tld=us
will work IF you have already initialized all the coins and the cache folder is created. If you start with the tld=us
the coins initializing step at the beginning will fail
2021-02-17 19:15:42,614 - crypto_trader_logger - INFO - Initializing NEO vs TRX
Traceback (most recent call last):
File "./crypto_trading.py", line 387, in <module>
main()
File "./crypto_trading.py", line 372, in main
initialize_trade_thresholds(client)
File "./crypto_trading.py", line 336, in initialize_trade_thresholds
coin_price = float(get_market_ticker_price(client, coin + 'USDT'))
TypeError: float() argument must be a string or a number, not 'NoneType'
I think this is because the US version of the coin does not have the USDT
on the end of it
from binance-trade-bot.
So adding
tld=us
will work IF you have already initialized all the coins and the cache folder is created. If you start with thetld=us
the coins initializing step at the beginning will fail2021-02-17 19:15:42,614 - crypto_trader_logger - INFO - Initializing NEO vs TRX Traceback (most recent call last): File "./crypto_trading.py", line 387, in <module> main() File "./crypto_trading.py", line 372, in main initialize_trade_thresholds(client) File "./crypto_trading.py", line 336, in initialize_trade_thresholds coin_price = float(get_market_ticker_price(client, coin + 'USDT')) TypeError: float() argument must be a string or a number, not 'NoneType'
I think this is because the US version of the coin does not have the
USDT
on the end of it
Sorry, I think I posted the wrong output.
I replaced all the USDTs in the file, I get the same result either way.
from binance-trade-bot.
Just to follow up, adding ", tld = 'us'" to the proper line fixed the initialization problem.
Since the US domain doesn't allow all the coins in the supported_coin_list to be traded to/from USDT, I was able to change the supported_coin_list to this list and it stopped throwing anymore errors.
Different error, but is caused by adding the domain snippit.
from binance-trade-bot.
this is the error i get after adding ", tld = 'us'" to line 368 client = Client(api_key, api_secret_key)
2021-02-17 18:58:30,911 - crypto_trader_logger - INFO - Started
Traceback (most recent call last):
File "./crypto_trading.py", line 387, in
main()
File "./crypto_trading.py", line 368, in main
client = Client(api_key, api_secret_key, tld = 'us')
TypeError: init() got an unexpected keyword argument 'tld'
EDIT: Just saw my account does need advanced verification, have submitted details to have it verified. will update after.
from binance-trade-bot.
@inhaletime Did you solve this issue?
from binance-trade-bot.
Same problem here
from binance-trade-bot.
have edited supported coin list to
#60 (comment)
same error, have deleted and remade api keys and files.
2021-02-22 18:30:59,169 - crypto_trader_logger - INFO - Started
2021-02-22 18:31:05,027 - crypto_trader_logger - INFO - Will be jumping from to
Failed to Buy/Sell. Trying Again.
2021-02-22 18:31:06,445 - crypto_trader_logger - INFO - APIError(code=-2015): Invalid API-key, IP, or permissions for action.
Failed to Buy/Sell. Trying Again.
Failed to Buy/Sell. Trying Again.
from binance-trade-bot.
Because of recent fixes, US support should now be configurable. Do you still have this problem @inhaletime? It might be because of your Binance API configuration, prohibiting certain actions...
from binance-trade-bot.
Ok, it seems i may of had some outdated python packages, i have updated them and it is now running. I think the issue has been fixed!
from binance-trade-bot.
Cheers man
from binance-trade-bot.
Related Issues (20)
- how to code it HOT 1
- Error in parent package
- Is it a way to set amount of each trade value in USD instead of whole balance ?
- How to improve the utilization rate of funds? HOT 1
- What should I do if I want to remove the coin I want from the transaction? HOT 1
- Run error: "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 112, in _get_module_details HOT 5
- trade bot (binance)
- Chilight Bid
- Binance_trader_api impor error with Docker HOT 1
- error running python -m binance-trade-bot HOT 4
- How to set initial funds on setup instead of using actual initial funds amount currently in account
- Hey HOT 1
- Dependency error HOT 4
- CRITICAL:root:BinanceWebSocketApiManager.stream_is_crashing(923aa366-a9ce-40ee-924a-6984e38c6bef) HOT 2
- cannot import name 'run_with_reloader'
- first run error
- Binance module error
- ModuleNotFoundError: No module named 'cachetools' HOT 1
- Traceback (most recent call last): I SWEAR TO GOD PLS HELP
- backtest.py for 2023 failing consistantly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binance-trade-bot.