Skip to main content
POST
Compute and ingest Alpaca borrow status

Body

application/json

Request body for POST /api/internal/borrow/compute.

as_of defaults to get_most_recent_trading_day() when omitted (the daily-timer call) -- Alpaca's /v2/assets payload is current-status-only (no history), so as_of is simply the label attached to today's snapshot, not a window to backfill.

as_of
string<date> | null

Snapshot date to record rows under.

Response

Successful Response

Response from POST /api/internal/borrow/compute.

rows_inserted
integer
required
as_of
string<date>
required