78fbc0ad59e15a179c1ec5338c4a5d53dd42b041,QUANTAXIS/QAFetch/QAQuery.py,,QA_fetch_index_day,#Any#Any#Any#Any#Any#,134
Before Change
__data = []
for item in collections.find({
"code": str(code)[0:6], "date_stamp": {
"$lte": QA_util_date_stamp(__end),
"$gte": QA_util_date_stamp(__start)}}):
__data.append([str(item["code"]), float(item["open"]), float(item["high"]), float(
item["low"]), float(item["close"]), float(item["vol"]), item["date"]])
After Change
if QA_util_date_valid(end) == True:
__data = []
cursor = collections.find({
"code": str(code)[0:6], "date_stamp": {
"$lte": QA_util_date_stamp(end),
"$gte": QA_util_date_stamp(start)}})
if format in ["dict", "json"]:
return [data for data in cursor]
for item in cursor:
__data.append([str(item["code"]), float(item["open"]), float(item["high"]), float(
item["low"]), float(item["close"]), float(item["vol"]), item["date"]])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 11
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 78fbc0ad59e15a179c1ec5338c4a5d53dd42b041
Time: 2017-12-17
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_day
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 78fbc0ad59e15a179c1ec5338c4a5d53dd42b041
Time: 2017-12-17
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_stock_day
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 78fbc0ad59e15a179c1ec5338c4a5d53dd42b041
Time: 2017-12-17
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_min
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 78fbc0ad59e15a179c1ec5338c4a5d53dd42b041
Time: 2017-12-17
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_stock_min