Fix typo in datadir key

This commit is contained in:
Matthias 2020-02-12 06:40:13 +01:00
parent 7be9f0067e
commit d6b9397579
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ from freqtrade.configuration import Configuration
# Initialize empty configuration object # Initialize empty configuration object
config = Configuration.from_files([]) config = Configuration.from_files([])
# Optionally, Use existing configuration file # Optionally, use existing configuration file
# config = Configuration.from_files(["config.json"]) # config = Configuration.from_files(["config.json"])
# Define some constants # Define some constants
@ -29,7 +29,7 @@ pair = "BTC_USDT"
# Load data using values set above # Load data using values set above
from freqtrade.data.history import load_pair_history from freqtrade.data.history import load_pair_history
candles = load_pair_history(datadir=config["data_dir"], candles = load_pair_history(datadir=config["datadir"],
timeframe=config["ticker_interval"], timeframe=config["ticker_interval"],
pair=pair) pair=pair)

View File

@ -29,7 +29,7 @@
"\n", "\n",
"# Initialize empty configuration object\n", "# Initialize empty configuration object\n",
"config = Configuration.from_files([])\n", "config = Configuration.from_files([])\n",
"# Optionally, Use existing configuration file\n", "# Optionally, use existing configuration file\n",
"# config = Configuration.from_files([\"config.json\"])\n", "# config = Configuration.from_files([\"config.json\"])\n",
"\n", "\n",
"# Define some constants\n", "# Define some constants\n",
@ -49,7 +49,7 @@
"# Load data using values set above\n", "# Load data using values set above\n",
"from freqtrade.data.history import load_pair_history\n", "from freqtrade.data.history import load_pair_history\n",
"\n", "\n",
"candles = load_pair_history(datadir=config[\"data_dir\"],\n", "candles = load_pair_history(datadir=config[\"datadir\"],\n",
" timeframe=config[\"ticker_interval\"],\n", " timeframe=config[\"ticker_interval\"],\n",
" pair=pair)\n", " pair=pair)\n",
"\n", "\n",