From d868bdf0da7c5cf4b77e2b31ae977c5a63f1811a Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Wed, 25 Sep 2019 16:00:24 +0800 Subject: [PATCH] [Mod] use bitstamp gateway --- examples/vn_trader/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/vn_trader/run.py b/examples/vn_trader/run.py index 74e3ca1f..298cfbb1 100644 --- a/examples/vn_trader/run.py +++ b/examples/vn_trader/run.py @@ -29,6 +29,7 @@ from vnpy.gateway.okexs import OkexsGateway # from vnpy.gateway.alpaca import AlpacaGateway from vnpy.gateway.da import DaGateway from vnpy.gateway.coinbase import CoinbaseGateway +from vnpy.gateway.bitstamp import BitstampGateway from vnpy.app.cta_strategy import CtaStrategyApp # from vnpy.app.csv_loader import CsvLoaderApp @@ -72,7 +73,8 @@ def main(): # main_engine.add_gateway(AlpacaGateway) # main_engine.add_gateway(OkexsGateway) # main_engine.add_gateway(DaGateway) - main_engine.add_gateway(CoinbaseGateway) + # main_engine.add_gateway(CoinbaseGateway) + main_engine.add_gateway(BitstampGateway) main_engine.add_app(CtaStrategyApp) main_engine.add_app(CtaBacktesterApp)