Edit a fill.
PUT
/api/positions/{id}/fills/{fillId}
const url = 'https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fills/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"fees":"example","filledAt":"2026-04-15T12:00:00Z","notes":"example","price":"example","quantity":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fills/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "fees": "example", "filledAt": "2026-04-15T12:00:00Z", "notes": "example", "price": "example", "quantity": "example" }'Authed. Corrects a recorded fill and recomputes the position’s derived figures. type is immutable — an entry cannot become an exit; delete the fill and add the right one instead. Every field is optional; only what you send changes.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
fillId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
fees
Non-negative decimal.
string
filledAt
string format: date-time
notes
string
price
Non-negative decimal.
string
quantity
Positive decimal.
string
Examplegenerated
{ "fees": "example", "filledAt": "2026-04-15T12:00:00Z", "notes": "example", "price": "example", "quantity": "example"}Responses
Section titled “Responses”The updated fill.
Validation error: an exit quantity beyond the available entry quantity, or a fractional quantity on an options position.
No such position or fill for this user.
The change would leave the position inconsistent with its other fills.