Skip to main content
Glama

QuantConnect MCP Server

calculate_portfolio_performance

Analyze portfolio performance by calculating key metrics for specified symbols, weights, and date range, with optional benchmark comparison, on the QuantConnect MCP Server.

Instructions

Calculate portfolio performance metrics for given weights. Args: symbols: List of portfolio symbols weights: List of weights corresponding to symbols start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format benchmark_symbol: Optional benchmark for comparison instance_name: QuantBook instance name Returns: Dictionary containing portfolio performance metrics

Input Schema

NameRequiredDescriptionDefault
benchmark_symbolNo
end_dateYes
instance_nameNodefault
start_dateYes
symbolsYes
weightsYes

Input Schema (JSON Schema)

{ "properties": { "benchmark_symbol": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Benchmark Symbol" }, "end_date": { "title": "End Date", "type": "string" }, "instance_name": { "default": "default", "title": "Instance Name", "type": "string" }, "start_date": { "title": "Start Date", "type": "string" }, "symbols": { "items": { "type": "string" }, "title": "Symbols", "type": "array" }, "weights": { "items": { "type": "number" }, "title": "Weights", "type": "array" } }, "required": [ "symbols", "weights", "start_date", "end_date" ], "type": "object" }

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/taylorwilsdon/quantconnect-mcp'

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