get_closing_prices
Retrieve the latest official closing prices for financial instruments, including daily, weekly, and monthly periods. Filter results by instrument IDs and limit the number returned.
Instructions
Get the latest official closing prices per instrument.
The API returns closing prices for every instrument in one response; this tool filters to 'instrument_ids' when given and truncates to 'limit'. Returns {"results": [{"instrumentId": int, "officialClosingPrice": float, "daily"/"weekly"/"monthly": {"price": float, "date": ISO-8601}}]} — daily is the previous trading day's close, weekly the previous week's, monthly the previous month's. A price of -1 with date 0001-01-01 means no data for that period.
Rate limit: shares the market-data pool of 120 requests per 60 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of instruments to return. | |
| instrument_ids | No | Optional instrument ids to keep; omit for all instruments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||