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 there is a conflict, the higher priority setting 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. Interpretation of the configuration file
{
    "max_open_trades": 3,  // Maximum number of open trades
    "stake_currency": "USDT",  // Currency type for trading, 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, // Percentage of available balance for the bot, 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, // Balance of the robot simulator wallet in dry run mode
    "cancel_open_orders_on_exit": false, // If set to true, unfinished orders will be canceled when stopping the bot
    "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 entry timeout, 10
        "exit": 10, // Order cancellation timeout, 10
        "exit_timeout_count": 0, // Number of 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, use static pair list instead
            "ETH/USDT",
            "BTC/USDT"
        ],
        "pair_blacklist": [ // Blacklist pairs for trading
            "BNB/.*"
        ]
    },
    "pairlists": [
        {
            "method": "StaticPairList" // Same as above
        }
    ],
    "telegram": {
        "enabled": false, // Whether to enable Telegram bot
        "token": "", // Token of your Telegram bot
        "chat_id": "" // Chat ID of your Telegram bot
    },
    "api_server": {
        "enabled": false, // Whether to enable 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, can be customized for distinction
    "initial_state": "running", // Initial state of the bot, if it is stopped, it needs to be enabled with an 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.