get_all_industries
Retrieve all stock market symbols from Vietnam's stock exchanges, with output options in JSON or DataFrame format for analysis.
Instructions
Get all symbols from stock market
Args:
output_format: Literal['json', 'dataframe'] = 'json'
Returns:
pd.DataFrame or json
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_format | No | json |
Implementation Reference
- src/vnstock_mcp/server.py:296-310 (handler)The main handler function for the 'get_all_industries' tool, decorated with @server.tool() for registration in FastMCP. It fetches industry data using VCIListing().industries_icb() and returns as JSON or DataFrame.@server.tool() def get_all_industries(output_format: Literal["json", "dataframe"] = "json"): """ Get all symbols from stock market Args: output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame or json """ listing = VCIListing() df = listing.industries_icb() if output_format == "json": return df.to_json(orient="records", force_ascii=False) else: return df