mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
- Add LeverageConfig struct with btc_eth_leverage and altcoin_leverage fields - Set default leverage to 5x (safe for Binance subaccounts) - Add validation warnings for leverage >5x (subaccount restrictions) - Update config.json.example with leverage configuration Breaking changes: - None (backward compatible with default 5x leverage) Migration: - Existing configs will auto-default to 5x leverage (safe) - Main accounts can increase to 20x (altcoins) or 50x (BTC/ETH) in config.json - Subaccounts must keep leverage ≤5x to avoid trade failures Co-Authored-By: tinkle-community <tinklefund@gmail.com>
28 lines
644 B
JSON
28 lines
644 B
JSON
{
|
|
"traders": [
|
|
{
|
|
"id": "my_trader",
|
|
"name": "My AI Trader",
|
|
"ai_model": "deepseek",
|
|
"binance_api_key": "YOUR_BINANCE_API_KEY",
|
|
"binance_secret_key": "YOUR_BINANCE_SECRET_KEY",
|
|
"use_qwen": false,
|
|
"deepseek_key": "YOUR_DEEPSEEK_API_KEY",
|
|
"qwen_key": "",
|
|
"initial_balance": 1000.0,
|
|
"scan_interval_minutes": 3
|
|
}
|
|
],
|
|
"leverage": {
|
|
"btc_eth_leverage": 5,
|
|
"altcoin_leverage": 5
|
|
},
|
|
"use_default_coins": true,
|
|
"coin_pool_api_url": "",
|
|
"oi_top_api_url": "",
|
|
"api_server_port": 8080,
|
|
"max_daily_loss": 5.0,
|
|
"max_drawdown": 10.0,
|
|
"stop_trading_minutes": 30
|
|
}
|