reidhansell / Market-Mock

A web application for paper-trading. Made with React and Node.
MIT License
0 stars 0 forks source link

Optimize isIntradayDataRecent to account for non-market-hours #90

Open reidhansell opened 11 months ago

reidhansell commented 11 months ago

Overview

Current Behavior

Currently, an API call if ANY data is over an hour old (for intraday).

Desired Behavior

If the market is closed, extra checks should be made to see if any API call is necessary

Use Cases

This will slow down data fetching for all users outside of market hours

Technical Scope

Should be a single-function change in intradayService.ts