功能更新
This commit is contained in:
@@ -17,7 +17,7 @@ def _parse(date_str: str) -> datetime:
|
||||
|
||||
def fetch_daily(code: str, start: str = "20200101", end: str | None = None,
|
||||
adjust: str = "qfq") -> list[Bar]:
|
||||
import tushare as ts # 延迟导入:未装/无 token 时 DEMO 仍可用
|
||||
import tushare as ts # 延迟导入:未装或无 token 时该数据源不可用
|
||||
|
||||
if not settings.tushare_token:
|
||||
raise RuntimeError("未配置 TUSHARE_TOKEN")
|
||||
|
||||
Reference in New Issue
Block a user