The PortfolioFetcher class retrieves your open positions and portfolio data from the Limitless Exchange API. It requires an authenticated HttpClient with a valid API key.
from limitless_sdk.api import HttpClientfrom limitless_sdk.portfolio import PortfolioFetcherhttp_client = HttpClient() # loads LIMITLESS_API_KEY from envportfolio = PortfolioFetcher(http_client)
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.
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.