---
title: "Contract Rules"
method: POST
path: "/iserver/contract/rules"
tags: ["Contract"]
---

# Contract Rules

`POST /iserver/contract/rules`

Returns trading related rules for a specific contract and side. For both contract info and rules use the endpoint /iserver/contract/{conid}/info-and-rules.

## Request body

- object
  - `conid` string, required — IBKR contract identifier
  - `isBuy` boolean, required — Side of the market rules apply too. Set to **true** for Buy Orders, set to **false** for Sell Orders

## Response `200`

returns an array

- object
  - `rules` object[]
    - `algoEligible` boolean
    - `canTradeAcctIds` integer[]
    - `error` string — Returns a description on any errors with order presets
    - `orderTypes` integer[]
    - `ibalgoTypes` integer[]
    - `fraqTypes` integer[]
    - `cqtTypes` integer[]
    - `orderDefaults` object[] — If object returned will provide the defaults based on user settings
      - `string` string[] — orderType
    - `orderTypesOutside` integer[]
    - `defaultSize` integer — Default quantity
    - `cashSize` integer — cash value
    - `sizeIncrement` integer — increment quantity value
    - `tifTypes` integer[]
    - `defaultTIF` string — Default time in force value
    - `limitPrice` number — Limit price
    - `stopprice` number — Stop price
    - `orderOrigination` number — Order origin designation for US securities options and Options Clearing Corporation
    - `preview` boolean — order preview required
    - `displaySize` number
    - `fraqInt` number — decimal places for fractional order size
    - `cashCcy` string — Cash currency for the contract
    - `cashQtyIncr` number — Increment value for cash quantity
    - `priceMagnifier` number — Price Magnifier
    - `negativeCapable` boolean — trading negative price support
    - `increment` number — Price increment value
    - `incrementDigits` integer — Number of digits for price increment

---

[API](https://skmtc.dev/ibkr/apis/client-portal-web-api.md) · [All operations](https://skmtc.dev/ibkr/apis/client-portal-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibkr/client-portal-web-api/revisions/32edbfe496d1/schema)
