GET /api/optimisation/runs/:runId/paper-ledger
Account required · HTTP API reference
All endpoints · Authentication and retries · Download OpenAPI
- Requires a signed-in account and permission to access this resource. Use identifiers returned by your own account's earlier requests.
Request
| Parameter | Location | Type and requirement |
|---|---|---|
runId | path | string · required |
cursor | query | string · optional |
No request body.
Example
Examples use fictional data. Replace identifiers with resources you can access. For account requests, cookies.txt must contain your own session; set CSRF_TOKEN to the matching CSRF cookie value where required.
curl --include \
--request GET \
'https://api.weavers.app/api/optimisation/runs/1/paper-ledger' \
--cookie cookies.txt --cookie-jar cookies.txtResponses
200 · Successful response.
application/json
{
"runId": "1",
"entries": [],
"nextCursor": null
}View response model
logoDevPublishableKey optional · stringrunId required · stringentries required · array of objectView entries model
Array items:
positionId required · numberpositionStatus required · "open" | "closing" | "closed"paperPeriodId required · numbersymbol required · stringside required · stringopenedAt required · stringopenedDayOnly required · booleanclosedAt required · null | stringView closedAt model
Variant 1: null
null
Variant 2: string
string
closedDayOnly required · booleanquantity required · null | numberView quantity model
Variant 1: null
null
Variant 2: number
number
entryPrice required · null | numberView entryPrice model
Variant 1: null
null
Variant 2: number
number
exitPrice required · null | numberView exitPrice model
Variant 1: null
null
Variant 2: number
number
entryNotional required · null | numberView entryNotional model
Variant 1: null
null
Variant 2: number
number
takeProfitPrice required · null | numberView takeProfitPrice model
Variant 1: null
null
Variant 2: number
number
targetProfit required · null | numberView targetProfit model
Variant 1: null
null
Variant 2: number
number
targetReturn required · null | numberView targetReturn model
Variant 1: null
null
Variant 2: number
number
realizedPnl required · null | numberView realizedPnl model
Variant 1: null
null
Variant 2: number
number
realizedReturn required · null | numberView realizedReturn model
Variant 1: null
null
Variant 2: number
number
exitReason required · null | stringView exitReason model
Variant 1: null
null
Variant 2: string
string
allocatedCapital required · null | numberView allocatedCapital model
Variant 1: null
null
Variant 2: number
number
balance required · null | numberView balance model
Variant 1: null
null
Variant 2: number
number
equity required · null | numberView equity model
Variant 1: null
null
Variant 2: number
number
valuedAt required · null | stringView valuedAt model
Variant 1: null
null
Variant 2: string
string
leverage required · null | numberView leverage model
Variant 1: null
null
Variant 2: number
number
marginRequired required · null | numberView marginRequired model
Variant 1: null
null
Variant 2: number
number
marginShortfall required · null | false | trueView marginShortfall model
Variant 1: null
null
Variant 2: false
false
Variant 3: true
true
Additional fields: JSON values.
nextCursor required · null | stringView nextCursor model
Variant 1: null
null
Variant 2: string
string
Additional fields: JSON values.
400 · Invalid request.
application/json
{
"error": "example",
"code": "example"
}View response model
error required · stringcode required · stringAdditional fields: JSON values.
401 · Authentication is missing or invalid.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
403 · Permission, origin or CSRF check failed.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
404 · Resource or enabled capability not found.
application/json
{
"error": "example",
"code": "example"
}View response model
error required · stringcode required · stringAdditional fields: JSON values.
429 · Rate limit reached; honor Retry-After when supplied.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
500 · Server failure.
application/json
{}View response model
Error envelopes can include resource-specific details. Check the status before reading these fields.
error optional · stringcode optional · stringmessage optional · stringAdditional fields: JSON values.
default · Operation-specific error. Inspect error/code before deciding whether to retry.
application/json
{
"error": "example",
"code": "example"
}View response model
error required · stringcode required · stringAdditional fields: JSON values.