Skip to content

Stock Symbol - App_5.PY #1

Description

Error when running the app_5.py code, yfinance complains that 2d is a invalid duration. Changing this to 5d (the next valid option) worked.

previous_price = stock.history(period="2d")['Close'].iloc[0]

previous_price = stock.history(period="5d")['Close'].iloc[0]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions