Eric0801
d3dd4efc53
debug: add detailed logging for Flask initialization
2 months ago
Eric0801
b50b9ee92d
fix: lazy load assets files to prevent startup failure
2 months ago
Eric0801
f076054d6a
fix: use shell script for Railway startup
2 months ago
Eric0801
4d45bca548
debug: check if assets files exist in container
2 months ago
Eric0801
e592b9893e
feat: support Railway DATABASE_URL and REDIS_URL env vars
2 months ago
Eric0801
d43ea4c7b9
fix: use bridge network driver instead of external for Railway
2 months ago
Eric0801
0eabfaa906
fix: use fixed port 8000 instead of $PORT variable
2 months ago
Eric0801
ca66ea71af
fix: correct startCommand in railway.json
2 months ago
Eric0801
9c613cf4b7
fix: use --chdir instead of cd in Procfile
2 months ago
Eric0801
dd3270675a
fix: reduce gunicorn workers to 2 for Railway memory limit
2 months ago
Eric0801
3193ca1daf
Merge branch 'main' of https://github.com/Eric0801/TPM-v3
2 months ago
Eric0801
f6f2eb7552
Initial commit
2 months ago
Eric0801
cbd580bb12
feat: V2 prompt system with benchmarks and CoT for Demo Day
...
- Add investment_advice_v2.py (educational content)
- Add market_benchmark.py (0050.TW/SPY real-time data)
- Update main.py (CoT parameter support)
- Update llm_service.py (V2 integration)
- Update result_view.html (CoT toggle, marked.js)
- Add render.yaml (deployment config)
- Update .gitignore (protect .env, node_modules, logs)
2 months ago
Eric0801
1c16cb4321
[UX] Remove accordion, restore detailed prompt, keep popover options
...
- Removed accordion functionality as content became too sparse
- Restored detailed prompt structure from llm_service.py
- Enhanced fallback analysis with comprehensive metrics (VaR, R2, etc)
- Kept popover options for different analysis modes
- Updated max_tokens to 3000 for more detailed responses
2 months ago
Eric0801
14407e04d2
feat: improve LLM output styling and prompt structure
...
- Modernize CSS styling with gradients, better typography, and responsive design
- Enhance prompt structure with emoji icons and clearer sections
- Integrate prompts/investment_advice.py templates into llm_service.py
- Add fallback mechanism for prompt templates
- Improve visual hierarchy and readability
2 months ago
Eric0801
bfe88e4b80
docs: add README with setup, workflow, and guardrails; no code changes
2 months ago
Eric0801
3290b69d72
docs: add cursor.md guardrails to prevent tech debt; no code changes
2 months ago
Eric0801
c35d0cd8aa
Fix syntax error in test script\n\n- Corrected missing parenthesis in test_llm_service.py\n- All tests now pass successfully
3 months ago
Eric0801
5a93aa5fb4
Fix unhashable type error in prompt templates\n\n- Fixed syntax error in prompts/investment_advice.py: {{}} -> {}\n- Cleaned up duplicate imports in llm_service.py\n- Removed unused lru_cache import\n- All prompt templates now work correctly\n- Demo script runs successfully
3 months ago
Eric0801
45e9ea7ec2
Add LLM investment advice feature with OpenAI integration\n\n- Created llm_service.py with comprehensive LLM advisor\n- Added config_openai.py for API configuration\n- Created prompts/investment_advice.py with prompt templates\n- Updated requirements.txt with OpenAI dependency\n- Modified main.py with /api/llm_advice endpoint\n- Enhanced result_view.html with LLM advice section\n- Added CSS styling for better UI\n- Created LLM_SETUP.md setup guide\n- Added test_llm_service.py for testing\n- Implemented caching, retry logic, and error handling\n- Features: strategy analysis, risk assessment, market insights
3 months ago
Eric0801
fd39ea0287
Infra and data updates: fix Redis volume, expose DB, stabilize yfinance ingestion\n\n- docker-compose: use named volume for redis-data; keep common_network; Flask reachable on 8007\n- data_clear&update_us_v0.py: host=localhost; safe price_col; float cast; threads=False\n- data_clear&update_tw_v0.py: same fixes as US; robust insert values\n- update_data_daily.py: consistency fixes for yf.download and price column\n- requirements: align versions for stability\n- Re-initialized US/TW data to latest (2025-09-24)
3 months ago
Eric0801
086961bed7
Update requirements.txt and finalize data initialization scripts
...
- Updated yfinance from 0.2.22 to 0.2.26
- Updated requests from 2.28.2 to 2.31
- Updated numpy constraint to >=1.23.5
- Finalized data_clear&update scripts with proper error handling
- All data initialization scripts now working correctly
3 months ago
Eric0801
9c6db84e15
Fix yfinance data download issues in data initialization scripts
...
- Updated data_clear&update_us_v0.py and data_clear&update_tw_v0.py
- Added proper error handling for empty DataFrames
- Added threads=False parameter to yf.download calls
- Added price column detection (Close vs Adj Close)
- Changed host from 'db' to 'localhost' for local execution
- Fixed float conversion for pandas Series elements
- Successfully updated US stocks (527 tickers) and TW stocks (1865 tickers) to 2025-09-24
3 months ago
Eric0801
a811f29f84
[tpm] fix data init and daily updater (yfinance cols, threads, paths, ports)
3 months ago
joey0629
4e3246e422
update new password setting
1 year ago
joey0629
16e91ea39f
update new volume
1 year ago
joey0629
4c2896b7ec
update numpy version
1 year ago
joey0629
b726730968
set db postgresql version as 15
1 year ago
joey0629
f4c26f0518
fix data_init problem v2
1 year ago
joey0629
33ca3194da
fix data_init problem
1 year ago
josephwang
e9cbf3b08b
Update daily, fix database create bug
2 years ago
josephwang
e8ddb42cac
Update daily, fix database create bug
2 years ago
joey0629
8629ea6c7e
add week Opt & everyday update stock price
2 years ago
joseph
38f1bf56e7
Merge branch 'master' of http://140.114.135.53:8081/lab/TPM
2 years ago
joseph
e943d6c918
change only backtesting>=1
2 years ago
Abay
51140376e7
update docker-compose
2 years ago
Abay
221e2d124b
update docker-compose.yml
2 years ago
joseph
493dd6f89f
add new class
2 years ago
joseph
cd49c5ec47
add update new class
2 years ago
joseph
8cb0ea7b6d
add effective user&strategy and strategy result show time interval to second
2 years ago
joseph
7068b546bd
fix werkzeug missing bugs
2 years ago
joseph
603abc0f09
add new assets list and add competitions
2 years ago
joseph
42542d5626
comment port number modify docker version
2 years ago
joseph
289e6410bb
data_clear_and_update.py added
2 years ago
joseph
412ffce2b4
comment pgadmin and create data_init
2 years ago
joseph
645fb069fd
20230721 Finished auto deploy
2 years ago
joseph
9e7c4c973b
init
2 years ago