> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/contracts/contracts.exec.md).

# Contracts.exec()

Executes the formed query and returns the list of Contract objects.

`exec(`*`limit_count: int = 0, offset_count: int = 0`*`) ->` [`APIList`](/glider-ide/api/iterables/apilist.md)`[`[`Contract`](/glider-ide/api/contract.md)`]`

## Example Query 1

```python
from glider import *

def query():
  contracts = Contracts().exec(3)

  return contracts
```

## Output Example 1

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FYpkACn8YDIsnBUC79cnF%2Fimage.png?alt=media&amp;token=1d796e43-1a5b-4f4d-b052-067343238035" alt=""><figcaption></figcaption></figure>

## Example Query 2

```python
from glider import *

def query():
  contracts = Contracts().exec(1, 2)

  return contracts
```

## Output Query 2

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F6Jf3jCs0PrHZArgHWJs4%2Fimage.png?alt=media&amp;token=1b4e9fe5-cb24-4ce3-af94-e916ca1a7552" alt=""><figcaption></figcaption></figure>
