mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-16 01:06:59 +08:00
feat: init nofxi - AI Trading Agent module
NOFXi — Your AI Trading Agent, built on NOFX. Architecture: - Agent Core: intent routing, conversation memory, trade confirmation - Memory: SQLite (trades, conversations, preferences, strategies) - Thinking: LLM client (OpenAI/claw402/DeepSeek compatible) - Execution: Bridge to NOFX trader engine (9 exchanges) - Perception: Market monitor, price alerts, anomaly detection - Interaction: Telegram bot + REST API + OpenAI-compatible endpoint Features: - Natural language trading (中英文) - /buy /sell /analyze /watch /alert /positions /balance - Daily P/L reports, portfolio risk checks - Trade confirmation flow (safety first) - Price polling and alert notifications
This commit is contained in:
35
nofxi/config.example.yaml
Normal file
35
nofxi/config.example.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
# NOFXi Configuration
|
||||
# Copy to config.yaml and fill in your values
|
||||
|
||||
agent:
|
||||
name: "NOFXi"
|
||||
language: "zh" # "en" or "zh"
|
||||
log_level: "info" # "debug", "info", "warn", "error"
|
||||
web_port: 8900 # REST API port (0 = disabled)
|
||||
|
||||
telegram:
|
||||
token: "YOUR_TELEGRAM_BOT_TOKEN"
|
||||
allowed_ids: # Leave empty to allow all users
|
||||
# - 123456789
|
||||
|
||||
llm:
|
||||
provider: "claw402" # "openai", "claw402", "deepseek"
|
||||
base_url: "https://claw402.ai/v1"
|
||||
api_key: "YOUR_API_KEY"
|
||||
model: "deepseek-chat"
|
||||
|
||||
database:
|
||||
path: "nofxi.db"
|
||||
|
||||
exchanges:
|
||||
- name: "binance"
|
||||
api_key: ""
|
||||
api_secret: ""
|
||||
testnet: true
|
||||
# - name: "okx"
|
||||
# api_key: ""
|
||||
# api_secret: ""
|
||||
# passphrase: ""
|
||||
# - name: "bybit"
|
||||
# api_key: ""
|
||||
# api_secret: ""
|
||||
Reference in New Issue
Block a user