Choosing the right correlation calculation has helped me in the past such as the Pearson correlation co-efficient shown here https://towardsdatascience.com/time-series-and-correlations-...
There's another company that's partners with Morningstar offering a direct API to protect portfolios here https://vectorspacebio.science/finance
Hope that helps!