Skip to content

bulk order endpoint issue after last commit #228

Description

@sencdaarvaarjemee

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 ??

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions