1
$\begingroup$

(SOLVED: Solution is below the second graph)

The API results on GSPC: enter image description here

Same period in the interactive chart of ^GSPC: enter image description here

SOLVED

Apparently, Yahoo Finance API has different results for ^GSPC and GSPC.

$\endgroup$
1
$\begingroup$

Are you looking at the actual Close values or the Adjusted Close values in the API values? The Interactive chart shows the Adjusted Close values which account for dividends/splits/other corporate events. More on how Adjusted Close is calculated from actual Close here.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.