Jimin Huang commited on
Commit
e1f5588
·
1 Parent(s): db45c7f

Change settings

Browse files
Files changed (1) hide show
  1. README.md +26 -13
README.md CHANGED
@@ -1,16 +1,29 @@
1
- # Asset Choice Simulation (React + Vite)
 
 
 
 
 
 
 
2
 
3
- Interactive simulation where users pick daily assets and evaluate portfolio performance.
 
 
 
 
4
 
5
- ## Run locally
6
- ```bash
7
- npm install
8
- npm run dev
9
- ```
 
 
10
 
11
- ## Build
12
- ```bash
13
- npm run build
14
- ```
15
-
16
- Deploy to [Hugging Face Spaces](https://huggingface.co/spaces) as a Static Space.
 
1
+ ---
2
+ title: Asset Choice Simulation
3
+ emoji: 📈
4
+ colorFrom: gray
5
+ colorTo: blue
6
+ sdk: static
7
+ pinned: false
8
+ ---
9
 
10
+ Interactive web app to elicit asset preferences and risk tolerance:
11
+ - Shows **all assets on one chart** (last 7 days visible at start).
12
+ - User picks **one asset per day** (via line click, legend, or hotkeys).
13
+ - App rolls forward one day and logs **next-day return**.
14
+ - After 60 picks (to day 67), shows **Final Summary** (metrics, preference ranking, heatmap) and auto-downloads a **run summary JSON**.
15
 
16
+ ## How to use (in this Space)
17
+ 1. If provided, click **Load Example** to generate a randomized 5-asset, 67-day dataset.
18
+ 2. Or **Upload JSON** with historical series (format below).
19
+ 3. Click a line (or press `1..N`) to select; press **Confirm & Next Day** (or hit **Enter**).
20
+ 4. Review the **Portfolio** and **Daily Selections** panels as you go.
21
+ 5. After the last pick, the app auto-saves to `localStorage` and downloads:
22
+ `run_summary_YYYY-MM-DD.json`
23
 
24
+ ## JSON data format (upload)
25
+ ```json
26
+ {
27
+ "TICK1": [{"date": "2024-01-02", "close": 101.23}, ...],
28
+ "TICK2": [{"date": "2024-01-02", "close": 87.50}, ...]
29
+ }