Reopen a same-day closed position.
const url = 'https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reopen';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"reopenedAt":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reopen \ --header 'Content-Type: application/json' \ --data '{ "reopenedAt": "2026-04-15T12:00:00Z" }'Authed. Transitions a closed position back to open for intraday re-entries, clearing closedAt while preserving openedAt (the position’s identity day). Allowed only when openedAt and the reopen timestamp fall on the same calendar day in the account’s timezone — a position opened on a previous day must be re-entered as a new position. A supplied reopenedAt may not precede closedAt nor lie in the future. Reopening posts a compensating reversing ledger row for the prior close so a subsequent re-close does not double-count realized P&L.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Optional ISO-8601 reopen timestamp; defaults to now. Must be on or after the position’s close time and not in the future.
Examplegenerated
{ "reopenedAt": "2026-04-15T12:00:00Z"}Responses
Section titled “Responses”The reopened (now open) position.
ReopenedAt precedes closedAt or is in the future.
Position not found (or not owned by the user).
The position is not closed, or its open day (in the account timezone) differs from the reopen day.