[Python] yfinance API incorrect historical data

Discussão em 'Python' iniciado por Stack, Fevereiro 17, 2025.

  1. Stack

    Stack Membro Participativo

    I want to use yfinace to build a historical stock database to test some strategies. No i came across a problem with some historical data while using the api. It mainly happens for stocks which are not traded not a US market.

    For example if I get the historical data for 'BOE.L' using:

    boel = yf.Ticker("BOE.L")
    boelHist = boel.history(period='max')


    The earliest Close price returned is for 2001-06-11, which is: 2.191053e-06 While, on the yahoo website, this value is: 2,347.00 (for this date)

    Does anyone know what is going on here?

    Continue reading...

Compartilhe esta Página