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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_exchanges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:721-731 (handler)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), }, ], }; } - src/client.ts:216-218 (handler)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)); }