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
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | Yes | ||
| require_earnings_date | No | ||
| skip_mini_options_check | No |
Implementation Reference
- etrade_mcp/server.py:110-126 (handler)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)
- etrade_mcp/market.py:20-45 (helper)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()