How to pass "YA" to Financials elements in Polygon

I’ve got a script pulling financial data for a short list of stocks that’s working perfectly, except it’s only pulling data from 2017-2018. My assumption is that the default time period is short term, so it’s capping out at five time periods that ends well before 2020 (default cap off five).

My proposed solution is to pass it the type=YA (assuming that means “year annual”) so that it pulls only that, which should bring me up to 2020.

Currently my script works fine (except for the problem mentioned), if I remove the “YA” from the highlighted line.

Here is’s documentation for it also attached.

Any help greatly appreciated.