Skip to content

Stocks.Prices.get_quote_rh -- Active/after/closed pricing picker #1

@lockefox

Description

@lockefox

Current code does a crappy job picking the correct current_price value between last_trade_price or last_extended_hours_trade_price.

Also, the current method requires the code to hit /markets and /market/[NAME]/hours/[DATE] every time a quote is requested. Each request can take ~1s, and we already need 3 to make quotes from Robinhood.

  • Improve price picking method (and testability)
  • Add a tinydb, tinymongo or sqlite inline DB for caching today, and throwing away yesterday
  • Enumerate market status (open, after hours, closed, holiday)

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