mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-10 22:36:58 +08:00
refactor: drop sqlite fallback and admin mode
This commit is contained in:
@@ -152,18 +152,17 @@ Yes, to some extent. NOFX provides historical performance feedback in each decis
|
||||
## Data & Privacy
|
||||
|
||||
### Where is my data stored?
|
||||
All data is stored **locally** on your machine in SQLite databases:
|
||||
- `config.db` - Trader configurations
|
||||
- `trading.db` - Trade history
|
||||
All data is stored **locally** in PostgreSQL (Docker volume `postgres_data`) plus:
|
||||
- `decision_logs/` - AI decision records
|
||||
|
||||
### Is my API key secure?
|
||||
API keys are stored in local databases. Never share your databases or `.env` files. We recommend using API keys with IP whitelist restrictions.
|
||||
|
||||
### Can I export my trading history?
|
||||
Yes! Trading data is in SQLite format. You can query it directly:
|
||||
Yes! Use `pg_dump` or `psql` to export data:
|
||||
```bash
|
||||
sqlite3 trading.db "SELECT * FROM trades;"
|
||||
docker compose exec postgres \
|
||||
psql -U nofx -d nofx -c "SELECT * FROM trades;"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -152,18 +152,17 @@ docker compose up -d
|
||||
## 数据与隐私
|
||||
|
||||
### 我的数据存储在哪里?
|
||||
所有数据都**本地存储**在您的机器上,使用 SQLite 数据库:
|
||||
- `config.db` - 交易员配置
|
||||
- `trading.db` - 交易历史
|
||||
所有数据都**本地存储**在 PostgreSQL(Docker 卷 `postgres_data`)中,另有:
|
||||
- `decision_logs/` - AI 决策记录
|
||||
|
||||
### API 密钥安全吗?
|
||||
API 密钥存储在本地数据库中。永远不要分享您的数据库或 `.env` 文件。我们建议使用带 IP 白名单限制的 API 密钥。
|
||||
|
||||
### 可以导出交易历史吗?
|
||||
可以!交易数据是 SQLite 格式。您可以直接查询:
|
||||
可以!使用 `pg_dump` 或 `psql` 导出数据:
|
||||
```bash
|
||||
sqlite3 trading.db "SELECT * FROM trades;"
|
||||
docker compose exec postgres \
|
||||
psql -U nofx -d nofx -c "SELECT * FROM trades;"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user