qstrategy.do_select

Functions

do_select(→ Union[List[Dict], pandas.DataFrame])

执行选股

Module Contents

qstrategy.do_select.do_select(strategy: qstrategy.select.Select, loader: qdatac.loader.BlockLoader, typ: str, params: qstrategy.tradecomm.Params | None = None, with_progress: bool = False, to_frame: bool = True) List[Dict] | pandas.DataFrame

执行选股

参数:
  • strategy (Select) – 策略实例

  • loader (BlockLoader) – Loader

  • typ (str) – 类型:stock, bond, fund

  • params (Optional[Params], optional) – 策略参数

  • with_progress (bool, optional) – 是否显示进度条,默认是不显示的。

  • to_frame (bool, optional) – 是否转换为DataFrame格式,默认 True.

返回类型:

Union[List[Dict], pd.DataFrame]