abupy.PickStockBu package

Submodules

abupy.PickStockBu.ABuPickRegressAngMinMax module

选股示例因子:价格拟合角度选股因子

class abupy.PickStockBu.ABuPickRegressAngMinMax.AbuPickRegressAngMinMax(capital, benchmark, **kwargs)[源代码]

Bases: abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase

拟合角度选股因子示例类

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]
fit_pick(kl_pd, target_symbol)[源代码]

开始根据自定义拟合角度边际参数进行选股

abupy.PickStockBu.ABuPickSimilarNTop module

选股示例因子:相似度选股因子,主要示例fit_first_choice

class abupy.PickStockBu.ABuPickSimilarNTop.AbuPickSimilarNTop(capital, benchmark, **kwargs)[源代码]

Bases: abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase

相似度选股因子示例类

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]

因子相似度批量选股接口 :param pick_worker: 选股worker,AbuPickStockWorker实例对象 :param choice_symbols: 初始备选交易对象序列 :return:

fit_pick(kl_pd, target_symbol)[源代码]

开始根据自定义相似度边际条件进行选股

abupy.PickStockBu.ABuPickStock module

abupy.PickStockBu.ABuPickStockBase module

选股因子抽象基类

class abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase(capital, benchmark, **kwargs)[源代码]

Bases: abc.NewBase

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]

因子首选批量选股接口,即因子对象对多个交易目标的投票结果,具体详见示例因子

fit_pick(*args, **kwargs)[源代码]

选股操作接口,即因子对象针对一个交易目标的投票结果,具体详见示例因子

abupy.PickStockBu.ABuPickStockBase.reversed_result(func)[源代码]

对选股结果进行反转的装饰器,装饰在fit_pick上

abupy.PickStockBu.ABuPickStockDemo module

选股示例因子:价格选股因子

class abupy.PickStockBu.ABuPickStockDemo.AbuPickStockShiftDistance(capital, benchmark, **kwargs)[源代码]

Bases: abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase

位移路程比选股因子示例类

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]
fit_pick(kl_pd, target_symbol)[源代码]

开始根据位移路程比边际参数进行选股

abupy.PickStockBu.ABuPickStockPriceMinMax module

选股示例因子:价格选股因子

class abupy.PickStockBu.ABuPickStockPriceMinMax.AbuPickStockPriceMinMax(capital, benchmark, **kwargs)[源代码]

Bases: abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase

价格选股因子示例类

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]
fit_pick(kl_pd, target_symbol)[源代码]

开始根据自定义价格边际参数进行选股

Module contents

class abupy.PickStockBu.AbuPickRegressAngMinMax(capital, benchmark, **kwargs)[源代码]

Bases: abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase

拟合角度选股因子示例类

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]
fit_pick(kl_pd, target_symbol)[源代码]

开始根据自定义拟合角度边际参数进行选股

class abupy.PickStockBu.AbuPickSimilarNTop(capital, benchmark, **kwargs)[源代码]

Bases: abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase

相似度选股因子示例类

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]

因子相似度批量选股接口 :param pick_worker: 选股worker,AbuPickStockWorker实例对象 :param choice_symbols: 初始备选交易对象序列 :return:

fit_pick(kl_pd, target_symbol)[源代码]

开始根据自定义相似度边际条件进行选股

class abupy.PickStockBu.AbuPickStockBase(capital, benchmark, **kwargs)[源代码]

Bases: abc.NewBase

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]

因子首选批量选股接口,即因子对象对多个交易目标的投票结果,具体详见示例因子

fit_pick(*args, **kwargs)[源代码]

选股操作接口,即因子对象针对一个交易目标的投票结果,具体详见示例因子

class abupy.PickStockBu.AbuPickStockPriceMinMax(capital, benchmark, **kwargs)[源代码]

Bases: abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase

价格选股因子示例类

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]
fit_pick(kl_pd, target_symbol)[源代码]

开始根据自定义价格边际参数进行选股

class abupy.PickStockBu.AbuPickStockShiftDistance(capital, benchmark, **kwargs)[源代码]

Bases: abupy.PickStockBu.ABuPickStockBase.AbuPickStockBase

位移路程比选股因子示例类

fit_first_choice(pick_worker, choice_symbols, *args, **kwargs)[源代码]
fit_pick(kl_pd, target_symbol)[源代码]

开始根据位移路程比边际参数进行选股