Spaces:
Running
Running
Commit History
-
We are building a single-page application (SPA) for a stock prediction game. The user selects a stock (or exchange), predicts whether the price will go up or down by the market close (or end of business week), and earns points for correct predictions. Points are subtracted for incorrect ones.
Verified signatureKey features: 1. The app must store all data locally (using localStorage or IndexedDB). We'll use localStorage for simplicity. 2. The user cannot place predictions during market open hours. We need to check the current time against market hours (for US stock market: typically 9:30 AM to 4:00 PM Eastern Time, Monday to Friday). We'll also account for weekends and holidays (holidays can be skipped for simplicity, but we can note that the market is closed on specific holidays). 3. The app will have: - A way to select a stock (from a predefined list or by entering a ticker) and see its current price (we can use a free API for real-time data? But note: storing locally and the requirement to check at market open/close). However, note that we don't have a backend and we are storing locally. We might have to rely on a third-party API for stock data. But the problem says "check the web for these times with user" meaning we have to get the stock price at the market open of the day they selected?…e9278a1 -
initial commit
Verified signaturec22cc58