Skip to main content
PUT
Update a position

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

accountId
integer
required

The financial account ID

positionId
integer
required

The position ID

Body

application/json
quantity
number

The units held now. The opening quantity absorbs the difference so the trades keep adding up.

Required range: x <= 999999999999
opening_cost_basis
number | null

What the opening units cost in the account currency; null clears it. The running cost_basis_total is replayed from it and the trades.

Required range: 0 <= x <= 999999999999
cost_basis_total
number | null

Deprecated alias of opening_cost_basis.

Required range: 0 <= x <= 999999999999
opened_at
string<date-time>

The day the position was opened. An earlier date backfills the value history from there.

Response

message
string
required
Allowed value: "Position updated."
data
ManualPositionResource · object
required