Comparing Dividends vs Capital Gains with Indices-API Fluctuation Data for Market Insights