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 retrieves your profile, open positions, and trading history. It requires an authenticated client.
Setup
PortfolioFetcher requires authentication. Configure LIMITLESS_API_KEY or HMAC credentials before calling these endpoints.Fetching Your Profile
Useget_profile() to retrieve a profile by wallet address:
Fetching All Positions
Useget_positions() to retrieve your portfolio:
CLOB Positions
Useget_clob_positions() for CLOB-only positions:
AMM Positions
Useget_amm_positions() for AMM-only positions:
User History
The Rust SDK uses the current cursor-based history API:- pass
Nonefor the first request - the SDK sends
cursor=with an empty value on that first call - subsequent requests use the returned
next_cursor limitdefaults to20when omitted
HistoryResponse
| Field | Type | Description |
|---|---|---|
data | Vec<HistoryEntry> | History records |
next_cursor | Option<String> | Cursor token for the next page |
HistoryEntry
| Field | Type | Description |
|---|---|---|
block_timestamp | i64 | Block timestamp |
collateral_amount | Option<String> | Collateral amount when present |
market | Option<HistoryMarket> | Market metadata |
outcome_index | Option<i32> | Outcome index |
outcome_token_amount | Option<String> | Single token amount |
outcome_token_amounts | Option<Vec<String>> | Multi-outcome token amounts |
outcome_token_price | Option<Value> | Price payload from the API |
strategy | Option<String> | Strategy label |
transaction_hash | Option<String> | Related transaction hash |
The first cursor request is not
page=1. The Rust SDK intentionally opts into the new backend flow by sending cursor= empty on the first request.Authentication Errors
If the client is missing credentials, portfolio methods returnLimitlessError::AuthenticationRequired before making the HTTP request: