- Add advanced metrics dashboard with trade analytics - Add new trading components (EntryTypeAnalysis, MultiDayPositionTracker, NewsEventTracker, etc.) - Add strategy mode selector and trend confirmation - Add risk automation panel and slippage correlation analysis - Add daily trading plan enhancements with modal components - Add custom hooks (useApi, useLocalStorage, useAdvancedTradeMetrics) - Add broker service integration and trading API - Add test setup and vitest configuration - Include parquet data files for live market data - Add comprehensive documentation in docs/ folder
25 lines
534 B
Python
25 lines
534 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Simple database table initialization
|
|
"""
|
|
import sys
|
|
import os
|
|
|
|
# Add current directory to path
|
|
sys.path.insert(0, os.path.dirname(__file__))
|
|
|
|
from app.db.database import Base, engine
|
|
|
|
def main():
|
|
"""Create all database tables"""
|
|
print("Creating database tables...")
|
|
try:
|
|
Base.metadata.create_all(bind=engine)
|
|
print("✅ Database tables created successfully!")
|
|
except Exception as e:
|
|
print(f"❌ Error: {e}")
|
|
sys.exit(1)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|