Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
dividend yield of an ETF as variable

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.

1 response

Morningstar data has it. I think the variable name is literally dividend_yield but it's broken for anything that pays out monthly