I am trying to use the dividend yield of an ETF (SPY) as a variable for an algo. I know you can not grab the dividend yield using current or history but it would be nice if it worked that way.
Any help would be much appreciated and I will post the algo when I am finished with it.