Пример #1
0
    def __saving_work(code, coll):
        QA_util_log_info('##JOB010 Now Saving STOCK INFO ==== {}'.format(
            str(code)))
        try:
            coll.insert_many(
                QA_util_to_json_from_pandas(QA_fetch_get_stock_info(
                    str(code))))

        except:
            err.append(str(code))
Пример #2
0
    def stock_info(self):
        data = []

        for item in self.block_code:
            try:
                _data = QA_fetch_stock_info(item)
            except:
                _data = QA_fetch_get_stock_info(item)
            data.append(_data)

        return pd.concat(data).set_index('code', drop=False)