Skip to content

checks/cs50/2019/x/finance/check50/lookup.py (Handle lower case symbol) #75

@napitts

Description

@napitts

lookup.py

  • IEX API will accept lower case symbols.
  • Student may choose to convert form input to lower case for consitency, prior to calling lookup() or storing in the database
  • This creates an issue when using check50, but not when using regular IEX API

Recommend to change lookup.py to better mimic IEX API, such as:
if (symbol.upper() == "AAAA"):

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