Open onisuk opened 2 years ago
On running I get the following error, any help much appreciated!
Importing symbol settings for XBTUSD... Unable to find settings-XBTUSD.py. 2022-07-02 14:04:03,015 - INFO - market_maker - BitMEX Market Maker Version: v1.1 2022-07-02 14:04:03,016 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position
2022-07-02 14:04:03,016 - INFO - ws_thread - Authenticating with API Key.
2022-07-02 14:04:03,016 - INFO - ws_thread - Started thread
2022-07-02 14:04:04,017 - INFO - ws_thread - Connected to WS. Waiting for data images, this may take a moment...
2022-07-02 14:04:05,851 - INFO - ws_thread - XBTUSD received. Waiting for account...
2022-07-02 14:04:05,851 - INFO - ws_thread - Got all market data. Starting.
2022-07-02 14:04:05,851 - INFO - market_maker - Using symbol XBTUSD.
2022-07-02 14:04:05,851 - INFO - market_maker - Order Manager initializing, connecting to BitMEX. Live run: executing real trades.
2022-07-02 14:04:05,851 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2022-07-02 14:04:05,851 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500}
2022-07-02 14:04:06,138 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://testnet.bitmex.com/api/v1order
null
2022-07-02 14:04:06,138 - INFO - market_maker - Shutting down. All open orders will be cancelled.
2022-07-02 14:04:06,138 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2022-07-02 14:04:06,138 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500}
2022-07-02 14:04:06,218 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://testnet.bitmex.com/api/v1order
Exception ignored in atexit callback: <bound method OrderManager.exit of <market_maker.market_maker.OrderManager object at 0x7f31c076bdf0>>
FIxed just added / to https://www.bitmex.com/api/v1/ in settings.py
On running I get the following error, any help much appreciated!
Importing symbol settings for XBTUSD... Unable to find settings-XBTUSD.py. 2022-07-02 14:04:03,015 - INFO - market_maker - BitMEX Market Maker Version: v1.1 2022-07-02 14:04:03,016 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position
2022-07-02 14:04:03,016 - INFO - ws_thread - Authenticating with API Key.
2022-07-02 14:04:03,016 - INFO - ws_thread - Started thread
2022-07-02 14:04:04,017 - INFO - ws_thread - Connected to WS. Waiting for data images, this may take a moment...
2022-07-02 14:04:05,851 - INFO - ws_thread - XBTUSD received. Waiting for account...
2022-07-02 14:04:05,851 - INFO - ws_thread - Got all market data. Starting.
2022-07-02 14:04:05,851 - INFO - market_maker - Using symbol XBTUSD.
2022-07-02 14:04:05,851 - INFO - market_maker - Order Manager initializing, connecting to BitMEX. Live run: executing real trades.
2022-07-02 14:04:05,851 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2022-07-02 14:04:05,851 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500}
2022-07-02 14:04:06,138 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://testnet.bitmex.com/api/v1order
null
2022-07-02 14:04:06,138 - INFO - market_maker - Shutting down. All open orders will be cancelled.
2022-07-02 14:04:06,138 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2022-07-02 14:04:06,138 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1order: {"filter": "{\"ordStatus.isTerminated\": false, \"symbol\": \"XBTUSD\"}", "count": 500}
2022-07-02 14:04:06,218 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://testnet.bitmex.com/api/v1order
null
Exception ignored in atexit callback: <bound method OrderManager.exit of <market_maker.market_maker.OrderManager object at 0x7f31c076bdf0>>