Accidentally had double run_auto_sell.
This commit is contained in:
parent
684e08de04
commit
2665aa0017
|
@ -307,11 +307,11 @@ def log_estimates(config: AutoSellConfig):
|
||||||
minisleep = 0.1
|
minisleep = 0.1
|
||||||
|
|
||||||
logger.info('')
|
logger.info('')
|
||||||
logger.info('Welcome to crypto seller!')
|
logger.info('Welcome to Crypto Seller!')
|
||||||
config.sleep(3)
|
config.sleep(3)
|
||||||
logger.info('')
|
logger.info('')
|
||||||
config.sleep(minisleep)
|
config.sleep(minisleep)
|
||||||
logger.info('I, the great crypto seller, your humble servant, will')
|
logger.info('I, the great Crypto Seller, your humble servant, will')
|
||||||
config.sleep(minisleep)
|
config.sleep(minisleep)
|
||||||
logger.info('now analyse your configuration and divine some estimates!')
|
logger.info('now analyse your configuration and divine some estimates!')
|
||||||
config.sleep(3)
|
config.sleep(3)
|
||||||
|
|
|
@ -138,7 +138,7 @@ def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
|
|
||||||
# Setup output paths
|
# Setup output paths
|
||||||
path_output = args.output_folder.absolute()
|
path_output = args.output_directory.absolute()
|
||||||
path_output.mkdir(parents=True, exist_ok=True)
|
path_output.mkdir(parents=True, exist_ok=True)
|
||||||
path_log_file = path_output / 'log.txt'
|
path_log_file = path_output / 'log.txt'
|
||||||
path_trades_file = path_output / 'trades.csv'
|
path_trades_file = path_output / 'trades.csv'
|
||||||
|
@ -147,7 +147,6 @@ def main():
|
||||||
logger.info('Initializing crypto_seller')
|
logger.info('Initializing crypto_seller')
|
||||||
|
|
||||||
auto_sell_config = load_config(args.config_file, path_trades_file)
|
auto_sell_config = load_config(args.config_file, path_trades_file)
|
||||||
results = run_auto_sell(auto_sell_config)
|
|
||||||
|
|
||||||
# Display estimates
|
# Display estimates
|
||||||
try:
|
try:
|
||||||
|
@ -158,7 +157,7 @@ def main():
|
||||||
# Run auto sell
|
# Run auto sell
|
||||||
results = run_auto_sell(
|
results = run_auto_sell(
|
||||||
auto_sell_config,
|
auto_sell_config,
|
||||||
initial_rounds_to_skip=args.wait_before_first and 1 or 0,
|
initial_rounds_to_skip=(args.wait_before_first and 1) or 0,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Display results
|
# Display results
|
||||||
|
|
Loading…
Reference in New Issue
Block a user