Retrieve Aggregate Positions
GET {{baseUrl}}/v1/reporting/eod/aggregate_positions?date=1987-07-13
This API endpoint provides reporting data to partners for aggregate common stock and crypto positions across their account base. Partners can view historical snapshots of their holding across their entire account base. Please note that this API utilizes an 8:00 pm (EST) cutoff which aligns with the end of the Securities extended hours trading session as well as Alpaca’s 24 hour Crypto trading window. Additionally, the endpoint supports indexing to help the partner efficiently filter by key information including date and symbol while being able to include or remove firm accounts.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
date | string | (Required) “YYYY-MM-DD” format | |
symbols | string | Comma-separated symbols. If populated, then only the specified symbols will be returned. If null, then all symbols will be included in the response. | |
firm_accounts | string | Defaults to True which includes firm accounts. Passing False will exclude all firm accounts. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
[{"symbol":"904837e3-3b76-47ec-b432-046db621571b","cusip":"AAPL","long_qty":"1","short_qty":"10","long_market_value":"120.0","short_market_value":"1200.0","num_accounts":99718777,"asset_type":"us_equity","closing_price":"120.0"}]