Skip to content

Run the instrument expiry pass now, as a job, instead of waiting for the hourly tick

POST
/admin/instruments/expiry-sweep
curl --request POST \
--url http://localhost:3001/admin/instruments/expiry-sweep \
--header 'Authorization: Bearer <token>'

Same function the background task calls, so an on-demand run and a scheduled one cannot diverge. Useful right after seeding a calendar (every dated contract gets its instant immediately) and for confirming a correction took effect. Answers at once with the job id; the counts are the job’s result.

Started; follow it at /admin/jobs/{job_id}; the result is an ExpirySweepResult

Media typeapplication/json
object
job_id
required
string format: uuid

Example generated

{
"job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}