Git Product home page Git Product logo

Comments (1)

ItzXyers avatar ItzXyers commented on September 23, 2024

Try updating maybe?

Your code works on my machine (running yfinance==0.2.40).

My log:

DEBUG    Entering download()
DEBUG     Disabling multithreading because DEBUG logging enabled
DEBUG     Entering history()
DEBUG      Entering history()
DEBUG       AAPL: Yahoo GET parameters: {'period1': '1925-06-22 20:00:00-04:00', 'period2': '2024-05-29 14:52:45-04:00', 'interval': '1mo', 'includePrePost': False, 'events': 'div,splits,capitalGains'}
DEBUG       Entering get()
DEBUG        url=https://query2.finance.yahoo.com/v8/finance/chart/AAPL
DEBUG        params={'period1': -1405123200, 'period2': 1717008765, 'interval': '1mo', 'includePrePost': False, 'events': 'div,splits,capitalGains'}
DEBUG        Entering _get_cookie_and_crumb()
DEBUG         cookie_mode = 'basic'
DEBUG         Entering _get_cookie_and_crumb_basic()
DEBUG          loaded persistent cookie
DEBUG          reusing cookie
DEBUG          crumb = 'st20rwu6dJv'
DEBUG         Exiting _get_cookie_and_crumb_basic()
DEBUG        Exiting _get_cookie_and_crumb()
DEBUG        response code=200
DEBUG       Exiting get()
DEBUG       AAPL: yfinance received OHLC data: 1985-01-01 05:00:00 -> 2024-05-29 18:52:43
DEBUG       AAPL: OHLC after cleaning: 1985-01-01 00:00:00-05:00 -> 2024-05-01 00:00:00-04:00
DEBUG       AAPL: OHLC after combining events: 1985-01-01 00:00:00-05:00 -> 2024-05-01 00:00:00-04:00
DEBUG       AAPL: yfinance returning OHLC: 1985-01-01 00:00:00-05:00 -> 2024-05-01 00:00:00-04:00
DEBUG      Exiting history()
DEBUG     Exiting history()
DEBUG    Exiting download()

                  Open        High  ...  Dividends  Stock Splits
Date                                ...                         
1985-01-01    0.130022    0.138951  ...       0.00           0.0
1985-02-01    0.129464    0.137277  ...       0.00           0.0
1985-03-01    0.110491    0.116071  ...       0.00           0.0
1985-04-01    0.098772    0.102679  ...       0.00           0.0
1985-05-01    0.094866    0.099330  ...       0.00           0.0
...                ...         ...  ...        ...           ...
2024-01-01  187.149994  196.380005  ...       0.00           0.0
2024-02-01  183.990005  191.050003  ...       0.24           0.0
2024-03-01  179.550003  180.529999  ...       0.00           0.0
2024-04-01  171.190002  178.360001  ...       0.00           0.0
2024-05-01  169.580002  193.000000  ...       0.25           0.0

[473 rows x 8 columns]

from yfinance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.