Skip to content

Delete a fill.

DELETE
/api/positions/{id}/fills/{fillId}
curl --request DELETE \
--url https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fills/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

Authed. Removes the fill and recomputes the position from what is left. An open position must keep at least one entry fill, and its entry quantity must stay at or above its exit quantity, so a deletion that would break either rule is refused rather than applied.

id
required
string format: uuid
fillId
required
string format: uuid

Deleted.

No such position or fill for this user.

The position is closed