This query is answered at : How to get stocks option historcal data python i times many times with gemini-i-get-not-right-code - #2 by Ajay_Pawar