Add ability to set unlimited stake_amount
This commit is contained in:
@@ -13,7 +13,7 @@ from pandas import DataFrame
|
||||
from tabulate import tabulate
|
||||
|
||||
import freqtrade.optimize as optimize
|
||||
from freqtrade import exchange
|
||||
from freqtrade import exchange, DependencyException
|
||||
from freqtrade.analyze import Analyze
|
||||
from freqtrade.arguments import Arguments
|
||||
from freqtrade.configuration import Configuration
|
||||
@@ -296,6 +296,9 @@ def setup_configuration(args: Namespace) -> Dict[str, Any]:
|
||||
config['exchange']['key'] = ''
|
||||
config['exchange']['secret'] = ''
|
||||
|
||||
if config['stake_amount'] == 'unlimited':
|
||||
raise DependencyException('stake amount could not be "unlimited" for backtesting')
|
||||
|
||||
return config
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user