Skip to main content
Glama
jjmerri

E*TRADE MCP Server

by jjmerri

etrade_get_quote

Retrieve real-time stock quotes and market data for specified symbols using E*TRADE's Market API, including price, volume, bid/ask spreads, and optional earnings dates.

Instructions

Get stock quote for one or more symbols.

Args: symbols: Comma-separated list of stock symbols (e.g., "AAPL", "MSFT,GOOGL") require_earnings_date: If true, return next earnings date skip_mini_options_check: If true, skip check for mini options

Returns: Quote data including price, volume, bid/ask, and other market information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolsYes
require_earnings_dateNo
skip_mini_options_checkNo

Implementation Reference

  • MCP tool handler for 'etrade_get_quote', decorated with @mcp.tool(). Retrieves authenticated market client and delegates to its get_quote method.
    @mcp.tool()
    def etrade_get_quote(symbols: str, require_earnings_date: bool = False,
                         skip_mini_options_check: bool = False) -> dict:
        """
        Get stock quote for one or more symbols.
        
        Args:
            symbols: Comma-separated list of stock symbols (e.g., "AAPL", "MSFT,GOOGL")
            require_earnings_date: If true, return next earnings date
            skip_mini_options_check: If true, skip check for mini options
            
        Returns:
            Quote data including price, volume, bid/ask, and other market information
        """
        client = get_market_client()
        return client.get_quote(symbols, require_earnings_date, skip_mini_options_check)
  • Core helper method in MarketClient that performs the actual HTTP API call to retrieve quote data from E*TRADE.
    def get_quote(self, symbols: str, require_earnings_date: bool = False, 
                  skip_mini_options_check: bool = False) -> Dict[str, Any]:
        """
        Get quote for one or more symbols
        
        Args:
            symbols: Comma-separated list of symbols (e.g., "AAPL,MSFT,GOOGL")
            require_earnings_date: If true, return next earnings date
            skip_mini_options_check: If true, skip check for mini options
            
        Returns:
            Quote response data
        """
        url = f"{self.base_url}/v1/market/quote/{symbols}.json"
        
        params = {}
        if require_earnings_date:
            params["requireEarningsDate"] = "true"
        if skip_mini_options_check:
            params["skipMiniOptionsCheck"] = "true"
        
        response = self.session.get(url, params=params)
        response.raise_for_status()
        
        return response.json()

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/jjmerri/etrade-mcp'

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