assets_get_options_chain
Retrieve options chain data for underlying assets to analyze derivatives trading opportunities on 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:36-39 (handler)Handler function implementing the 'assets_get_options_chain' tool. Retrieves the options chain for the given symbol using the Finam client.async def get_options_chain(symbol: Symbol) -> OptionsChainResponse: """Получение цепочки опционов для базового актива""" return await get_finam_client().get_options_chain(symbol)
- src/tradeapi/models.py:8-15 (schema)Pydantic schema definition for the 'symbol' input parameter used in the tool.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/assets.py:36-36 (registration)Tool registration decorator on the handler function, with tags={'assets'} likely generating the tool name 'assets_get_options_chain'.async def get_options_chain(symbol: Symbol) -> OptionsChainResponse: