-
Notifications
You must be signed in to change notification settings - Fork 744
bulk order endpoint issue after last commit #228
Description
Fresh install
this is what I get.
leftoverbuy in usd value 184.05378513198326
leftoversell in usd value 0
[1, 0] buy, sell
2021-11-18 17:05:12,956 - INFO - market_maker - Creating 1 orders:
2021-11-18 17:05:12,957 - INFO - market_maker - Buy 100 @ 58344.0
2021-11-18 17:05:12,957 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order/bulk: {"orders": [{"price": 58344.0, "orderQty": 100, "side": "Buy", "clOrdID": "-Puk
-QfCUFw", "symbol": "XBTUSD", "execInst": "ParticipateDoNotInitiate"}]}
2021-11-18 17:05:13,715 - ERROR - bitmex - Unable to contact the BitMEX API (404). Request: https://testnet.bitmex.com/api/v1/order/bulk
{"orders": [{"price": 58344.0, "orderQty": 100, "side": "Buy", "clOrdID": "-Pu0UFw", "symbol": "XBTUSD", "execInst": "ParticipateDoNotInitiate"}]}
2021-11-18 17:05:13,715 - INFO - market_maker - Shutting down. All open orders will be cancelled.
2021-11-18 17:05:13,716 - INFO - market_maker - Resetting current position. Canceling all existing orders.
2021-11-18 17:05:13,716 - INFO - bitmex - sending req to https://testnet.bitmex.com/api/v1/order: {"filter": "{"ordStatus.isTerminated": false, "symbol": "XBTUSD"}", "count": 500}
2021-11-18 17:05:15,134 - INFO - ws_thread - Websocket Closed
What am I doing wrong ??