Get a position's detail.
GET
/api/positions/{id}
const url = 'https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Authed. Returns the position with its fills, computed P&L, and its tags array ordered by category then case-insensitive name. Carries a compliance object (live rule score: finality, score, status and one entries element per applicable enabled rule) only when the user holds at least one trading rule, and omits the field when they hold none. Carries a group object (the multi-leg group this position is a leg of, with its other legs) only when the position belongs to one, and omits the field for an ungrouped position.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “ Responses ”The position detail, including its tags array and, when the user has rules, its compliance score.
Position not found (or not owned by the user).