Task 1 v3.1 rolling-window stock research basket for as_of 2024-11-29.
harbor run -t ashantanu/task1_v3_1_stock_research_basket_2024_11_29harbor download ashantanu/task1_v3_1_stock_research_basket_2024_11_29This is Task 1 v3.1 rolling-window instance 2024_11_29 with as_of=2024-11-29.
It is one of eight sibling Harbor tasks used to create eight separate
trajectories per model. The aggregate report is committed at
leaderboard/task1_v3_1_rolling_index.html and published at:
https://github.com/ashantanu/ppl-fin-bench/blob/main/leaderboard/task1_v3_1_rolling_index.html.
Use only the local point-in-time API for this window. Hidden forward
returns cover 2024-11-30 through 2025-11-29 and are verifier-only.
Use the local data API at http://127.0.0.1:18765. Do not query the internet or
any external market-data service.
The API serves a point-in-time public export for a stock research universe. Read
GET /v1/manifest first to identify the as_of date, universe_id, active
universe, benchmark, and public data window. Use only information available at
or before the manifest as_of.
Your job is to research every company in the universe, assign a buy, hold,
or sell rating to each company, and construct a 5-stock long basket for the
next 12 months.
Useful endpoints include:
GET /v1/manifest
GET /v1/universe?as_of=YYYY-MM-DD&universe_id=...
GET /v1/bars/{ticker}?start=&end=&as_of=
GET /v1/panel?tickers=&start=&end=&as_of=
GET /v1/benchmark/{symbol}?start=&end=&as_of=
GET /v1/company/{ticker}/profile?as_of=
GET /v1/company/{ticker}/filings?as_of=
GET /v1/company/{ticker}/metrics?as_of=&period=annual|ttm
GET /v1/company/{ticker}/earnings?as_of=
GET /v1/company/{ticker}/sections?as_of=§ion=mdna|risk_factors|liquidity|business
GET /v1/company/{ticker}/peers?as_of=
GET /v1/peer-group/{peer_group}/metrics?as_of=&period=ttm
GET /v1/universe/{universe_id}/metrics?as_of=&period=ttm
GET /v1/source/{source_id}
Compute and submit these factor scores for every universe member:
growth_score =
0.60 * pct_rank(revenue_growth_3y_cagr)
+ 0.40 * pct_rank(revenue_growth_1y)
quality_score =
0.30 * pct_rank(gross_margin_ttm)
+ 0.30 * pct_rank(fcf_margin_ttm)
+ 0.20 * pct_rank(cash_conversion_ttm)
+ 0.20 * pct_rank(-accrual_ratio_ttm)
valuation_score =
0.45 * pct_rank(fcf_yield)
+ 0.35 * pct_rank(-ev_to_fcf)
+ 0.20 * pct_rank(-ev_to_revenue)
balance_sheet_score =
0.45 * pct_rank(-net_debt_to_ebitda)
+ 0.30 * pct_rank(-share_dilution_3y)
+ 0.25 * pct_rank(-sbc_to_revenue_ttm)
momentum_score =
pct_rank(momentum_12m)
investment_score =
0.25 * growth_score
+ 0.25 * quality_score
+ 0.20 * valuation_score
+ 0.15 * balance_sheet_score
+ 0.15 * momentum_score
Estimate upside as:
base_ev = fcf_ttm * peer_median_ev_to_fcf
base_equity_value = base_ev - net_debt
base_upside_pct = base_equity_value / market_cap - 1
Apply these rating rules:
sell_override if:
fcf_ttm < 0 and revenue_growth_1y < 0
or net_debt_to_ebitda > 4.0
or share_dilution_3y > 0.30
or liquidity_pressure_evidence is cited
hold_cap if:
fcf_ttm <= 0
or ev_to_fcf is null
or accounting_quality_risk is cited
buy:
investment_score >= 0.70
base_upside_pct >= 0.15
no sell_override
no hold_cap
sell:
sell_override
or investment_score <= 0.35
or base_upside_pct <= -0.15
hold:
all other cases
Construct the basket by selecting the top 5 buy-rated stocks by:
0.70 * investment_score + 0.30 * confidence
If fewer than 5 names qualify as buy, fill remaining slots with the highest
investment-score hold names and mark them as lower confidence.
Write these files:
/app/answer.json/app/ratings.csv/app/metrics_table.csv/app/evidence.json/app/research_trace.json/app/memo.mdratings.csv and metrics_table.csv must include one row for every universe
member. The memo is for human inspection; the verifier scores the structured
JSON and CSV files.
The detailed machine-readable output schemas are available in /app/data:
/app/data/output_schema.answer.json/app/data/output_schema.ratings.json/app/data/output_schema.metrics_table.json/app/data/output_schema.evidence.json/app/data/output_schema.research_trace.json/app/answer.json must contain:
{
"task_id": "stock_research_basket_v1",
"as_of": "same as /v1/manifest",
"universe": "same as manifest.universe_id",
"basket": [
{
"ticker": "EXAMPLE",
"rank": 1,
"rating": "buy",
"confidence": 0.82,
"investment_score": 0.77,
"expected_policy_rating": "buy",
"base_upside_pct": 0.21,
"factor_scores": {
"growth_score": 0.8,
"quality_score": 0.87,
"valuation_score": 0.65,
"balance_sheet_score": 0.81,
"momentum_score": 0.72
},
"positive_labels": ["durable_growth"],
"negative_labels": [],
"citation_ids": ["SRC_EXAMPLE"]
}
],
"portfolio": {
"weighting": "equal_weight",
"num_positions": 5
}
}
Every basket row must include ticker, rank, rating, confidence,
investment_score, expected_policy_rating, base_upside_pct,
factor_scores, positive_labels, negative_labels, and citation_ids.
Allowed ratings are buy, hold, and sell.
/app/ratings.csv must have exactly these columns and one row per universe
member:
ticker,rating,confidence,investment_score,base_upside_pct,sell_override,hold_cap
/app/metrics_table.csv must include one row per universe member and at least
these columns:
ticker,
revenue_growth_3y_cagr,
revenue_growth_1y,
gross_margin_ttm,
operating_margin_ttm,
fcf_ttm,
fcf_margin_ttm,
cash_conversion_ttm,
accrual_ratio_ttm,
net_debt_to_ebitda,
share_dilution_3y,
sbc_to_revenue_ttm,
ev_to_revenue,
ev_to_fcf,
fcf_yield,
market_cap,
net_debt,
momentum_12m,
base_upside_pct,
growth_score,
quality_score,
valuation_score,
balance_sheet_score,
momentum_score,
investment_score
/app/evidence.json must contain:
{
"evidence": [
{
"source_id": "SRC_EXAMPLE",
"ticker": "EXAMPLE",
"claim_type": "metric",
"claim_key": "fcf_ttm",
"claimed_value": 100000000
}
]
}
Each evidence row must include source_id, ticker, claim_type, and
claim_key. Allowed claim_type values are metric, filing_label,
earnings, peer_comparison, and price.
/app/research_trace.json must contain a steps list with these completed
step names:
load_universe
fetch_metrics
inspect_filings
compare_peers
assign_ratings
construct_basket