[Python] how to get 1 minute price data of a specific time and date from yfinance?

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    I wanna know how can i get 1 minute gold price data of a specific time and date interval (such as an 1 houre interval in 18th october: 2021-10-18 09:30:00 to 2021-10-18 10:30:00) from yfinance or any other source in python?

    my code is:

    gold = yf.download(tickers="GC=F", period="5d", interval="1m")


    it seems it`s just possible to set period while i wanna set specific date and time intervals. thanks

    Continue reading...

Compartilhe esta Página