List the user's positions.
const url = 'https://api.tradr.cloud/api/positions?status=draft&classification=winning';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.tradr.cloud/api/positions?status=draft&classification=winning'Authed. Returns the user’s positions and multi-leg groups (newest first, one entry per group — no per-group query), each carrying its tags array ordered by category then case-insensitive name and its classification (winning, losing or breakeven for a closed position or group, null otherwise). A grouped entry carries kind: "group", its legs (each shaped like an ungrouped item), and group-level figures (label, detectedLabel, netEntry, maxLoss); an ungrouped entry carries no kind key. status, classification and tag filters match a group’s own derived fields, not any one leg’s. Optional filters may be combined.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Comma-separated tag UUIDs; positions must carry every listed tag (AND semantics). Elements that are not UUIDs are ignored; an unknown id matches nothing.
Keep only positions with this outcome (AND-combined with the other filters). Only closed positions carry a classification, so combining it with status=draft or status=open returns an empty list.
Responses
Section titled “ Responses ”The user’s positions, each with a tags array.
Validation error (e.g. an invalid accountId).