Skip to main content
Glama
enderekici

Trading 212 MCP Server

by enderekici

get_exchanges

Retrieve exchange details and trading schedules to plan investment timing and manage portfolio activities across global markets.

Instructions

Get information about exchanges and their trading schedules

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP handler for the "get_exchanges" tool, which delegates to the Trading212Client.
    case 'get_exchanges': {
      const exchanges = await client.getExchanges();
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(exchanges, null, 2),
          },
        ],
      };
    }
  • The implementation of the getExchanges method in the Trading212Client which performs the API request.
    async getExchanges(): Promise<Exchange[]> {
      return this.request('/equity/metadata/exchanges', {}, z.array(ExchangeSchema));
    }

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