> 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 Next Valid ID

#### EClient.reqIds (

**numIds:** int. This parameter will not affect the value returned to nextValidId but is required.\
)

Requests the next valid order ID at the current moment be returned to the EWrapper.nextValidId function.

#### Python

```python
self.reqIds(-1)
```

#### Java

```java
client.reqIds(-1);
```

#### C++

```cpp
m_pClient->reqIds(-1);
```

#### C\#

```csharp
client.reqIds(-1);
```

#### VB.NET

```vbnet
client.reqIds(-1)
```