assets_get
Retrieve detailed instrument data including lot size, price step, and futures expiration dates from the Finam trading platform for Russian financial markets.
Instructions
Получение информации по конкретному инструменту (лот, шаг цены, дата экспирации фьючерса)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | symbol в формате: SYMBOL@MIC (например, YDEX@MISX) |
Implementation Reference
- src/servers/assets.py:11-15 (handler)The handler function for the 'assets_get' tool, which fetches detailed information for a specific asset (lot size, price step, futures expiration) using the Finam client.@assets_mcp.tool(tags={"assets"}) async def get(symbol: Symbol) -> AssetResponse: """Получение информации по конкретному инструменту (лот, шаг цены, дата экспирации фьючерса)""" return await get_finam_client().get_asset(symbol)
- src/main.py:14-14 (registration)Registers the assets MCP server under the 'assets' prefix, resulting in tool names like 'assets_get' for the 'get' function.finam_mcp.mount(assets_mcp, prefix="assets")
- src/tradeapi/models.py:8-15 (schema)Input schema for the 'symbol' parameter: Annotated string type with regex validation for format SYMBOL@MIC.Symbol: type[str] = Annotated[ str, Field( description="symbol в формате: SYMBOL@MIC (например, YDEX@MISX)", pattern=r"^[A-Z0-9]+@[A-Z]+$", # Regex валидация examples=["YDEX@MISX", "SBER@TQBR"] ) ]
- src/servers/utils.py:6-8 (helper)Helper utility to obtain the shared FinamClient instance from the MCP server context.def get_finam_client() -> FinamClient: return get_context().get_state("finam_client")
- src/servers/assets.py:8-8 (registration)Creates the FastMCP instance for assets tools, where individual tools are registered via decorators.assets_mcp = FastMCP(name="FinamAssetsServer")