Skip to main content
Glama

configure_quantconnect_auth

Set up API authentication for QuantConnect trading platform by providing user ID, API token, and optional organization ID to enable automated trading operations.

Instructions

Configure QuantConnect API authentication credentials.

Args: user_id: Your QuantConnect user ID (from email) api_token: Your QuantConnect API token (from Settings page) organization_id: Your organization ID (from organization URL)

Returns: Dictionary containing authentication configuration status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYes
api_tokenYes
organization_idNo

Implementation Reference

  • The main tool handler function that configures QuantConnect authentication credentials, validates them, and returns the status.
    @mcp.tool() async def configure_quantconnect_auth( user_id: str, api_token: str, organization_id: Optional[str] = None ) -> Dict[str, Any]: """ Configure QuantConnect API authentication credentials. Args: user_id: Your QuantConnect user ID (from email) api_token: Your QuantConnect API token (from Settings page) organization_id: Your organization ID (from organization URL) Returns: Dictionary containing authentication configuration status """ try: # Configure authentication auth = configure_auth(user_id, api_token, organization_id) # Validate the configuration is_valid, message = await auth.validate_authentication() if is_valid: return { "status": "success", "message": "QuantConnect authentication configured and validated successfully", "user_id": user_id, "organization_id": organization_id, "has_organization": organization_id is not None, "authenticated": True, } else: return { "status": "error", "error": f"Authentication validation failed: {message}", "user_id": user_id, "organization_id": organization_id, "authenticated": False, } except Exception as e: return { "status": "error", "error": str(e), "message": "Failed to configure QuantConnect authentication", }
  • Registers the authentication tools, including configure_quantconnect_auth, by calling register_auth_tools on the MCP instance.
    register_auth_tools(mcp)
  • Helper function called by the handler to set up the global QuantConnectAuth instance with provided credentials.
    def configure_auth( user_id: Optional[str] = None, api_token: Optional[str] = None, organization_id: Optional[str] = None, ) -> QuantConnectAuth: """ Configure global QuantConnect authentication. Args: user_id: QuantConnect user ID api_token: QuantConnect API token organization_id: QuantConnect organization ID Returns: Configured QuantConnectAuth instance """ global _auth_instance _auth_instance = QuantConnectAuth(user_id, api_token, organization_id) return _auth_instance
  • Function signature and docstring defining the input parameters and output format, serving as the tool schema.
    async def configure_quantconnect_auth( user_id: str, api_token: str, organization_id: Optional[str] = None ) -> Dict[str, Any]: """ Configure QuantConnect API authentication credentials. Args: user_id: Your QuantConnect user ID (from email) api_token: Your QuantConnect API token (from Settings page) organization_id: Your organization ID (from organization URL) Returns: Dictionary containing authentication configuration status """
  • The @mcp.tool() decorator registers the function as an MCP tool within the register_auth_tools function.
    @mcp.tool()

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

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