BitMEX / api-connectors

Libraries for connecting to the BitMEX API.
https://www.bitmex.com/app/restAPI
910 stars 795 forks source link

Order Reject via API: Canceled: Order had ordType of Market\nSubmitted via API. #519

Open ManuCN opened 1 year ago

ManuCN commented 1 year ago

Hi all, I tried to submit a market order using the API. It got cxld with the message above. Any idea whats the issue here? I tried to submit the same order again using the API and it worked... Thanks a lot! Manuel

Below is the return value of the order function call: {'orderID': 'c050ff21-724e-4066-8ad2-c058d69606f1', 'clOrdID': '', 'clOrdLinkID': '', 'account': 405604.0, 'symbol': 'AVAXUSDT', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 6000.0, 'price': 15.527, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USDT', 'settlCurrency': 'USDt', 'ordType': 'Market', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'Canceled', 'triggered': '', 'workingIndicator': 0.0, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 0.0, 'simpleCumQty': None, 'cumQty': 0.0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Canceled: Order had ordType of Market\nSubmitted via API.', 'transactTime': '2022-10-19T19:35:15.680Z', 'timestamp': '2022-10-19T19:35:15.680Z'}