List a position's entry lots for the specific-identification picker.
GET
/api/positions/{id}/lots
const url = 'https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lots';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-32D5F69181C0/lotsAuthed. One row per entry fill, carrying available — the lot’s quantity less every other exit’s current match. Pass exitFillId (an exit of this position) while editing that exit’s selection, and its own slices are added back into available so the dialog sees what it currently holds. method and jurisdiction echo the user’s resolved tax-lot settings, with no stored jurisdiction read as other.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
The position whose lots are listed.
Query Parameters
Section titled “Query Parameters”exitFillId
string format: uuid
An exit fill of this position whose own slices are excluded from available.
Responses
Section titled “ Responses ”The position’s lots, plus the resolved method and jurisdiction.
Media typeapplication/json
object
jurisdiction
string
lots
Array<object>
object
available
Decimal.
string
entryFillId
string format: uuid
filledAt
string format: date-time
price
Decimal.
string
quantity
Decimal.
string
method
string
Example
{ "jurisdiction": "US", "method": "fifo"}No such position for this user