Update config builder to include okx for futures

This commit is contained in:
Matthias 2022-03-23 06:56:48 +01:00
parent 14f9d712dc
commit de6519eb05
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
"ignore_roi_if_buy_signal": false,
"ignore_buying_expired_candle_after": 300,
"trading_mode": "spot",
// "margin_mode": "isolated",
"margin_mode": "",
"minimal_roi": {
"40": 0.0,
"30": 0.01,

View File

@ -124,7 +124,7 @@ def ask_user_config() -> Dict[str, Any]:
"message": "Do you want to trade Perpetual Swaps (perpetual futures)?",
"default": False,
"filter": lambda val: 'futures' if val else 'spot',
"when": lambda x: x["exchange_name"] in ['binance', 'gateio'],
"when": lambda x: x["exchange_name"] in ['binance', 'gateio', 'okx'],
},
{
"type": "autocomplete",