v1.3 infra integration: Qdrant memory RAG, Trilium journaling, n8n emit hooks
This commit is contained in:
47
README.md
47
README.md
@@ -2,30 +2,25 @@
|
||||
|
||||
Autonomous LLM trading system (paper-first) powered by:
|
||||
- Alpaca trading API
|
||||
- Ollama local model inference
|
||||
- Searx web data ingestion
|
||||
- Ollama (curator + decision models)
|
||||
- Searx ingestion + targeted deep research
|
||||
- Qdrant memory retrieval for prior similar setups
|
||||
- Trilium auto-journaling of decisions/trades
|
||||
- Optional n8n webhook emission for orchestration
|
||||
- FastAPI dark dashboard
|
||||
- APScheduler autonomous loops
|
||||
|
||||
## Autonomous behavior
|
||||
- Curates market/news context every `CURATE_INTERVAL_MINUTES` (default 30)
|
||||
- Runs trade decision cycle every `TRADE_INTERVAL_HOURS` (default 2)
|
||||
- LLM decides buy/sell/hold per symbol
|
||||
- Executes only if confidence >= `MIN_CONFIDENCE`
|
||||
- Hard risk caps:
|
||||
- max `$5` order notional (default)
|
||||
- max daily notional cap
|
||||
- max open positions cap
|
||||
- market-open gate
|
||||
## v1.3 additions
|
||||
- Retrieval-augmented decisions via Qdrant (`QDRANT_URL`)
|
||||
- Auto-write trade logs to Trilium (`TRILIUM_URL`, `TRILIUM_TOKEN`)
|
||||
- n8n signal hook (`N8N_BOT_WEBHOOK`)
|
||||
- Two-model pipeline: cheap curator + stronger final decision model
|
||||
- Fee/slippage-aware tiny-bankroll controls
|
||||
|
||||
## Quick start
|
||||
## Run
|
||||
```bash
|
||||
cp .env.example .env
|
||||
# fill ALPACA_API_KEY / ALPACA_API_SECRET
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
uvicorn app:app --host 0.0.0.0 --port 8089
|
||||
# fill Alpaca keys + optional Trilium/N8N vars
|
||||
python3 -m uvicorn app:app --host 0.0.0.0 --port 8089
|
||||
```
|
||||
|
||||
Dashboard:
|
||||
@@ -37,14 +32,6 @@ curl -X POST http://127.0.0.1:8089/curate-now
|
||||
curl -X POST http://127.0.0.1:8089/run-now
|
||||
```
|
||||
|
||||
## Production service (systemd)
|
||||
```bash
|
||||
sudo cp systemd/alpaca-llm-bot-v1.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now alpaca-llm-bot-v1
|
||||
sudo systemctl status alpaca-llm-bot-v1
|
||||
```
|
||||
|
||||
## Important
|
||||
- Keep `PAPER_MODE=true` until you observe stable behavior.
|
||||
- This is experimental and not financial advice.
|
||||
## Safety
|
||||
- Keep `PAPER_MODE=true` until stable
|
||||
- This is experimental software, not financial advice
|
||||
|
||||
Reference in New Issue
Block a user