Skip to main content
Glama
enderekici

Trading 212 MCP Server

by enderekici

request_export

Export CSV account data for a specified time period, including dividends, interest, orders, and transactions for portfolio analysis.

Instructions

Request a CSV export of account data for a specified time period

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeFromYesStart date in ISO 8601 format (e.g., 2024-01-01T00:00:00Z)
timeToYesEnd date in ISO 8601 format
includeDividendsNoInclude dividend data in export
includeInterestNoInclude interest data in export
includeOrdersNoInclude order data in export
includeTransactionsNoInclude transaction data in export

Implementation Reference

  • The 'requestExport' method sends a POST request to '/equity/history/exports' to initiate an export.
    async requestExport(exportRequest: ExportRequest): Promise<{ reportId: number }> {
      return this.request('/equity/history/exports', {
        method: 'POST',
        body: JSON.stringify(exportRequest),
      });
    }

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/enderekici/trading212-mcp'

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