BitMEX / sample-market-maker

Sample BitMEX Market Making Bot
Apache License 2.0
1.7k stars 758 forks source link

ERROR - ws_thread - '>' not supported between instances of 'float' and 'NoneType' #150

Open jvoda1 opened 6 years ago

jvoda1 commented 6 years ago

I am getting the following ERROR when executing my bot:

Importing symbol settings for XBTUSD... Unable to find settings-XBTUSD.py. 2018-08-19 06:42:21,162 - INFO - market_maker - BitMEX Market Maker Version: v1.4

2018-08-19 06:42:21,172 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position 2018-08-19 06:42:21,189 - INFO - ws_thread - Authenticating with API Key. 2018-08-19 06:42:21,239 - INFO - ws_thread - Started thread 2018-08-19 06:42:25,452 - ERROR - ws_thread - '>' not supported between instances of 'float' and 'NoneType' 2018-08-19 06:42:26,251 - ERROR - ws_thread - Couldn't connect to WS! Exiting.

Checks done:

Any idea is welcome, thanks!

oisinmacgiollachuda commented 6 years ago

Are you running the bot like this? "marketmaker XBTUSD"? If so just try running "marketmaker" instead

jvoda1 commented 6 years ago

All described above is by running the bot with marketmaker XBTUSD, but I get similar result when just using marketmaker to run it.

C:\sample-market-maker-master>marketmaker XBTUSD Importing symbol settings for XBTUSD... Unable to find settings-XBTUSD.py. 2018-08-19 09:15:35,261 - INFO - market_maker - BitMEX Market Maker Version: v1.4

2018-08-19 09:15:35,273 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position 2018-08-19 09:15:35,291 - INFO - ws_thread - Authenticating with API Key. 2018-08-19 09:15:35,304 - INFO - ws_thread - Started thread 2018-08-19 09:15:36,918 - ERROR - ws_thread - '>' not supported between instances of 'float' and 'NoneType' 2018-08-19 09:15:37,309 - ERROR - ws_thread - Couldn't connect to WS! Exiting. 2018-08-19 09:15:37,317 - INFO - ws_thread - Websocket Closed

C:\sample-market-maker-master>marketmaker 2018-08-19 09:15:43,671 - INFO - market_maker - BitMEX Market Maker Version: v1.4

2018-08-19 09:15:43,681 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position 2018-08-19 09:15:43,704 - INFO - ws_thread - Authenticating with API Key. 2018-08-19 09:15:43,729 - INFO - ws_thread - Started thread 2018-08-19 09:15:44,597 - ERROR - ws_thread - '>' not supported between instances of 'float' and 'NoneType' 2018-08-19 09:15:44,735 - ERROR - ws_thread - Couldn't connect to WS! Exiting. 2018-08-19 09:15:44,741 - INFO - ws_thread - Websocket Closed

jvoda1 commented 6 years ago

up! any help please?

timor2015 commented 6 years ago

happened at my codes, do u have fixed it?

jvoda1 commented 6 years ago

No, not fixed yet. I was thinking on find out if there is some kind of debug mode so that I can identify exactly which part of the code is producing this error.

ryanfox commented 5 years ago

If the same code works correctly on a different machine, that is a strong indication there is something wrong in the environment.

You can increase the logging granularity by setting LOG_LEVEL = logging.DEBUG in your settings.py.

jvoda1 commented 5 years ago

Hello, Thanks for all your replies. I finally install the bot on another machine and I am running it on the other one. So that, it is an issue with the environment as mentioned by you. thanks

El mié., 26 sept. 2018 a las 0:07, Ryan Fox (notifications@github.com) escribió:

If the same code works correctly on a different machine, that is a strong indication there is something wrong in the environment.

You can increase the logging granularity by setting LOG_LEVEL = logging.DEBUG in your settings.py.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BitMEX/sample-market-maker/issues/150#issuecomment-424517993, or mute the thread https://github.com/notifications/unsubscribe-auth/AoKlDAVxurMqyPlrmYMqMHZbaUi45lfdks5ueqkPgaJpZM4WC8YF .