Search Contract Rules

View as MarkdownOpen in Claude
Returns trading related rules for a specific contract and side.

Request

This endpoint expects an object.
conidlongRequired
Contract identifier for the interested contract.
isBuybooleanOptionalDefaults to true
Side of the market rules apply too. Set to true for Buy Orders, set to false for Sell orders.
modifyOrderbooleanOptionalDefaults to false
Used to find trading rules related to an existing order.
orderIdlongOptional
Specify the order identifier used for tracking a given order.

Response

An array of objects detailing contract information.
algoEligibleboolean
Indicates if the contract can trade algos or not.
allOrNoneEligibleboolean
indicates all or non option is eligible for given contract.
costReportboolean

Indicates whether or not a cost report has been requested (Client Portal only).

canTradeAcctIdslist of strings
Indicates permitted accountIDs that may trade the contract.
errorstring or null
If rules information can not be received for any reason, it will be expressed here.
orderTypeslist of enums
Indicates permitted order types for use with standard quantity trading.
ibAlgoTypeslist of enums
Indicates permitted algo types for use with the given contract.
fraqTypeslist of enums
Indicates permitted order types for use with fractional trading.
forceOrderPreviewboolean
Indicates if the order preview is forced upon the user before submission.
cqtTypeslist of enums
Indicates accepted order types for use with cash quantity.
orderDefaultsobject
Indicates default order type for the given security type.
orderTypesOutsidelist of enums
Indicates permitted order types for use outside of regular trading hours.
defaultSizelong
Default total quantity value for orders.
cashSizelong
Default cash value quantity.
sizeIncrementlong
Indicates quantity increase for the contract.
tifTypeslist of strings
Indicates allowed tif types supported for the contract.
tifDefaultsobject
Object containing details about your TIF value defaults. These defaults can be viewed and modified in TWS's within the Global Configuration.
limitPricedouble
Default limit price for the given contract.
stopPricedouble
Default stop price for the given contract.
orderOriginationstring or null
Order origin designation for US securities options and Options Clearing Corporation
previewboolean

Indicates if the order preview is required (for client portal only)

displaySizelong or null
Standard display increment rule for the instrument.
fraqIntlong
Indicates decimal places for fractional order size.
cashCcystring
Indicates base currency for the instrument.
cashQtyIncrlong
Indicates cash quantity increment rules.
priceMagnifierlong or null
Signifies the magnifier of a given contract. This is separate from the price multiplier, and will typically return 'null'
negativeCapableboolean

Indicates if the value of the contract can be negative (true) or if it is always positive (false).

incrementTypelong
Indicates the type of increment style.
incrementRuleslist of objects
Indicates increment rule values including lowerEdge and increment value.
hasSecondaryboolean
modTypeslist of any
Lists the available order types supported when modifying the order.
incrementdouble
Minimum increment values for prices
incrementDigitslong
Number of decimal places to indicate the increment value.

Errors

401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error