Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync main -> dev #1745

Merged
merged 11 commits into from
Nov 19, 2023
Merged

sync main -> dev #1745

merged 11 commits into from
Nov 19, 2023

Commits on Oct 4, 2023

  1. Merge pull request #1716 from ranaroussi/dev

    sync dev -> main
    ValueRaider authored Oct 4, 2023
    Configuration menu
    Copy the full SHA
    f6beadf View commit details
    Browse the repository at this point in the history
  2. Bump version to 0.2.31

    ValueRaider committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    308e58b View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. Fix pandas FutureWarning: "Passing literal html to 'read_html' is dep…

    …recated"
    
    This addresses #1685 (`institutional_holders`) and also `get_earnings_dates()`.
    
    Pandas issue is found here:
    pandas-dev/pandas#53767
    and the change in code here:
    https://github.com/pandas-dev/pandas/blob/5cedf87cccd77c7b4b6aaa64bfec98b32b512f68/pandas/io/html.py#L1238
    
    As for legacy Python 2.7 support: `io.StringIO` seems to be supported in
    the versions I tested. See https://docs.python.org/2/library/io.html
    mikez committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    06751a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b696add View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1740 from mikez/main

    Fix pandas FutureWarning: "Passing literal html to 'read_html' is deprecated"
    ValueRaider authored Nov 9, 2023
    Configuration menu
    Copy the full SHA
    6d3d6b6 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Add cookie & crumb to requests

    Add cookie & crumb to requests. Involves several changes:
    - fetch cookie & crumb, obviously.
    - two different cookie strategies - one seems to work better in USA, other better outside.
    - yfinance auto-detects if one strategy fails, and switches to other strategy.
    - cookie is stored in persistent cache folder, alongside timezones. Refetched after 24 hours.
    
    To have this work well with multithreading (yfinance.download()) requires more changes:
    - all threads share the same cookie, therefore the same session object. Requires thread-safety ...
    - converted data class to a singleton with "SingletonMeta":
     - the first init() call initialises data.
     - but successive calls update its session object - naughty but necessary.
    - thread locks to avoid deadlocks and race conditions.
    ValueRaider committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    4466e57 View commit details
    Browse the repository at this point in the history
  2. Beta version 0.2.32b1

    ValueRaider committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    1b0d835 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Configuration menu
    Copy the full SHA
    63a3531 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. Final tidy before merge

    ValueRaider committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    91efcd8 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1657 from ranaroussi/feature/cookie-and-crumb

    Add cookie & crumb to requests
    ValueRaider authored Nov 18, 2023
    Configuration menu
    Copy the full SHA
    4d4e56c View commit details
    Browse the repository at this point in the history
  3. Version 0.2.32

    ValueRaider committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    9b6e35b View commit details
    Browse the repository at this point in the history