List the user's positions.
GET
/api/positions
const url = 'https://api.tradr.cloud/api/positions?status=draft';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'Authed. Returns the user’s positions (newest first), each carrying its tags array ordered by category then case-insensitive name. Optional filters may be combined.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”status
string
accountId
string format: uuid
tag
string
Comma-separated tag UUIDs; positions must carry every listed tag (AND semantics). Elements that are not UUIDs are ignored; an unknown id matches nothing.
Responses
Section titled “Responses”The user’s positions, each with a tags array.
Validation error (e.g. an invalid accountId).