# User position data

#### **Retrieving user's&#x20;**<mark style="background-color:green;">**perpetual accounts**</mark>**&#x20;summary**

{% content-ref url="/pages/8GtMwfBKVkjt1oF8NO2J" %}
[clearinghouseState](/readme/rest-api/user-position-data/clearinghousestate.md)
{% endcontent-ref %}

#### **Retrieving multiple users'&#x20;**<mark style="background-color:green;">**perpetual accounts**</mark>**&#x20;summary**

{% content-ref url="/pages/QoZnodKzgRSvYcIl0ycA" %}
[batchClearinghouseStates](/readme/rest-api/user-position-data/batchclearinghousestates.md)
{% endcontent-ref %}

#### **Retrieving user's asset data and leverage settings**

Includes available trade size, leverage on a given asset, and mark price.

{% content-ref url="/pages/y1C2hZW72aGfl9UyJrsQ" %}
[activeAssetData](/readme/rest-api/user-position-data/activeassetdata.md)
{% endcontent-ref %}

#### **Retrieving user's&#x20;**<mark style="background-color:orange;">**spot**</mark>**&#x20;summary**

{% content-ref url="/pages/UhcfGYdqlEc3AuwVuhNB" %}
[spotclearinghouseState](/readme/rest-api/user-position-data/spotclearinghousestate.md)
{% endcontent-ref %}

#### **Retrieving user's account abstraction mode**

{% content-ref url="/pages/inHz3xpIMzCp2VGWeIuK" %}
[userAbstraction](/readme/rest-api/user-position-data/userabstraction.md)
{% endcontent-ref %}

#### **Retrieving user's full portfolio state (perp + spot + abstraction mode)**

{% content-ref url="/pages/NkGZmiqskyXzzFxtk6Ws" %}
[portfolioState](/readme/rest-api/user-position-data/portfoliostate.md)
{% endcontent-ref %}

#### **Retrieving multiple users' full portfolio states (perp + spot + abstraction mode)**

{% content-ref url="/pages/gcgNOVuR9YI3Rk9lgt8z" %}
[batchPortfolioStates](/readme/rest-api/user-position-data/batchportfoliostates.md)
{% endcontent-ref %}

#### **Retrieve web data**

{% content-ref url="/pages/HG2Lubojmc9FYNAtKwJI" %}
[webData2](/readme/rest-api/user-position-data/webdata2.md)
{% endcontent-ref %}


---

# 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://docs.hydromancer.xyz/readme/rest-api/user-position-data.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.
