assets_get_exchanges
Retrieve available stock exchanges with names and MIC codes from the Finam trading platform for Russian financial markets integration.
Instructions
Получение списка доступных бирж, включая их названия и MIC-коды
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/servers/assets.py:29-33 (handler)The FastMCP tool handler function for 'get_exchanges', which is prefixed to 'assets_get_exchanges' upon mounting the assets server.@assets_mcp.tool(tags={"assets"}) async def get_exchanges() -> ExchangesResponse: """Получение списка доступных бирж, включая их названия и MIC-коды""" return await get_finam_client().get_exchanges()
- src/main.py:14-14 (registration)Mounts the assets_mcp FastMCP instance with 'assets' prefix, resulting in tool name 'assets_get_exchanges' for the get_exchanges handler.finam_mcp.mount(assets_mcp, prefix="assets")
- src/servers/utils.py:6-8 (helper)Helper utility to obtain the FinamClient instance from the MCP context, used by the handler.def get_finam_client() -> FinamClient: return get_context().get_state("finam_client")
- src/tradeapi/client.py:71-72 (helper)FinamClient wrapper method that calls the underlying finam_trade_api.assets.get_exchanges() to fetch the list of exchanges.async def get_exchanges(self): return await self.client.assets.get_exchanges()