Skip to content

Commit

Permalink
[Mod] update project examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Dec 20, 2023
1 parent 60fbeab commit 48b5853
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 748 deletions.
6 changes: 3 additions & 3 deletions examples/client_server/run_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy.trader.event import EVENT_LOG

from vnpy_ctp import CtpGateway
from vnpy_binance import BinaneUsdtGateway
from vnpy_rpcservice import RpcServiceApp
from vnpy_rpcservice.rpc_service.engine import EVENT_RPC_LOG

Expand All @@ -18,7 +18,7 @@ def main_ui():

main_engine = MainEngine(event_engine)

main_engine.add_gateway(CtpGateway)
main_engine.add_gateway(BinaneUsdtGateway)
main_engine.add_app(RpcServiceApp)

main_window = MainWindow(main_engine, event_engine)
Expand All @@ -41,7 +41,7 @@ def main_terminal():
event_engine.register(EVENT_RPC_LOG, process_log_event)

main_engine = MainEngine(event_engine)
main_engine.add_gateway(CtpGateway)
main_engine.add_gateway(BinaneUsdtGateway)
rpc_engine = main_engine.add_app(RpcServiceApp)

setting = {
Expand Down
108 changes: 0 additions & 108 deletions examples/cta_backtesting/backtesting_demo.ipynb

This file was deleted.

223 changes: 0 additions & 223 deletions examples/cta_backtesting/portfolio_backtesting.ipynb

This file was deleted.

4 changes: 2 additions & 2 deletions examples/no_ui/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from vnpy.trader.setting import SETTINGS
from vnpy.trader.engine import MainEngine

from vnpy_ctp import CtpGateway
from vnpy_binance import BinaneUsdtGateway
from vnpy_ctastrategy import CtaStrategyApp
from vnpy_ctastrategy.base import EVENT_CTA_LOG

Expand Down Expand Up @@ -61,7 +61,7 @@ def run_child():

event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(CtpGateway)
main_engine.add_gateway(BinaneUsdtGateway)
cta_engine = main_engine.add_app(CtaStrategyApp)
main_engine.write_log("主引擎创建成功")

Expand Down
156 changes: 0 additions & 156 deletions examples/notebook_trading/demo_notebook.ipynb

This file was deleted.

Loading

0 comments on commit 48b5853

Please sign in to comment.