---
title: "Searches for contracts based on the provided search criteria."
method: POST
path: "/api/Contract/search"
tags: ["Contract"]
---

# Searches for contracts based on the provided search criteria.

`POST /api/Contract/search`

## Request body

- SearchContractRequest
  - `searchText` string, required
  - `live` boolean, required

## Response `200`

A response containing the search results, including any matching contracts.

- SearchContractResponse
  - `success` boolean, required
  - `errorCode` 0, required — 0 = Success
  - `errorMessage` string
  - `contracts` ContractModel[]
    - `id` string, required
    - `name` string, required
    - `description` string, required
    - `tickSize` number, required
    - `tickValue` number, required
    - `activeContract` boolean, required
    - `symbolId` string, required

---

[API](https://skmtc.dev/topstepx/apis/projectx-gateway-api.md) · [All operations](https://skmtc.dev/topstepx/apis/projectx-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/topstepx/projectx-gateway-api/revisions/688252f4f704/schema)
