Get Last Prices
get_last_pricesRetrieve last known prices for a batch of investment instruments by providing their UIDs. Unknown instruments are flagged with found:false.
Instructions
Last known prices for a batch of instruments. Response order mirrors the request; unknown UIDs come back with found:false. priceUnit flags the quote unit: bonds are quoted in % of nominal (see get_instrument bond.nominal), futures in points.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instrumentIds": "<instrumentIds>"
},
"name": "get_last_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | No | Write the full result to this file (path relative to the output root: TINKOFF_OUTPUT_DIR or server cwd) instead of returning it inline. The response becomes a short summary {savedTo, records, bytes, sample}. Use for bulk data to keep the context clean. For get_candles/get_operations this also enables full-history fetching (chunking/pagination). | |
| outputFormat | No | File format; default json (or csv if outputPath ends with .csv). csv writes the main flat array of the response. | |
| instrumentIds | Yes | Instrument UIDs |