Crypto-Copy-Trader
Crypto-Copy-Trader copied to clipboard
Order not placed on slave
I am unable to place orders on the salve account. I am using the master branch and the trade pair used is RENUSDT
Config and Command prompt window
Pair used RENUSDT (Limit order placed via binance.com on master account)
Slave account - No Limit order replicated.
To begin with, I see in the screenshot that only the server started, but the copying program did not start. You may have forgotten to press the run button.
When the program is fully launched you will see message: Using web socket
at the end.
Secondly, I forgot to warn that the pairs that the program will copy will only be in the config_files/symbols.csv
file. To add RENUSDT, you need to add the name of this trading pair to the end of the file.
So after that the file will look like :
ETHUSDT
BTCUSDT
ETHBTC
LTCBTC
RENUSDT
I didn’t include all the pairs because I couldn’t find a way to easily split the name of that pair into two names of two coins. Therefore, now you can only use trading pairs in which the first coin name consists of 3 characters. If you have any idea how to fix this then the function for splitting is located in ExchangeInterfaces/Exchange.py in get_trading_symbols() function
Thanks, I clicked on the run button and i see the following now.
I have added RENUSDT to the symbols.csv file i thought since RENUSDT was already in symbols2.csv it will be picked up automatically.
It happens when to use ony 1 slave account. You may use 2 or more slave accounts (Issue #8 ) It was fixed in develop branch.
Same problem using 2 slaves here
@djcrawleravp make sure that you use python 3.7 link
Python 3.7 Installed, do i have to install flask again?
How can i install it on python3.7?

I have installed Flask but the message stills when trying to launch the bot using python3.7
message that need to install flask or previus message module 'asyncio' has no attribute 'run'
?
Hi Mokolotron and all, i have error of "AttributeError: 'BinanceSocketManager' object has no attribute '_user_callback'" and not open trade on slaves Appreciate your help to advise or guide me, please. FYI, please. I use develop branch and already include the pair in symbols.csv, symbols2.csv, symbols3.csv, symbols4.csv
Thanks : alopc@alopc:~/copytrade/copytrade_dev$ python3 api.py
- Serving Flask app "api" (lazy loading)
- Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead.
- Debug mode: on
- Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
- Restarting with stat
- Debugger is active!
- Debugger PIN: 250-118-210
Application started...
Reading configuration file... 2 Slave accounts detected
Get Master Orders... '[]' Opening Slave Accounts...
Opening Slave Account #0 ...
Get Slave Orders... []
Opening Slave Account #1 ...
Get Slave Orders... []
Will start copying from now...please place a new order
Open Master Orders are 0 ...
127.0.0.1 - - [04/Dec/2020 17:27:55] "GET /run HTTP/1.1" 302 -
Using web socket
127.0.0.1 - - [04/Dec/2020 17:27:55] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [04/Dec/2020 17:29:58] "GET / HTTP/1.1" 200 -
{'e': 'executionReport', 'E': 1607074758951, 's': 'CREAMBNB', 'c': 'LpDiehaWYwwMXLdK08WUkG', 'S': 'SELL', 'o': 'LIMIT', 'f': 'GTC', 'q': '0.81000000', 'p': '2.46420000', 'P': '0.00000000', 'F': '0.00000000', 'g': -1, 'C': '', 'x': 'NEW', 'X': 'NEW', 'r': 'NONE', 'i': 13626870, 'l': '0.00000000', 'z': '0.00000000', 'L': '0.00000000', 'n': '0', 'N': None, 'T': 1607074758949, 't': -1, 'I': 27463130, 'w': True, 'm': False, 'M': False, 'O': 1607074758949, 'Z': '0.00000000', 'Y': '0.00000000', 'Q': '0.00000000'}
{'e': 'outboundAccountInfo', 'E': 1607074758951, 'm': 10, 't': 10, 'b': 0, 's': 0, 'T': True, 'W': True, 'D': True, 'u': 1607074758949, 'B': [{'a': 'BNB', 'f': '17.85797932', 'l': '0.00000000'}, {'a': 'BCH', 'f': '0.19500000', 'l': '0.00000000'}, {'a': 'BAL', 'f': '3.66000000', 'l': '0.00000000'}, {'a': 'NMR', 'f': '0.08000000', 'l': '0.00000000'}, {'a': 'EGLD', 'f': '5.07000000', 'l': '0.00000000'}, {'a': 'CREAM', 'f': '0.00000000', 'l': '0.81000000'}, {'a': 'FIL', 'f': '1.90000000', 'l': '0.00000000'}], 'P': ['SPOT']}
Unhandled Error
Traceback (most recent call last):
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/python/log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/python/log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
---
Unhandled Error
Traceback (most recent call last):
File "/home/alopc/.local/lib/python3.8/site-packages/binance/websockets.py", line 586, in run
reactor.run(installSignalHandlers=False)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/internet/base.py", line 1283, in run
self.mainLoop()
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/internet/base.py", line 1295, in mainLoop
self.doIteration(t)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/internet/epollreactor.py", line 235, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
---
{'e': 'executionReport', 'E': 1607074758951, 's': 'CREAMBNB', 'c': 'LpDiehaWYwwMXLdK08WUkG', 'S': 'SELL', 'o': 'LIMIT', 'f': 'GTC', 'q': '0.81000000', 'p': '2.46420000', 'P': '0.00000000', 'F': '0.00000000', 'g': -1, 'C': '', 'x': 'NEW', 'X': 'NEW', 'r': 'NONE', 'i': 13626870, 'l': '0.00000000', 'z': '0.00000000', 'L': '0.00000000', 'n': '0', 'N': None, 'T': 1607074758949, 't': -1, 'I': 27463130, 'w': True, 'm': False, 'M': False, 'O': 1607074758949, 'Z': '0.00000000', 'Y': '0.00000000', 'Q': '0.00000000'}
{'e': 'outboundAccountInfo', 'E': 1607074758951, 'm': 10, 't': 10, 'b': 0, 's': 0, 'T': True, 'W': True, 'D': True, 'u': 1607074758949, 'B': [{'a': 'BNB', 'f': '17.85797932', 'l': '0.00000000'}, {'a': 'BCH', 'f': '0.19500000', 'l': '0.00000000'}, {'a': 'BAL', 'f': '3.66000000', 'l': '0.00000000'}, {'a': 'NMR', 'f': '0.08000000', 'l': '0.00000000'}, {'a': 'EGLD', 'f': '5.07000000', 'l': '0.00000000'}, {'a': 'CREAM', 'f': '0.00000000', 'l': '0.81000000'}, {'a': 'FIL', 'f': '1.90000000', 'l': '0.00000000'}], 'P': ['SPOT']}
Unhandled Error
Traceback (most recent call last):
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/python/log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/python/log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
---
Unhandled Error
Traceback (most recent call last):
File "/home/alopc/.local/lib/python3.8/site-packages/binance/websockets.py", line 586, in run
reactor.run(installSignalHandlers=False)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/internet/base.py", line 1283, in run
self.mainLoop()
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/internet/base.py", line 1295, in mainLoop
self.doIteration(t)
File "/home/alopc/.local/lib/python3.8/site-packages/twisted/internet/epollreactor.py", line 235, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
---
Exception in thread Thread-19: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 1254, in run self.function(*self.args, **self.kwargs) File "/home/alopc/.local/lib/python3.8/site-packages/binance/websockets.py", line 544, in _keepalive_account_socket callback = self._user_callback AttributeError: 'BinanceSocketManager' object has no attribute '_user_callback' Exception in thread Thread-21: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 1254, in run self.function(*self.args, **self.kwargs) File "/home/alopc/.local/lib/python3.8/site-packages/binance/websockets.py", line 544, in _keepalive_account_socket callback = self._user_callback AttributeError: 'BinanceSocketManager' object has no attribute '_user_callback' Exception in thread Thread-24: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 1254, in run self.function(*self.args, **self.kwargs) File "/home/alopc/.local/lib/python3.8/site-packages/binance/websockets.py", line 544, in _keepalive_account_socket callback = self._user_callback AttributeError: 'BinanceSocketManager' object has no attribute '_user_callback' Exception in thread Thread-46: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 1254, in run self.function(*self.args, **self.kwargs) File "/home/alopc/.local/lib/python3.8/site-packages/binance/websockets.py", line 544, in _keepalive_account_socket callback = self._user_callback AttributeError: 'BinanceSocketManager' object has no attribute '_user_callback' Exception in thread Thread-48: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 1254, in run self.function(*self.args, **self.kwargs) File "/home/alopc/.local/lib/python3.8/site-packages/binance/websockets.py", line 544, in _keepalive_account_socket callback = self._user_callback AttributeError: 'BinanceSocketManager' object has no attribute '_user_callback' Exception in thread Thread-51: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 1254, in run self.function(*self.args, **self.kwargs) File "/home/alopc/.local/lib/python3.8/site-packages/binance/websockets.py", line 544, in _keepalive_account_socket callback = self._user_callback AttributeError: 'BinanceSocketManager' object has no attribute '_user_callback'
Hello. Try to use master branch. Currently develop chages already commited into master and also fixed some bugs.