From 31025216f94f58f217841f1215a7869a684bbd2c Mon Sep 17 00:00:00 2001 From: xmatthias Date: Sun, 10 Jun 2018 13:32:07 +0200 Subject: [PATCH] fix type of open/close timestmap --- freqtrade/optimize/backtesting.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index cd020a6db..68480c997 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -6,6 +6,7 @@ This module contains the backtesting logic import logging import operator from argparse import Namespace +from datetime import datetime from typing import Dict, Tuple, Any, List, Optional, NamedTuple import arrow @@ -30,8 +31,8 @@ class BacktestResult(NamedTuple): pair: str profit_percent: float profit_abs: float - open_time: float - close_time: float + open_time: datetime + close_time: datetime trade_duration: float