改为自己的mt5api
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
# GENESIS Trading System — Environment Template
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
# Copy this to .env and fill in your values:
|
||||
# cp .env.example .env
|
||||
#
|
||||
# Or run the interactive setup wizard (recommended):
|
||||
# bash setup.sh
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
# ── Mt5Bridge API ─────────────────────────────────────────────────────────────
|
||||
# Your own Mt5Bridge REST API server.
|
||||
# See: Mt5Bridge使用指南.md for setup instructions.
|
||||
#
|
||||
# MT5_BRIDGE_URL = Base URL of your Mt5Bridge server (e.g. http://127.0.0.1:5000)
|
||||
# MT5_BRIDGE_TOKEN = API token for authentication (if required)
|
||||
# MT5_BRIDGE_ACCOUNT = MT5 account number (login ID)
|
||||
# MT5_SYMBOL_MAP = JSON symbol mapping, e.g. {"EURUSDxx":"EURUSD","XAUUSDxx":"XAUUSD"}
|
||||
# If empty, "xx" suffix is auto-stripped (EURUSDxx → EURUSD)
|
||||
|
||||
MT5_BRIDGE_URL=http://127.0.0.1:5000
|
||||
MT5_BRIDGE_TOKEN=
|
||||
MT5_BRIDGE_ACCOUNT=
|
||||
MT5_SYMBOL_MAP=
|
||||
|
||||
# ── Telegram ──────────────────────────────────────────────────────────────────
|
||||
# Create a bot: https://t.me/BotFather → /newbot
|
||||
# Get your Chat ID: https://t.me/userinfobot
|
||||
|
||||
TELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN
|
||||
TELEGRAM_CHAT_ID=YOUR_TELEGRAM_CHAT_ID
|
||||
|
||||
# ── LLM API (Hermes Brain) — OpenAI-Compatible ────────────────────────────────
|
||||
# Powers the hourly macro analysis by Hermes.
|
||||
# Supports ANY OpenAI-compatible API provider.
|
||||
#
|
||||
# Provider examples:
|
||||
# OpenAI: OPENAI_BASE_URL=https://api.openai.com/v1 HERMES_MODEL=gpt-4o-mini
|
||||
# DeepSeek: OPENAI_BASE_URL=https://api.deepseek.com/v1 HERMES_MODEL=deepseek-chat
|
||||
# Qwen (Ali): OPENAI_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 HERMES_MODEL=qwen-plus
|
||||
# Groq: OPENAI_BASE_URL=https://api.groq.com/openai/v1 HERMES_MODEL=llama-3.3-70b-versatile
|
||||
# Together AI: OPENAI_BASE_URL=https://api.together.xyz/v1 HERMES_MODEL=meta-llama/Llama-3-70b-chat-hf
|
||||
# SiliconFlow: OPENAI_BASE_URL=https://api.siliconflow.cn/v1 HERMES_MODEL=deepseek-ai/DeepSeek-V3
|
||||
# Ollama local: OPENAI_BASE_URL=http://127.0.0.1:11434/v1 HERMES_MODEL=llama3
|
||||
# OpenRouter: OPENAI_BASE_URL=https://openrouter.ai/api/v1 HERMES_MODEL=openai/gpt-4o-mini
|
||||
#
|
||||
# Note: Some providers may not support "response_format: json_object".
|
||||
# If you get errors, try removing it or switching to a provider that does.
|
||||
|
||||
OPENAI_API_KEY=sk-your-api-key-here
|
||||
OPENAI_BASE_URL=https://api.openai.com/v1
|
||||
HERMES_MODEL=gpt-4o-mini
|
||||
HERMES_JSON_FORMAT=true # Set to "false" if your provider doesn't support response_format: json_object
|
||||
|
||||
# ── Risk Limits ───────────────────────────────────────────────────────────────
|
||||
# These are enforced by every strategy module before any trade is placed.
|
||||
# Hermes will refuse any trade that violates these limits.
|
||||
|
||||
MAX_POSITIONS=4 # Maximum simultaneous open positions
|
||||
MAX_RISK_PCT=0.02 # Maximum risk per trade (2% of balance)
|
||||
MAX_LOTS=3.0 # Maximum lot size per single trade
|
||||
|
||||
# ── Optional: Twelve Data ─────────────────────────────────────────────────────
|
||||
# For economic calendar enrichment (news filter)
|
||||
# Free tier: https://twelvedata.com
|
||||
|
||||
TWELVE_DATA_API_KEY=
|
||||
Reference in New Issue
Block a user