- Created trading-service application structure - Added pyproject.toml with FastAPI, SQLModel, asyncpg, and aitbc-core dependencies - Implemented main.py with basic trading service structure - Created systemd service file for trading-service (port 8104) - Added README.md with installation and configuration instructions This starts Phase 4.5: Extract Trading Service (foundation created)
18 lines
541 B
Desktop File
18 lines
541 B
Desktop File
[Unit]
|
|
Description=AITBC Trading Service
|
|
After=network.target postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=aitbc
|
|
WorkingDirectory=/opt/aitbc/apps/trading-service
|
|
Environment="PATH=/opt/aitbc/venv/bin"
|
|
Environment="PYTHONPATH=/opt/aitbc/packages/py/aitbc-core/src:/opt/aitbc/apps/trading-service/src:/opt/aitbc"
|
|
Environment="DATABASE_URL=postgresql+asyncpg://aitbc_trading:password@localhost:5432/aitbc_trading"
|
|
ExecStart=/opt/aitbc/venv/bin/python -m trading_service.main
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|