BitMEX/sample-market-maker

Request: https://www.bitmex.com/api/v1order

Opened this issue · 3 comments

Hi, have you ever had this kind of problem? I don't understand, it works very well in testnet but not in real.

Importing symbol settings for XBTUSD...
Unable to find settings-XBTUSD.py.
2020-05-20 00:17:22,712 - INFO - market_maker - BitMEX Market Maker Version: v1.1

2020-05-20 00:17:22,713 - INFO - ws_thread - Connecting to wss://www.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position
2020-05-20 00:17:22,713 - INFO - ws_thread - Authenticating with API Key.
2020-05-20 00:17:22,715 - INFO - ws_thread - Started thread
2020-05-20 00:17:23,725 - INFO - ws_thread - Connected to WS. Waiting for data images, this may take a moment...
2020-05-20 00:17:24,562 - INFO - ws_thread - Got all market data. Starting.
2020-05-20 00:17:24,562 - INFO - market_maker - Using symbol XBTUSD.
2020-05-20 00:17:24,564 - INFO - market_maker - Order Manager initializing, connecting to BitMEX. Live run: executing real trades.
2020-05-20 00:17:24,570 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2020-05-20 00:17:24,571 - INFO - bitmex - sending req to https://www.bitmex.com/api/v1order: {"filter": "{"ordStatus.isTerminated": false, "symbol": "XBTUSD"}", "count": 500}
2020-05-20 00:17:25,268 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://www.bitmex.com/api/v1order
null
2020-05-20 00:17:25,268 - INFO - market_maker - Shutting down. All open orders will be cancelled.
2020-05-20 00:17:25,271 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2020-05-20 00:17:25,272 - INFO - bitmex - sending req to https://www.bitmex.com/api/v1order: {"filter": "{"ordStatus.isTerminated": false, "symbol": "XBTUSD"}", "count": 500}
2020-05-20 00:17:25,487 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://www.bitmex.com/api/v1order

Thank you in advance!

dni commented

at first glance should it be https://www.bitmex.com/api/v1/order
with a slash after v1?

oooo yes, do you know where in the code this like is generated?!

ah found it in settings/py just added a backslash to https://www.bitmex.com/api/v1/