diff --git a/examples/get_xshg.py b/examples/get_xshg.py index a343aca..7652b3d 100755 --- a/examples/get_xshg.py +++ b/examples/get_xshg.py @@ -11,7 +11,11 @@ ) tickers_list = { - '603288', '600519', '688041', + '603288', # Fosha Haitian + '600519', # Kweichow Moutai + '688041', # Hygon + '688047', # Loongson + } for ticker in sorted(tickers_list): diff --git a/msfinance/stocks.py b/msfinance/stocks.py index ed2d969..0038a3e 100644 --- a/msfinance/stocks.py +++ b/msfinance/stocks.py @@ -129,7 +129,7 @@ def _check_database(self, unique_id): ''' if self.db: try: - query = f"SELECT * FROM {unique_id}" + query = f"SELECT * FROM '{unique_id}'" df = pd.read_sql_query(query, self.db) return df except pd.errors.DatabaseError as e: