--- title: 'Get Symbols Summary' api: 'GET /api/symbols/summary' description: 'Retrieves comprehensive summary data for all traded symbols including trading stats, dividends, and open positions' --- ## Endpoint ``` GET /api/symbols/summary ``` ## Authentication Requires OAuth 2.0 authentication via session cookies. ## Parameters None ## Response Indicates if the request was successful List of symbol summary objects with comprehensive trading statistics Stock ticker symbol Total number of completed trades Total P&L from trades Number of profitable trades Win rate percentage Average profit/loss per trade Average return percentage Total shares traded Number of dividend payments received Total dividend income Combined trading P&L and dividends Date of first trade (YYYY-MM-DD) Date of most recent trade (YYYY-MM-DD) Date of first dividend Date of most recent dividend Number of shares currently held Whether user has an open position Database source (always "postgresql") ## Example ```bash cURL curl -X GET https://performance.miningwood.com/api/symbols/summary \ -H "Cookie: session=your_session_cookie" ``` ```javascript JavaScript const response = await fetch('/api/symbols/summary'); const data = await response.json(); if (data.success) { data.symbols.forEach(symbol => { console.log(`${symbol.symbol}: ${symbol.total_trades} trades, ${symbol.win_rate_percentage}% win rate`); }); } ``` ```python Python import requests response = requests.get('https://performance.miningwood.com/api/symbols/summary') data = response.json() if data['success']: for symbol in data['symbols']: print(f"{symbol['symbol']}: ${symbol['trading_profit_loss']:.2f} P&L") ``` ## Response Example ```json { "success": true, "symbols": [ { "symbol": "AAPL", "total_trades": 25, "trading_profit_loss": 3450.50, "winning_trades": 18, "win_rate_percentage": 72.0, "avg_profit_loss": 138.02, "avg_return_percentage": 2.15, "total_volume": 2500, "total_dividend_payments": 8, "total_dividends": 320.00, "total_return": 3770.50, "first_trade_date": "2024-01-15", "last_trade_date": "2024-08-30", "first_dividend_date": "2024-02-15", "last_dividend_date": "2024-08-15", "current_shares_held": 100, "has_open_position": true } ], "data_source": "postgresql" } ``` ## Use Cases - Performance comparison across different stocks - Identifying best and worst performing symbols - Portfolio allocation decisions based on historical performance - Risk analysis across different holdings ## Related Endpoints Get detailed trade-by-trade information for a specific symbol Get list of all traded symbols