f083111608442549981060baf35e521be8d61af9,QUANTAXIS/QAFetch/QATushare.py,,QA_fetch_get_stock_day,#Any#Any#Any#,32

Before Change


def QA_fetch_get_stock_day(name, startDate, endDate):
    if (len(name) != 6):
        name = str(name)[0:6]
    data = QATs.get_k_data(name, startDate, endDate, ktype="D")
    data_json = json.loads(data.to_json(orient="records"))
    for item in data_json:
        item["date_stamp"] = QA_util_date_stamp(item["date"])
    return data_json


def QA_fetch_get_stock_realtime():

After Change


def QA_fetch_get_stock_day(name, startDate=None, endDate=None):
    if (len(name) != 6):
        name = str(name)[0:6]
        data = QATs.get_hist_data(str(name), startDate, endDate).sort_index()

        data_json = json.loads(data.to_json(orient="records"))

        for j in range(0, len(data_json), 1):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: f083111608442549981060baf35e521be8d61af9
Time: 2017-06-15
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATushare.py
Class Name:
Method Name: QA_fetch_get_stock_day


Project Name: dirty-cat/dirty_cat
Commit Name: 58a3d268c0bcf87aa726af8516b98bda9e23e562
Time: 2018-06-06
Author: gael.varoquaux@normalesup.org
File Name: examples/plot_investigating_dirty_categories.py
Class Name:
Method Name:


Project Name: nilmtk/nilmtk
Commit Name: 5641405989025614d4654f752f37dbf66c548da5
Time: 2014-05-05
Author: jack-list@xlk.org.uk
File Name: nilmtk/pipeline/results.py
Class Name: Results
Method Name: update