Skip to main content
Glama
ariesanhthu

VNStock MCP Server

by ariesanhthu

get_company_insider_deals

Retrieve insider trading transactions for Vietnamese companies to monitor executive and major shareholder activities in the stock market.

Instructions

Get company insider deals from stock market Args: symbol: str output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
output_formatNojson

Implementation Reference

  • The handler function implementing the get_company_insider_deals tool. It uses TCBSCompany from vnstock to fetch insider deals for a given symbol and returns the data as JSON or DataFrame.
    @server.tool() def get_company_insider_deals( symbol: str, output_format: Literal["json", "dataframe"] = "json" ): """ Get company insider deals from stock market Args: symbol: str output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame """ equity = TCBSCompany(symbol=symbol) df = equity.insider_deals() if output_format == "json": return df.to_json(orient="records", force_ascii=False) else: return df
  • The @server.tool() decorator registers the get_company_insider_deals function as an MCP tool.
    @server.tool()
  • Input schema defined by function parameters with type hints: symbol (str), output_format (Literal["json", "dataframe"] default "json"). Docstring provides further description.
    symbol: str, output_format: Literal["json", "dataframe"] = "json" ):

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ariesanhthu/mcp-server-vietnam-stock-trading'

If you have feedback or need assistance with the MCP directory API, please join our Discord server