---
title: "Searches for open positions based on the provided request."
method: POST
path: "/api/Position/searchOpen"
tags: ["Position"]
---

# Searches for open positions based on the provided request.

`POST /api/Position/searchOpen`

## Request body

- SearchPositionRequest
  - `accountId` integer, required

## Response `200`

A response with search results.

- SearchPositionResponse
  - `success` boolean, required
  - `errorCode` 0 | 1, required — 0 = Success 1 = AccountNotFound
  - `errorMessage` string
  - `positions` PositionModel[]
    - `id` integer, required
    - `accountId` integer, required
    - `contractId` string, required
    - `contractDisplayName` string
    - `creationTimestamp` string, date-time, required
    - `type` 0 | 1 | 2, required — 0 = Undefined 1 = Long 2 = Short
    - `size` integer, required
    - `averagePrice` number, 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)
