Skip to content

Commit 883c9a8

Browse files
authored
fix: correct 5 broken field names based on live API verification (#42)
Verified all 33 new fields against live TradingView scanner API. Five field names were invalid (returned Unknown field error); replaced with confirmed working names sourced from TradingView field reference: - analyst_recommendations_buy → recommendation_buy - analyst_recommendations_sell → recommendation_sell - analyst_recommendations_neutral → recommendation_hold - continuous_dividend_payout_years → continuous_dividend_payout - dps_yoy_growth_ttm → dps_common_stock_prim_issue_yoy_growth_fy All 28 other new fields confirmed working (non-null data for ≥9/10 top market-cap stocks). Graham number formula verified exact: sqrt(22.5×EPS×BVPS).
1 parent 20c5461 commit 883c9a8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/tools/fields.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -585,21 +585,21 @@ const STOCK_FIELDS: FieldMetadata[] = [
585585
description: "Oscillator composite signal: -1=Strong Sell to 1=Strong Buy.",
586586
},
587587
{
588-
name: "analyst_recommendations_buy",
588+
name: "recommendation_buy",
589589
label: "Analyst Buy Ratings",
590590
category: "fundamental",
591591
type: "number",
592592
description: "Number of analyst Buy/Strong Buy recommendations.",
593593
},
594594
{
595-
name: "analyst_recommendations_sell",
595+
name: "recommendation_sell",
596596
label: "Analyst Sell Ratings",
597597
category: "fundamental",
598598
type: "number",
599599
description: "Number of analyst Sell/Strong Sell recommendations.",
600600
},
601601
{
602-
name: "analyst_recommendations_neutral",
602+
name: "recommendation_hold",
603603
label: "Analyst Hold Ratings",
604604
category: "fundamental",
605605
type: "number",
@@ -733,18 +733,18 @@ const STOCK_FIELDS: FieldMetadata[] = [
733733

734734
// Dividend Growth
735735
{
736-
name: "continuous_dividend_payout_years",
736+
name: "continuous_dividend_payout",
737737
label: "Consecutive Dividend Years",
738738
category: "fundamental",
739739
type: "number",
740740
description: "Number of consecutive years paying dividends. Dividend Aristocrats have ≥25 years.",
741741
},
742742
{
743-
name: "dps_yoy_growth_ttm",
744-
label: "Dividend Growth YoY (TTM)",
743+
name: "dps_common_stock_prim_issue_yoy_growth_fy",
744+
label: "Dividend Growth YoY (FY)",
745745
category: "fundamental",
746746
type: "percent",
747-
description: "Year-over-year growth in dividends per share.",
747+
description: "Year-over-year growth in dividends per share (fiscal year).",
748748
},
749749

750750
// Index Membership

0 commit comments

Comments
 (0)