Skip to content

Commit 5e5a907

Browse files
author
yutiansut
committed
#drop unused
1 parent 5f52b7f commit 5e5a907

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

QUANTAXIS/QAStrategy/qactabase.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,14 @@ def x1(self, item):
232232

233233
def debug_t0(self):
234234
self.running_mode = 'backtest'
235-
self.database = pymongo.MongoClient(mongo_ip).QUANTAXIS
236-
user = QA_User(username=self.username, password=self.password)
237-
port = user.new_portfolio(self.portfolio)
238-
self.acc = port.new_accountpro(
239-
account_cookie=self.strategy_id, init_cash=self.init_cash, init_hold={
240-
self.code: 100000},
241-
market_type=self.market_type, running_environment=RUNNING_ENVIRONMENT.TZERO)
242-
self.positions = self.acc.get_position(self.code)
235+
# self.database = pymongo.MongoClient(mongo_ip).QUANTAXIS
236+
# user = QA_User(username=self.username, password=self.password)
237+
# port = user.new_portfolio(self.portfolio)
238+
# self.acc = port.new_accountpro(
239+
# account_cookie=self.strategy_id, init_cash=self.init_cash, init_hold={
240+
# self.code: 100000},
241+
# market_type=self.market_type, running_environment=RUNNING_ENVIRONMENT.TZERO)
242+
# self.positions = self.acc.get_position(self.code)
243243
data = QA.QA_quotation(self.code.upper(), self.start, self.end, source=QA.DATASOURCE.MONGO,
244244
frequence=self.frequence, market=self.market_type, output=QA.OUTPUT_FORMAT.DATASTRUCT)
245245

QUANTAXIS/QAStrategy/qamultibase.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
from QUANTAXIS.QAUtil.QAParameter import MARKET_TYPE, RUNNING_ENVIRONMENT, ORDER_DIRECTION
1919
from QAPUBSUB.consumer import subscriber_topic, subscriber_routing
2020
from QAPUBSUB.producer import publisher_routing
21-
from QUANTAXIS.QAStrategy.qactabase import QAStrategyCTABase
21+
from QUANTAXIS.QAStrategy.qactabase import QAStrategyCtaBase
2222
from QUANTAXIS.QIFI.QifiAccount import QIFI_Account
2323

2424

25-
class QAStrategyStockBase(QAStrategyCTABase):
25+
class QAStrategyStockBase(QAStrategyCtaBase):
2626

2727
def __init__(self, code=['000001'], frequence='1min', strategy_id='QA_STRATEGY', risk_check_gap=1, portfolio='default',
2828
start='2019-01-01', end='2019-10-21', send_wx=False, market_type='stock_cn',
@@ -141,16 +141,16 @@ def run(self):
141141

142142
def debug(self):
143143
self.running_mode = 'backtest'
144-
self.database = pymongo.MongoClient(mongo_ip).QUANTAXIS
145-
user = QA_User(username="admin", password='admin')
146-
port = user.new_portfolio(self.portfolio)
147-
self.acc = port.new_accountpro(
148-
account_cookie=self.strategy_id, init_cash=self.init_cash, market_type=self.market_type, frequence= self.frequence)
149-
#self.positions = self.acc.get_position(self.code)
144+
# self.database = pymongo.MongoClient(mongo_ip).QUANTAXIS
145+
# user = QA_User(username="admin", password='admin')
146+
# port = user.new_portfolio(self.portfolio)
147+
# self.acc = port.new_accountpro(
148+
# account_cookie=self.strategy_id, init_cash=self.init_cash, market_type=self.market_type, frequence= self.frequence)
149+
# #self.positions = self.acc.get_position(self.code)
150150

151-
print(self.acc)
151+
# print(self.acc)
152152

153-
print(self.acc.market_type)
153+
# print(self.acc.market_type)
154154
data = QA.QA_quotation(self.code, self.start, self.end, source=QA.DATASOURCE.MONGO,
155155
frequence=self.frequence, market=self.market_type, output=QA.OUTPUT_FORMAT.DATASTRUCT)
156156

0 commit comments

Comments
 (0)