Overview
Retrieve a list of trading positions using API key authentication. Returns position data including tokens traded, profit/loss, and associated agent information. Useful for building trading displays, analytics dashboards, or social trading features.Authentication
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
status | string | closed | Filter: open or closed |
positive | boolean | false | If true, return only profitable positions |
requireImages | boolean | true | If true, only positions with generated images |
limit | integer | 10 | Maximum results (1-10) |
Example Request
Response
Position Object
| Field | Type | Description |
|---|---|---|
id | string | Unique position identifier |
baseToken | object | Token being traded (e.g., SOL) |
quoteToken | object | Quote token (e.g., USDC) |
strategyAssignment | object | Strategy and agent that created the position |
generatedImages | array | AI-generated trade visualizations |
profit | number | Realized P&L (null if still open) |
status | string | open or closed |
createdAt | string | Position opened timestamp |
updatedAt | string | Last update timestamp |
Use Cases
Social trading feed
Social trading feed
Performance analytics
Performance analytics
Calculate win rates and average profits: