¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Order rejected - reason:Message must contain field # 44


 

Got multiple errors like this lately:
ibapi.wrapper: ANSWER error {'reqId': 161494, 'errorCode': 201, 'errorString': 'Order rejected - reason:Message must contain field # 44', 'advancedOrderRejectJson': ''}

How is it possible to determine which field is #44 that is causing this error?

Corresponding request:
ibapi.client: REQUEST placeOrder {'orderId': 161494, 'contract': 1695173701456: 0,UVXY,STK,,0,,,SMART,,USD,,,False,,,,combo:, 'order': 1697515523088: 161494,0,0: LMT BUY 100.000000@0 }

ibapi.client: SENDING placeOrder b'\x00\x00\x01Z3\x00161494\x000\x00UVXY\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x00\x00\x00BUY\x00100.0\x00LMT\x000.0\x00\x00\x00\x00\x00\x000\x00\x001\x000\x000\x000\x000\x000\x000\x000\x00\x000\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00-1\x000\x00\x00\x001\x00\x00\x000\x000\x00\x000\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00\x000\x000\x00\x00\x000\x00\x000\x000\x000\x000\x00\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x000\x00\x00\x00\x001.7976931348623157e+308\x00\x00\x00\x00\x000\x000\x000\x00\x002147483647\x002147483647\x000\x00\x00\x00'

?


 

"" in the error message refers to the FIX protocol TWS/IBGW use when they communicate with IBKR. It's a "price" field, so you need to check your order objects for any missing or malformed price value.

´³¨¹°ù²µ±ð²Ô


On Tue, Nov 28, 2023 at 10:31 AM, bespalex wrote:

Got multiple errors like this lately:
ibapi.wrapper: ANSWER error {'reqId': 161494, 'errorCode': 201, 'errorString': 'Order rejected - reason:Message must contain field # 44', 'advancedOrderRejectJson': ''}

How is it possible to determine which field is #44 that is causing this error?

Corresponding request:
ibapi.client: REQUEST placeOrder {'orderId': 161494, 'contract': 1695173701456: 0,UVXY,STK,,0,,,SMART,,USD,,,False,,,,combo:, 'order': 1697515523088: 161494,0,0: LMT BUY 100.000000@0 }

ibapi.client: SENDING placeOrder b'\x00\x00\x01Z3\x00161494\x000\x00UVXY\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x00\x00\x00BUY\x00100.0\x00LMT\x000.0\x00\x00\x00\x00\x00\x000\x00\x001\x000\x000\x000\x000\x000\x000\x000\x00\x000\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00-1\x000\x00\x00\x001\x00\x00\x000\x000\x00\x000\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00\x000\x000\x00\x00\x000\x00\x000\x000\x000\x000\x00\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x001.7976931348623157e+308\x000\x00\x00\x00\x001.7976931348623157e+308\x00\x00\x00\x00\x000\x000\x000\x00\x002147483647\x002147483647\x000\x00\x00\x00'

?


 

Yes I can see now LMT BUY 100.000000@0?zero price somehow. Thank you!