> This page is for TWS API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ibkrcampus.com/docs/llms.txt.

# Request Market Rule

#### EClient.reqMarketRule (

**marketRuleId**: int. The id of market rule\
)

Requests details about a given market rule. The market rule for an instrument on a particular exchange provides details about how the minimum price increment changes with price.

A list of market rule ids can be obtained by invoking [EClient.reqContractDetails](/tws-api/doc/contracts-financial-instruments/contract-details/request-contract-details) on a particular contract. The returned market rule ID list will provide the market rule ID for the instrument in the correspond valid exchange list in contractDetails.

#### Python

```python
self.reqMarketRule(26)
```

#### Java

```java
client.reqMarketRule(26);
```

#### C++

```cpp
m_pClient->reqMarketRule(26);
```

#### C\#

```csharp
client.reqMarketRule(26);
```

#### VB.NET

```vbnet
client.reqMarketRule(26)
```