# GET List Open Positions

```
GET https://api.swaycharts.io/dxsca-web/accounts/{account code}/positions
GET https://api.swaycharts.io/dxsca-web/accounts/positions?accounts={account codes}
```

Retrieve all open positions on a single account or on several accounts at once.

```
// Request

Empty request

Authorization header should be included in case of basic authentication

// Path Parameters

account code - unique code assigned to an account (see Account Code)

// Query Parameters

The following parameters are supported to query positions for multiple accounts:

account codes (optional) - comma-separated list of unique codes assigned to an account (see Account Code)

// Response

A list of open positions that match the request

The ETag header is sent.

// Errors

Common errors

API is not permitted for the user

Status code: 404 Not Found
Error code: 2
Description: Entity not found at server
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sway-technologies.gitbook.io/sway-charts-api-documentation/rest-api-specification/users-and-accounts/get-list-open-positions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
