Order Error Details

View as MarkdownOpen in Claude

The WebAPI contains an array of unique error response systems dependent upon the layer a request fails at. The table below describes the status code, status message, and error message that may have lead to the issue.

Web API Errors

Status CodeStatus MessageError MessageContext
400BadRequestFailed to parse body as JSON. Content Type: application/json; charset=utf-8Request body is not properly formatted as JSON.
400BadRequestorders request includes parameter with incorrect typeField requiring a specific variable type is receiving an invalid type. See Place Order reference for support types.
400BadRequestInvalid Side (must be ‘BUY’ or ‘SELL’).Value for Side is invalid.
400BadRequestUnknown order typeProvided order type is inaccurate.
400BadRequestconid or conidex is requiredconid or conidex are not included or misspelled.

Interactive Brokers Errors & Precautions

Status CodeStatus MessageError MessageContext
200OKInvalid order price fieldsPrice value is not supported. Ensure the price adheres to market rules.
200OKnull time in force is not supported for this orderNo tif value was given, or the tif value was invalid.
200OK”id”:“{{Reply_ID}}”,“message”:[“{{Message}}”],“isSuppressed”:false,“messageIds”:[“{{Message_ID}}”],“messageOptions”:[“Yes”,“No”]See Suppressible Message IDs for specific ID information.
200OKno sec defs returned forSecDef reqId=resolve ecReqByConid13297Provided conid or conidex is invalid. Verify contract against /iserver/secdef/info.