Skip to content

Commit

Permalink
[Mod] code quality improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Oct 17, 2023
1 parent 41f4376 commit dc60e24
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Python
*.pyc
*.pyo
*.pyd
*.egg-info/

# Jupyter
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
recursive-include vnpy *.ico *.ini *.dll *.so *.pyd *.h *.hpp *.cpp *.a *.dat *.pfx
recursive-include vnpy *.ico *.ini *.dll *.so *.pyd *.h *.hpp *.cpp
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions examples/portfolio_backtesting/backtesting_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"metadata": {},
"outputs": [],
"source": [
"#%%\n",
"from datetime import datetime\n",
"from importlib import reload\n",
"\n",
Expand All @@ -28,7 +27,6 @@
"metadata": {},
"outputs": [],
"source": [
"#%%\n",
"engine = BacktestingEngine()\n",
"engine.set_parameters(\n",
" vt_symbols=[\"y888.DCE\", \"p888.DCE\"],\n",
Expand Down Expand Up @@ -69,7 +67,6 @@
},
"outputs": [],
"source": [
"#%%\n",
"engine.load_data()\n",
"engine.run_backtesting()\n",
"df = engine.calculate_result()\n",
Expand Down
3 changes: 0 additions & 3 deletions examples/spread_backtesting/backtesting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"metadata": {},
"outputs": [],
"source": [
"#%%\n",
"from vnpy.trader.optimize import OptimizationSetting\n",
"from vnpy_spreadtrading.backtesting import BacktestingEngine\n",
"from vnpy_spreadtrading.strategies.statistical_arbitrage_strategy import (\n",
Expand Down Expand Up @@ -41,7 +40,6 @@
"metadata": {},
"outputs": [],
"source": [
"#%%\n",
"engine = BacktestingEngine()\n",
"engine.set_parameters(\n",
" spread=spread,\n",
Expand All @@ -65,7 +63,6 @@
},
"outputs": [],
"source": [
"#%%\n",
"engine.load_data()\n",
"engine.run_backtesting()\n",
"df = engine.calculate_result()\n",
Expand Down
1 change: 1 addition & 0 deletions examples/veighna_trader/demo_script.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from time import sleep

from vnpy_scripttrader import ScriptEngine


Expand Down
2 changes: 1 addition & 1 deletion install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
python -m pip install --upgrade pip wheel

::Install prebuild wheel
python -m pip install --extra-index-url http://139.196.190.180 --trusted-host 139.196.190.180 TA_Lib==0.4.24
python -m pip install --extra-index-url https://pypi.vnpy.com TA_Lib==0.4.24

::Install Python Modules
python -m pip install -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tzlocal==4.2
PySide6==6.3.0
pyqtgraph==0.12.4
pyqtgraph==0.13.3
qdarkstyle==3.1
numpy==1.23.1
pandas==1.5.0
Expand Down
1 change: 0 additions & 1 deletion vnpy/trader/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class Exchange(Enum):
Exchange.
"""
# Chinese
BINANCE = "BINANCE"
CFFEX = "CFFEX" # China Financial Futures Exchange
SHFE = "SHFE" # Shanghai Futures Exchange
CZCE = "CZCE" # Zhengzhou Commodity Exchange
Expand Down

0 comments on commit dc60e24

Please sign in to comment.