skka3134

skka3134

email
telegram

Cryptocurrency and Quantitative: 2. User Configuration

There are three types of configurations in total: environment configuration, user configuration, and strategy configuration. Among them, the priority of environment configuration is higher than that of user configuration, and higher than that of strategy configuration. If conflicts occur, the higher priority settings will be used.

Freqtrade will load the config.json file from the current working directory.

  1. Generate user configuration file
freqtrade new-config --config config.json
  1. Configuration file interpretation
{
    "max_open_trades": 3,  // Maximum number of open trades
    "stake_currency": "USDT",  // Currency type for trading, USDT means using USDT for payment
    "stake_amount": "unlimited", // Maximum amount allowed per trade, unlimited means no limit, dynamically allocated based on max_open_trades
    "tradable_balance_ratio": 0.99, // The ratio of available balance of the bot to the account, default is 99%, data type is 0.1-1
    "fiat_display_currency": "USD", // Display profit in USD, fiat currency
    "dry_run": true, // True for dry run mode, False for production mode
    "dry_run_wallet": 1000, // Wallet balance in the robot simulator for dry run mode
    "cancel_open_orders_on_exit": false, // If set to true, unfinished orders will be canceled when the bot is stopped
    "trading_mode": "spot", // Trading mode, default is spot trading
    "margin_mode": "", // If it is margin trading, whether the collateral is isolated from others
    "unfilledtimeout": {
        "entry": 10, // Order placement timeout, 10
        "exit": 10, // Order cancellation timeout, 10
        "exit_timeout_count": 0, // How many times the exit order can timeout, 0 means unlimited
        "unit": "minutes" // Unit is minutes, can also be seconds
    },
    "entry_pricing": {
        "price_side": "same",
        "use_order_book": true,
        "order_book_top": 1,
        "price_last_balance": 0.0,
        "check_depth_of_market": {
            "enabled": false,
            "bids_to_ask_delta": 1
        }
    },
    "exit_pricing":{
        "price_side": "same",
        "use_order_book": true,
        "order_book_top": 1
    },
    "exchange": {
        "name": "binance", // Choose binance, if it is okix, password is also required, other exchanges do not need it
        "key": "", // Fill in the apikey of binance
        "secret": "", // Fill in the secret of binance
        "ccxt_config": {}, // ccxt synchronous and asynchronous configuration
        "ccxt_async_config": {},
        "pair_whitelist": [ // Whitelist pairs for trading, VolumePairList is not supported, changed to static pairing list
            "ETH/USDT",
            "BTC/USDT"
        ],
        "pair_blacklist": [ // Blacklist pairs for trading
            "BNB/.*"
        ]
    },
    "pairlists": [
        {
            "method": "StaticPairList" // Same as above
        }
    ],
    "telegram": {
        "enabled": false, // Whether to enable the Telegram bot
        "token": "", // Your Telegram bot's token
        "chat_id": "" // Your Telegram bot's chat_id
    },
    "api_server": {
        "enabled": false, // Whether to enable the API
        "listen_ip_address": "127.0.0.1",
        "listen_port": 8080,
        "verbosity": "error", // Level of logging, if it is error, only errors will be logged, default is info
        "enable_openapi": false,
        "jwt_secret_key":  "dd9a5f409829325a72f38c5e32f7aaf54d2c19fdcef6bf1e721f1ee69eff6913",
        "ws_token": "n1tawja9_Yg1UI3kh5FvLKzw8HSENuQlyg",
        "CORS_origins": [],
        "username": "",
        "password": ""
    },
    "bot_name": "freqtrade", // Name of the bot, customizable for distinguishing
    "initial_state": "running", // Initial state of the bot, if it is stopped, it needs to be enabled by RPC command
    "force_entry_enable": false, // Enable RPC command for forced trading
    "internals": {
        "process_throttle_secs": 5
    }
}
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.