Custom Stock Portfolio Generator

Generate custom stock portfolios from a universe of 60+ large-cap US equities using real market data from Yahoo Finance — no API key required on your end. Choose from three portfolio construction strategies: • random – random stock selection with randomized weights • risk_adjusted – selects top stocks by Sharpe ratio and weights them inversely proportional to volatility (lower-risk stocks get…

1 subscribers
5 endpoints
The in-depth APIMemo review for this API hasn't been published yet — the data below comes straight from the public marketplace listing.

Custom Stock Portfolio Generator endpoints

MethodEndpointDescription
General
GET health_health_get
/health
Lightweight health check for Railway health monitoring and uptime services. Returns 200 when the app is running.
GET root__get
/
Returns basic information about the API and links to documentation.
Universe
GET list_sectors_sectors_get
/sectors
Returns all sector names present in the stock universe.
GET list_stocks_stocks_get
/stocks
List all stocks in the universe with optional sector and dividend filters. Set `include_metrics=true` to also return expected return and volatility (requires a live yfinance…
Portfolio
GET generate_portfolio_generate_portfolio_get
/generate_portfolio
Generate a stock portfolio from the configurable universe. **How it works** 1. Historical daily prices (1 year) are fetched from Yahoo Finance and cached for 6 hours. 2.…

Custom Stock Portfolio Generator pricing

PlanPriceRate limitQuotas
BASIC $9.99 / month
  • Requests: 500,000 / monthly
PRO $29.99 / month
  • Requests: 500,000 / monthly
ULTRA $79.99 / month
  • Requests: 500,000 / monthly
MEGA $199.99 / month
  • Requests: 500,000 / monthly

More Finance APIs

View all →
  • StockTwits provides a social communications platform and social graph for anyone interested in the markets…

    FinanceFree926 subscribers
  • This API reproduces live PUBLIC data and features of YH. The response data is always live and synced with…

    FinanceFreemium
  • Lookup a bank's information based on a routing number input. Choose either ACH or wire transfer bank…

    FinanceFreemium966 subscribers
  • Index calculated by https://money.cnn.com/data/fear-and-greed/

    FinanceFree3.3k subscribers
  • Real-time(WebSocket) market data API powered by TradingView. Get stock quotes, candlestick data, technical…

    FinanceFreemium731 subscribers
  • Financial data provided for developers, to enter the world markets. Instant access for real-time and…

    FinanceFreemium12.3k subscribers