Skip to content

Commit

Permalink
utility
Browse files Browse the repository at this point in the history
  • Loading branch information
51bitquant committed Jun 28, 2022
1 parent 3f08751 commit 459a473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
12 changes: 1 addition & 11 deletions howtrader/trader/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from backports.zoneinfo import ZoneInfo



log_formatter: logging.Formatter = logging.Formatter('[%(asctime)s] %(message)s')


Expand Down Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 459a473

Please sign in to comment.