BitMEX/sample-market-maker

ERROR - ws_thread - API Key incorrect, please check and restart.

Closed this issue · 0 comments

Hello everyone,
Please forgive my noobish questions.
I followed the instructions in README.md and even though I have tried to create API Key and Secret a few times I am facing the following error message. As far as I read the related issues probably I have issue about correct location of API Key and Secret. Some says they should be put in settings.py and some says _settings_base.py. Also some says there are different settings.py files but I have found only one.
Could you please tell me what I should do?
And my last question is about spelling. Which one is true: API_KEY = "" or apiKey = "".
Thank you for your help.

2020-11-28 22:38:12,460 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position
2020-11-28 22:38:12,462 - INFO - ws_thread - Authenticating with API Key.
2020-11-28 22:38:12,464 - INFO - ws_thread - Started thread
2020-11-28 22:38:17,332 - ERROR - ws_thread - API Key incorrect, please check and restart.
2020-11-28 22:38:17,478 - ERROR - ws_thread - Couldn't connect to WS! Exiting.