Skip to main content
Glama
Alexander-Panov

Finam MCP Server

account_get_transactions

Retrieve account transaction history from Finam trading platform. Specify date range to view past trades, deposits, and withdrawals for financial tracking.

Instructions

Получение списка транзакций аккаунта

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_timeYes
end_timeYes
limitNo

Implementation Reference

  • MCP tool handler implementing the account_get_transactions tool (prefixed from get_transactions). Proxies to FinamClient.get_transactions.
    @account_mcp.tool(tags={"account"}) async def get_transactions(start_time: AwareDatetime, end_time: AwareDatetime, limit: int = 10) -> GetTransactionsResponse: """Получение списка транзакций аккаунта""" return await get_finam_client().get_transactions(start_time, end_time, limit)
  • src/main.py:12-12 (registration)
    Registers the account_mcp server under the 'account' prefix, enabling tool names like 'account_get_transactions'.
    finam_mcp.mount(account_mcp, prefix="account")
  • Core helper method in FinamClient that performs the actual API call to fetch transactions.
    async def get_transactions(self, start_time: datetime, end_time: datetime, limit: int = 10): return await self.client.account.get_transactions( GetTransactionsRequest(account_id=self.account_id, start_time=start_time.isoformat(), end_time=end_time.isoformat(), limit=limit))
  • Utility function to retrieve the FinamClient instance from MCP context state.
    def get_finam_client() -> FinamClient: return get_context().get_state("finam_client")
  • Creates the FastMCP instance for account tools, where get_transactions is registered via decorator.
    account_mcp = FastMCP(name="FinamAccountServer")

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/Alexander-Panov/finam-mcp'

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