API - Variation handling for stock data

Closes #6626 cc @claudiosmweb