MohammedRashad / Crypto-Copy-Trader

A copy trading tool for cryptocurrencies - Binance Exchange
Apache License 2.0
202 stars 86 forks source link

bug no action triggered on slaves #44

Closed alexandrebouttier closed 3 years ago

alexandrebouttier commented 3 years ago

Hello have you encountered any bugs at the moment it's been 2 times that it detects but does nothing on my 2 Slaves and no errors, it's strange

2021-01-02 08:11:13,397 - INFO - The Crypto-Copy-Trader starts launch 2021-01-02 08:11:13,399 - INFO - Reading configuration file... 2021-01-02 08:11:13,400 - INFO - 2 Slave accounts detected 2021-01-02 08:11:13,407 - INFO - Connecting to the master: KeyMaman... 2021-01-02 08:11:14,464 - INFO - Connecting to the slaves. Its can take time... 2021-01-02 08:11:17,101 - INFO - Open masters websocket... 2021-01-02 08:11:17,346 - INFO - Launch complete. Now I can copy orders! 2021-01-02 20:58:12,601 - DEBUG - Event came: {'e': 'executionReport', 'E': 1609621084969, 's': 'ETHUSDT', 'c': xxxxxxxx', 'S': 'SELL', 'o': 'MARKET', 'f': 'GTC', 'q': '0.45432000', 'p': '0.00000000', 'P': '0.00000 000', 'F': '0.00000000', 'g': -1, 'C': '', 'x': 'NEW', 'X': 'NEW', 'r': 'NONE', 'i': 2426449851, 'l': '0.00000000', 'z': '0.00000000', 'L': '0.00000000', 'n': '0', 'N': None, 'T': 1609621084968, 't': -1, 'I': 5074388446, 'w': True, 'm': Fa lse, 'M': False, 'O': 1609621084968, 'Z': '0.00000000', 'Y': '0.00000000', 'Q': '340.80000000'} 2021-01-02 20:58:12,602 - DEBUG - Event came: {'e': 'executionReport', 'E': 1609621084969, 's': 'ETHUSDT', 'c': xxxxxxxx', 'S': 'SELL', 'o': 'MARKET', 'f': 'GTC', 'q': '0.45432000', 'p': '0.00000000', 'P': '0.00000 000', 'F': '0.00000000', 'g': -1, 'C': '', 'x': 'TRADE', 'X': 'FILLED', 'r': 'NONE', 'i': 2426449851, 'l': '0.45432000', 'z': '0.45432000', 'L': '750.12000000', 'n': '0.34079452', 'N': 'USDT', 'T': 1609621084968, 't': 235350357, 'I': 50743 88447, 'w': False, 'm': False, 'M': True, 'O': 1609621084968, 'Z': '340.79451840', 'Y': '340.79451840', 'Q': '340.80000000'} 2021-01-02 20:58:12,603 - DEBUG - Event came: {'e': 'outboundAccountPosition', 'E': 1609621084969, 'u': 1609621084968, 'B': [{'a': 'ETH', 'f': '0.00140990', 'l': '0.00000000'}, {'a': 'BNB', 'f': '0.00039450', 'l': '0.00000000'}, {'a': 'USD T', 'f': '342.68541755', 'l': '0.00000000'}]}

mokolotron commented 3 years ago

Hi. Its related with a recent change in the Binance API. I'm made PR to fix it.

alexandrebouttier commented 3 years ago

Hi. Its related with a recent change in the Binance API. I'm made PR to fix it.

Thanks for the fix, it worked well except for the second slave, I will see in a few days if its bug again

alexandrebouttier commented 3 years ago

no more bugs, thank you @mokolotron for your fix