Update strategy_version to INTERFACE_VERSION

This commit is contained in:
Matthias
2019-08-26 20:16:03 +02:00
parent 92011f8294
commit 0e62b8bd85
5 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ class DefaultStrategy(IStrategy):
Default Strategy provided by freqtrade bot.
You can override it with your own strategy
"""
strategy_version: int = 2
INTERFACE_VERSION = 2
# Minimal ROI designed for the strategy
minimal_roi = {

View File

@@ -62,9 +62,9 @@ class IStrategy(ABC):
"""
# Strategy interface version
# Default to version 2
# version 1 is the initial interface without metadata dict
# Version 1 is the initial interface without metadata dict
# Version 2 populate_* include metadata dict
strategy_version: int = 2
INTERFACE_VERSION: int = 2
_populate_fun_len: int = 0
_buy_fun_len: int = 0