From 1ca453a6d7290d511d0dde08b18b150561d58c89 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Fri, 16 Jul 2021 18:53:00 -0600 Subject: [PATCH] Added example margin configs --- .gitignore | 2 + .../config_binance_margin.example.json | 133 ++++++++++++++++++ .../config_kraken_margin.example.json | 131 +++++++++++++++++ 3 files changed, 266 insertions(+) create mode 100644 config_examples/config_binance_margin.example.json create mode 100644 config_examples/config_kraken_margin.example.json diff --git a/.gitignore b/.gitignore index 16df71194..2f682980b 100644 --- a/.gitignore +++ b/.gitignore @@ -100,3 +100,5 @@ target/ !config_examples/config_ftx.example.json !config_examples/config_full.example.json !config_examples/config_kraken.example.json +!config_examples/config_binance_margin.example.json +!config_examples/config_kraken_margin.example.json diff --git a/config_examples/config_binance_margin.example.json b/config_examples/config_binance_margin.example.json new file mode 100644 index 000000000..c11534b7c --- /dev/null +++ b/config_examples/config_binance_margin.example.json @@ -0,0 +1,133 @@ +{ + "max_open_trades": 3, + "stake_currency": "BTC", + "stake_amount": 0.05, + "tradable_balance_ratio": 0.99, + "fiat_display_currency": "USD", + "timeframe": "5m", + "dry_run": true, + "cancel_open_orders_on_exit": false, + "unfilledtimeout": { + "buy": 10, //TODO-mg: Update to enter + "sell": 30 //TODO-mg: Update to exit + }, + "shorting_enabled": true, + "use_short_signal": true, + "use_exit_short_signal": true, + "ignore_roi_if_buy_signal": true, + "ignore_roi_if_short_signal": true, + "sell_profit_only": false, //TODO-mg: Update to exit_profit_only + "leverage": { + "desired": 10, + "min": 4.5 + }, + "bid_strategy": { + "ask_last_balance": 0.0, + "use_order_book": true, + "order_book_top": 1, + "check_depth_of_market": { + "enabled": false, + "bids_to_ask_delta": 1 + } + }, + "ask_strategy": { + "use_order_book": true, + "order_book_top": 1 + }, + "short_strategy": { + "ask_last_balance": 0.0, + "use_order_book": false, + "order_book_top": 1, + "check_depth_of_market": { + "enabled": false, + "bids_to_ask_delta": 1 + } + }, + "exit_short_strategy": { + "use_order_book": false, + "order_book_min": 1, + "order_book_max": 1, + "price_side": "bid" + }, + "exchange": { + "name": "binance", + "key": "your_exchange_key", + "secret": "your_exchange_secret", + "ccxt_config": {"enableRateLimit": true}, + "ccxt_async_config": { + "enableRateLimit": true, + "rateLimit": 200 + }, + "options": { + "defaultType": "margin" + }, + "pair_whitelist": [ + "ALGO/BTC", + "ATOM/BTC", + "BAT/BTC", + "BCH/BTC", + "BRD/BTC", + "EOS/BTC", + "ETH/BTC", + "IOTA/BTC", + "LINK/BTC", + "LTC/BTC", + "NEO/BTC", + "NXS/BTC", + "XMR/BTC", + "XRP/BTC", + "XTZ/BTC" + ], + "short_whitelist": [ + //TODO-mg: default to pair_whitelist if empty + ], + "pair_blacklist": [ + "BNB/BTC" + ], + "short_blacklist": [ + //TODO-mg: default to pair_blacklist if empty + ] + }, + "pairlists": [ + {"method": "StaticPairList"} + ], + "shortlists": [ + //TODO-mg: default to pairlists if empty + ], + "edge": { + "enabled": false, + "process_throttle_secs": 3600, + "calculate_since_number_of_days": 7, + "allowed_risk": 0.01, + //TODO-mg: Update stoploss ranges for shorts? + "stoploss_range_min": -0.01, + "stoploss_range_max": -0.1, + "stoploss_range_step": -0.01, + "minimum_winrate": 0.60, + "minimum_expectancy": 0.20, + "min_trade_number": 10, + "max_trade_duration_minute": 1440, + "remove_pumps": false + }, + "telegram": { + "enabled": false, + "token": "your_telegram_token", + "chat_id": "your_telegram_chat_id" + }, + "api_server": { + "enabled": false, + "listen_ip_address": "127.0.0.1", + "listen_port": 8080, + "verbosity": "error", + "jwt_secret_key": "somethingrandom", + "CORS_origins": [], + "username": "freqtrader", + "password": "SuperSecurePassword" + }, + "bot_name": "freqtrade", + "initial_state": "running", + "forcebuy_enable": false, //TODO: Change to force_enter_enable + "internals": { + "process_throttle_secs": 5 + } +} diff --git a/config_examples/config_kraken_margin.example.json b/config_examples/config_kraken_margin.example.json new file mode 100644 index 000000000..b07575857 --- /dev/null +++ b/config_examples/config_kraken_margin.example.json @@ -0,0 +1,131 @@ +{ + "max_open_trades": 5, + "stake_currency": "EUR", + "stake_amount": 10, + "tradable_balance_ratio": 0.99, + "fiat_display_currency": "EUR", + "timeframe": "5m", + "dry_run": true, + "cancel_open_orders_on_exit": false, + "shorting_enabled": true, + "ignore_roi_if_buy_signal": true, + "use_exit_short_signal": true, + "ignore_roi_if_short_signal": true, + "sell_profit_only": false, //TODO-mg: Update to exit_profit_only + "unfilledtimeout": { + "buy": 10, //TODO-mg: Update to enter + "sell": 30 //TODO-mg: Update to exit + }, + "bid_strategy": { + "use_order_book": true, + "ask_last_balance": 0.0, + "order_book_top": 1, + "check_depth_of_market": { + "enabled": false, + "bids_to_ask_delta": 1 + } + }, + "ask_strategy":{ + "use_order_book": true, + "order_book_top": 1 + }, + "short_strategy": { + "ask_last_balance": 0.0, + "use_order_book": false, + "order_book_top": 1, + "check_depth_of_market": { + "enabled": false, + "bids_to_ask_delta": 1 + } + }, + "exit_short_strategy": { + "use_order_book": false, + "order_book_min": 1, + "order_book_max": 1, + "price_side": "bid" + }, + "exchange": { + "name": "kraken", + "key": "your_exchange_key", + "secret": "your_exchange_key", + "ccxt_config": {"enableRateLimit": true}, + "ccxt_async_config": { + "enableRateLimit": true, + "rateLimit": 1000 + }, + "pair_whitelist": [ + "ADA/EUR", + "ATOM/EUR", + "BAT/EUR", + "BCH/EUR", + "BTC/EUR", + "DAI/EUR", + "DASH/EUR", + "EOS/EUR", + "ETC/EUR", + "ETH/EUR", + "LINK/EUR", + "LTC/EUR", + "QTUM/EUR", + "REP/EUR", + "WAVES/EUR", + "XLM/EUR", + "XMR/EUR", + "XRP/EUR", + "XTZ/EUR", + "ZEC/EUR" + ], + "short_whitelist": [ + //TODO-mg: default to pair_whitelist if empty + ], + "pair_blacklist": [ + "BNB/BTC" + ], + "short_blacklist": [ + //TODO-mg: default to pair_blacklist if empty + ] + }, + "pairlists": [ + {"method": "StaticPairList"} + ], + "shortlists": [ + //TODO-mg: default to pairlists if empty + ], + "edge": { + "enabled": false, + "process_throttle_secs": 3600, + "calculate_since_number_of_days": 7, + "allowed_risk": 0.01, + //TODO-mg: Update stoploss ranges for shorts? + "stoploss_range_min": -0.01, + "stoploss_range_max": -0.1, + "stoploss_range_step": -0.01, + "minimum_winrate": 0.60, + "minimum_expectancy": 0.20, + "min_trade_number": 10, + "max_trade_duration_minute": 1440, + "remove_pumps": false + }, + "telegram": { + "enabled": false, + "token": "your_telegram_token", + "chat_id": "your_telegram_chat_id" + }, + "api_server": { + "enabled": false, + "listen_ip_address": "127.0.0.1", + "listen_port": 8080, + "verbosity": "error", + "jwt_secret_key": "somethingrandom", + "CORS_origins": [], + "username": "freqtrader", + "password": "SuperSecurePassword" + }, + "bot_name": "freqtrade", + "initial_state": "running", + "forcebuy_enable": false, //TODO: Change to force_enter_enable + "internals": { + "process_throttle_secs": 5 + }, + "download_trades": true +}