Documentation Index
Fetch the complete documentation index at: https://limitless-docs-ws-settlement-events.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
ThePortfolioFetcher class retrieves your open positions and portfolio data from the Limitless Exchange API. It requires an authenticated HttpClient with a valid API key.
Setup
PortfolioFetcher requires an authenticated client. Ensure your API key is set via the LIMITLESS_API_KEY environment variable or the api_key parameter on HttpClient.Fetching Positions
Useget_positions() to retrieve all your open positions:
| Key | Type | Description |
|---|---|---|
clob | list[dict] | Positions on CLOB (order book) markets |
amm | list[dict] | Positions on AMM (automated market maker) markets |
accumulativePoints | dict | Accumulated points and rewards data |
Iterating CLOB Positions
Each entry in theclob list contains the market details and your position size:
Example response structure
Example response structure
The
PortfolioFetcher returns raw API responses without heavy parsing or transformation. Field names and types match the REST API directly. Refer to the API Reference for the complete response schema.