64df22451066acbcd54bfd895dd4a9acc2db61e9,QUANTAXIS/QAMarket/QAMarket.py,QA_Market,query_currentbar,#QA_Market#Any#Any#Any#,200
Before Change
))
def query_currentbar(self, broker_name, market_type, code):
return self.broker[broker_name].run(event=QA_Event(
event_type=MARKET_EVENT.QUERY_DATA,
message={
"data_type": MARKETDATA_TYPE.CURRENT,
"market_type": market_type,
"code": code,
"start": self.running_time,
"end": None
}
))
def on_query_data(self, data):
print("ON QUERY")
After Change
))
def query_currentbar(self, broker_name, market_type, code):
return self.broker[broker_name].run(event=QA_Event(
event_type=MARKET_EVENT.QUERY_DATA,
data_type=MARKETDATA_TYPE.CURRENT,
market_type=market_type,
code=code,
start=self.running_time,
end=None
))
def on_query_data(self, data):
print("ON QUERY")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 64df22451066acbcd54bfd895dd4a9acc2db61e9
Time: 2017-12-27
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QAMarket.py
Class Name: QA_Market
Method Name: query_currentbar
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 64df22451066acbcd54bfd895dd4a9acc2db61e9
Time: 2017-12-27
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QAMarket.py
Class Name: QA_Market
Method Name: query_data
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 64df22451066acbcd54bfd895dd4a9acc2db61e9
Time: 2017-12-27
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QAMarket.py
Class Name: QA_Market
Method Name: query_data_no_wait