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.
algoEligiblebooleanOptional
Indicates if the contract can trade algos or not.
allOrNoneEligiblebooleanOptional
indicates all or non option is eligible for given contract.
costReportbooleanOptional

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

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

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

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

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

incrementTypelongOptional
Indicates the type of increment style.
incrementRuleslist of objectsOptional
Indicates increment rule values including lowerEdge and increment value.
hasSecondarybooleanOptional
modTypeslist of anyOptional
Lists the available order types supported when modifying the order.
incrementdoubleOptional
Minimum increment values for prices
incrementDigitslongOptional
Number of decimal places to indicate the increment value.

Errors

401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error