|
|
|
@ -148,6 +148,7 @@ async def root_documentation():
|
|
|
|
<li><code>GET /stocks/trending</code> - Trending stocks with intelligent parameter coordination (n=500 default)</li>
|
|
|
|
<li><code>GET /stocks/trending</code> - Trending stocks with intelligent parameter coordination (n=500 default)</li>
|
|
|
|
<li><code>GET /stocks/most-active</code> - Most actively traded stocks</li>
|
|
|
|
<li><code>GET /stocks/most-active</code> - Most actively traded stocks</li>
|
|
|
|
<li><code>GET /stocks/52-week-gainers</code> - Top 52-week gaining stocks</li>
|
|
|
|
<li><code>GET /stocks/52-week-gainers</code> - Top 52-week gaining stocks</li>
|
|
|
|
|
|
|
|
<li><code>GET /stocks/index/{{index_name}}</code> - S&P 500 / Nasdaq 100 constituents from Wikipedia (24h cache) — <code>sp500</code> | <code>nasdaq100</code></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>FRED Economic Data <span class="new-badge">NEW</span></h3>
|
|
|
|
<h3>FRED Economic Data <span class="new-badge">NEW</span></h3>
|
|
|
|
@ -226,6 +227,16 @@ curl "http://localhost:18001/api/v1/stocks/trending"
|
|
|
|
# Custom total count
|
|
|
|
# Custom total count
|
|
|
|
curl "http://localhost:18001/api/v1/stocks/trending?n=200"</code></pre>
|
|
|
|
curl "http://localhost:18001/api/v1/stocks/trending?n=200"</code></pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Index Constituents <span class="new-badge">NEW</span></h3>
|
|
|
|
|
|
|
|
<pre><code># S&P 500 constituents (~503 stocks, cached 24h)
|
|
|
|
|
|
|
|
curl "http://localhost:18001/api/v1/stocks/index/sp500"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Nasdaq 100 constituents (~101 stocks, cached 24h)
|
|
|
|
|
|
|
|
curl "http://localhost:18001/api/v1/stocks/index/nasdaq100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Force refresh (bypass cache)
|
|
|
|
|
|
|
|
curl "http://localhost:18001/api/v1/stocks/index/sp500?force_refresh=true"</code></pre>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>FRED Economic Data <span class="new-badge">NEW</span></h3>
|
|
|
|
<h3>FRED Economic Data <span class="new-badge">NEW</span></h3>
|
|
|
|
<pre><code># Get GDP series information
|
|
|
|
<pre><code># Get GDP series information
|
|
|
|
curl "http://localhost:18001/api/v1/fred/proxy/series?series_id=GDP"
|
|
|
|
curl "http://localhost:18001/api/v1/fred/proxy/series?series_id=GDP"
|
|
|
|
@ -450,6 +461,10 @@ app.openapi_tags = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"name": "screener",
|
|
|
|
"name": "screener",
|
|
|
|
"description": "Stock screener — condition-based filtering by market cap, volume, price, P/E, sector, exchange"
|
|
|
|
"description": "Stock screener — condition-based filtering by market cap, volume, price, P/E, sector, exchange"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"name": "stocks",
|
|
|
|
|
|
|
|
"description": "Stock market data — most active, 52-week gainers, trending, and index constituents (S&P 500 / Nasdaq 100)"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|