diff --git a/howtrader/trader/utility.py b/howtrader/trader/utility.py index 8701fe1..9a8934b 100644 --- a/howtrader/trader/utility.py +++ b/howtrader/trader/utility.py @@ -23,7 +23,6 @@ from backports.zoneinfo import ZoneInfo - log_formatter: logging.Formatter = logging.Formatter('[%(asctime)s] %(message)s') @@ -51,19 +50,10 @@ def _get_trader_dir(temp_name: str) -> Tuple[Path, Path]: # If howtrader folder exists in current working directory, # then use it as trader running path. - if temp_path.exists(): - return cwd, temp_path - - # Otherwise use home path of system. - home_path: Path = Path.home() - temp_path: Path = home_path.joinpath(temp_name) - - # Create .vntrader folder under home path if not exist. if not temp_path.exists(): temp_path.mkdir() - return home_path, temp_path - + return cwd, temp_path TRADER_DIR, TEMP_DIR = _get_trader_dir("howtrader") sys.path.append(str(TRADER_DIR)) diff --git a/setup.py b/setup.py index d3d99f3..f0ad976 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,13 @@ """ -vn.py - By Traders, For Traders. +Forked from VNPY - By Traders, For Traders. -The vn.py project is an open-source quantitative trading framework +The howtrader project is an open-source quantitative trading framework that is developed by traders, for traders. The project is mainly written in Python and uses C++ for low-layer and performance sensitive infrastructure. -Using the vn.py project, institutional investors and professional +Using the howtrader project, institutional investors and professional traders, such as hedge funds, prop trading firms and investment banks, can easily develop complex trading strategies with the Event Engine Strategy Module, and automatically route their orders to the most