fix type of open/close timestmap
This commit is contained in:
parent
aff1ede46b
commit
31025216f9
@ -6,6 +6,7 @@ This module contains the backtesting logic
|
|||||||
import logging
|
import logging
|
||||||
import operator
|
import operator
|
||||||
from argparse import Namespace
|
from argparse import Namespace
|
||||||
|
from datetime import datetime
|
||||||
from typing import Dict, Tuple, Any, List, Optional, NamedTuple
|
from typing import Dict, Tuple, Any, List, Optional, NamedTuple
|
||||||
|
|
||||||
import arrow
|
import arrow
|
||||||
@ -30,8 +31,8 @@ class BacktestResult(NamedTuple):
|
|||||||
pair: str
|
pair: str
|
||||||
profit_percent: float
|
profit_percent: float
|
||||||
profit_abs: float
|
profit_abs: float
|
||||||
open_time: float
|
open_time: datetime
|
||||||
close_time: float
|
close_time: datetime
|
||||||
trade_duration: float
|
trade_duration: float
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user