yoshikouki / dividend-portal

1 stars 1 forks source link

増配率 (1 / 3 / 5 / 10年) のまとめとランキングをnoteで投稿 #80

Open yoshikouki opened 3 years ago

yoshikouki commented 3 years ago

どの分野の反応が良いかによって、次のコンテンツの指標にもなりそう

yoshikouki commented 3 years ago

https://financialmodelingprep.com/developer/docs/company-financial-statement-growth-api で 1,3,5,10 年の増配率が取れる

  "symbol" : "KO",
  "date" : "2020-12-31",
  "period" : "FY",
  "dividendsperShareGrowth" : 0.0221006013449490876,
  "tenYDividendperShareGrowthPerShare" : 0.856582513340086393,
  "fiveYDividendperShareGrowthPerShare" : 0.240311411807103942,
  "threeYDividendperShareGrowthPerShare" : 0.105970557203022425,
yoshikouki commented 3 years ago

このような形で取れた https://github.com/yoshikouki/dividend-portal/pull/81

root@4b558d20ef31:/app# bundle exec rspec -fp spec/models/analytics_spec.rb
{:one=>1.56, :three=>24.41, :five=>42.57, :ten=>177.69, :symbol=>"MMM", :period=>"Q4"}
{:one=>6.37, :three=>73.15, :five=>153.57, :ten=>743.36, :symbol=>"AOS", :period=>"FY"}
{:one=>12.22, :three=>36.29, :five=>47.5, :ten=>-16.3, :symbol=>"ABT", :period=>"FY"}
{:one=>7.53, :three=>79.44, :five=>126.22, :ten=>0, :symbol=>"ABBV", :period=>"FY"}
{:one=>4.05, :three=>29.47, :five=>41.87, :ten=>89.46, :symbol=>"AFL", :period=>"FY"}
{:one=>10.57, :three=>38.04, :five=>58.25, :ten=>165.54, :symbol=>"APD", :period=>"FY"}
{:one=>5.86, :three=>20.01, :five=>41.73, :ten=>179.98, :symbol=>"ALB", :period=>"FY"}
{:one=>-1.14, :three=>5.72, :five=>15.11, :ten=>26.66, :symbol=>"AMCR", :period=>"FY"}
{:one=>2.72, :three=>11.02, :five=>26.02, :ten=>149.01, :symbol=>"ADM", :period=>"FY"}
{:one=>2.73, :three=>7.0, :five=>15.3, :ten=>24.61, :symbol=>"T", :period=>"FY"}
{:one=>9.72, :three=>27.16, :five=>46.47, :ten=>70.0, :symbol=>"ATO", :period=>"FY"}
{:one=>7.14, :three=>51.48, :five=>77.12, :ten=>160.66, :symbol=>"ADP", :period=>"FY"}
{:one=>0.89, :three=>18.94, :five=>53.59, :ten=>149.29, :symbol=>"BDX", :period=>"FY"}
{:one=>307.23, :three=>39.75, :five=>333.16, :ten=>-51.01, :symbol=>"BF-B", :period=>"FY"}
{:one=>1.05, :three=>5.72, :five=>25.33, :ten=>149.48, :symbol=>"CAH", :period=>"FY"}
{:one=>8.51, :three=>33.14, :five=>39.34, :ten=>139.98, :symbol=>"CAT", :period=>"FY"}
{:one=>9.41, :three=>20.56, :five=>21.7, :ten=>83.35, :symbol=>"CVX", :period=>"FY"}
{:one=>2.79, :three=>9.98, :five=>16.31, :ten=>140.47, :symbol=>"CB", :period=>"FY"}
{:one=>7.01, :three=>-4.36, :five=>4.22, :ten=>50.14, :symbol=>"CINF", :period=>"FY"}
{:one=>68.43, :three=>163.91, :five=>308.14, :ten=>787.41, :symbol=>"CTAS", :period=>"FY"}
{:one=>5.23, :three=>27.68, :five=>44.56, :ten=>100.48, :symbol=>"CLX", :period=>"FY"}
{:one=>2.21, :three=>10.6, :five=>24.03, :ten=>85.66, :symbol=>"KO", :period=>"FY"}
{:one=>3.08, :three=>11.68, :five=>17.02, :ten=>65.44, :symbol=>"CL", :period=>"FY"}
{:one=>2.95, :three=>10.75, :five=>15.75, :ten=>28.63, :symbol=>"ED", :period=>"FY"}
{:one=>1.55, :three=>8.21, :five=>20.59, :ten=>84.35, :symbol=>"DOV", :period=>"FY"}
{:one=>1.81, :three=>26.56, :five=>45.04, :ten=>214.54, :symbol=>"ECL", :period=>"FY"}
{:one=>2.17, :three=>4.71, :five=>4.29, :ten=>50.82, :symbol=>"EMR", :period=>"FY"}
{:one=>2.39, :three=>20.06, :five=>45.17, :ten=>96.88, :symbol=>"ESS", :period=>"FY"}
{:one=>3.43, :three=>22.94, :five=>43.75, :ten=>158.17, :symbol=>"EXPD", :period=>"FY"}
{:one=>0.59, :three=>13.96, :five=>20.78, :ten=>100.11, :symbol=>"XOM", :period=>"FY"}
{:one=>2.46, :three=>9.54, :five=>21.54, :ten=>58.57, :symbol=>"FRT", :period=>"FY"}
{:one=>5.43, :three=>37.51, :five=>0.17, :ten=>-16.65, :symbol=>"BEN", :period=>"FY"}
{:one=>8.15, :three=>31.14, :five=>59.05, :ten=>161.07, :symbol=>"GD", :period=>"FY"}
{:one=>4.3, :three=>16.86, :five=>29.35, :ten=>92.47, :symbol=>"GPC", :period=>"FY"}
{:one=>13.01, :three=>41.15, :five=>95.38, :ten=>341.84, :symbol=>"HRL", :period=>"FY"}
{:one=>6.83, :three=>59.33, :five=>116.03, :ten=>242.95, :symbol=>"ITW", :period=>"FY"}
{:one=>1.1, :three=>10.17, :five=>29.97, :ten=>159.72, :symbol=>"IBM", :period=>"FY"}
{:one=>5.71, :three=>17.22, :five=>35.01, :ten=>90.6, :symbol=>"JNJ", :period=>"FY"}
{:one=>3.84, :three=>10.8, :five=>21.94, :ten=>65.38, :symbol=>"KMB", :period=>"FY"}
{:one=>2.61, :three=>14.12, :five=>27.88, :ten=>52.05, :symbol=>"LEG", :period=>"FY"}
{:one=>11.48, :three=>24.08, :five=>35.51, :ten=>115.26, :symbol=>"LIN", :period=>"FY"}
{:one=>13.97, :three=>54.78, :five=>130.38, :ten=>483.13, :symbol=>"LOW", :period=>"FY"}
{:one=>8.46, :three=>31.91, :five=>54.41, :ten=>137.69, :symbol=>"MKC", :period=>"FY"}
{:one=>5.1, :three=>29.67, :five=>41.6, :ten=>120.7, :symbol=>"MCD", :period=>"FY"}
{:one=>7.26, :three=>27.08, :five=>54.42, :ten=>157.56, :symbol=>"MDT", :period=>"FY"}
{:one=>40.14, :three=>76.17, :five=>129.7, :ten=>244.04, :symbol=>"NEE", :period=>"FY"}
{:one=>0.53, :three=>6.93, :five=>8.43, :ten=>-0.05, :symbol=>"NUE", :period=>"FY"}
{:one=>5.71, :three=>-44.73, :five=>-40.42, :ten=>-0.53, :symbol=>"PNR", :period=>"FY"}
{:one=>4.54, :three=>5.1, :five=>14.78, :ten=>25.01, :symbol=>"PBCT", :period=>"FY"}
{:one=>5.3, :three=>27.21, :five=>45.16, :ten=>114.01, :symbol=>"PEP", :period=>"FY"}
{:one=>5.85, :three=>23.39, :five=>48.18, :ten=>53.91, :symbol=>"PPG", :period=>"FY"}
{:one=>9.25, :three=>15.95, :five=>24.62, :ten=>62.93, :symbol=>"PG", :period=>"FY"}
{:one=>13.15, :three=>7.69, :five=>18.25, :ten=>58.34, :symbol=>"O", :period=>"Q4"}
{:one=>10.83, :three=>46.35, :five=>105.06, :ten=>439.73, :symbol=>"ROP", :period=>"FY"}
{:one=>17.48, :three=>63.2, :five=>100.58, :ten=>166.54, :symbol=>"SPGI", :period=>"FY"}
{:one=>17.74, :three=>57.16, :five=>99.31, :ten=>269.23, :symbol=>"SHW", :period=>"FY"}
{:one=>9.46, :three=>22.78, :five=>39.51, :ten=>0, :symbol=>"SWK", :period=>"FY"}
{:one=>6.56, :three=>30.0, :five=>48.32, :ten=>77.09, :symbol=>"SYY", :period=>"Q4"}
{:one=>18.57, :three=>58.34, :five=>-11.13, :ten=>240.91, :symbol=>"TROW", :period=>"FY"}
{:one=>4.13, :three=>10.47, :five=>24.81, :ten=>221.53, :symbol=>"TGT", :period=>"FY"}
{:one=>3.75, :three=>323.25, :five=>27.07, :ten=>197.15, :symbol=>"VFC", :period=>"FY"}
{:one=>6.35, :three=>20.8, :five=>35.58, :ten=>196.55, :symbol=>"GWW", :period=>"FY"}
{:one=>13.08, :three=>25.61, :five=>51.97, :ten=>265.85, :symbol=>"WBA", :period=>"FY"}
{:one=>1.98, :three=>5.84, :five=>10.27, :ten=>78.32, :symbol=>"WMT", :period=>"FY"}
{:one=>8.11, :three=>24.53, :five=>46.42, :ten=>102.23, :symbol=>"WST", :period=>"FY"}