Market Intelligence

Build a thematic basket from a prompt

Turns a plain-English theme into a weighted basket of US-listed stocks/ETFs and backtests it against a benchmark. Holdings are chosen today, so the backtest is hindsight-biased and not an out-of-sample test (disclosed in hindsight_warning).

post/v1/themes

Request

  • Base URL: https://tradewink.fly.dev
  • URL: https://tradewink.fly.dev/v1/themes
  • Auth: HTTP bearer

Request body

promptstring required
weighting'equal' | 'inverse_vol' | 'market_cap'
max_holdingsinteger
lookback'3mo' | '6mo' | '1y' | '2y' | '5y'

Example request

{
  "prompt": "nuclear power"
}

Response

Basket with holdings, weights, and backtest statistics

Changes

No recorded changes to this operation across all 1 revision of this API.