def QA_SU_save_stock_info(client=DATABASE): data = QA_fetch_get_stock_info('') client.drop_collection('stock_info') coll = client.stock_info coll.create_index('code') coll.insert_many(QA_util_to_json_from_pandas(data.reset_index()))
def QA_SU_save_stock_info(client=QA_Setting.client): data = QA_fetch_get_stock_info('all') coll = client.quantaxis.stock_info coll.insert_many(data)
def QA_SU_save_stock_info(client=DATABASE): data = QA_fetch_get_stock_info('all') coll = client.stock_info coll.insert_many(data)