SYMBOL INDEX (1730 symbols across 314 files) FILE: examples/data_runner/actor_runner.py function record_actor_data (line 20) | def record_actor_data(data_provider="em", entity_provider="em"): FILE: examples/data_runner/finance_runner.py function record_actor_data (line 23) | def record_actor_data(data_provider="eastmoney", entity_provider="eastmo... FILE: examples/data_runner/index_runner.py function record_index (line 18) | def record_index(): function record_index_kdata (line 26) | def record_index_kdata(): FILE: examples/data_runner/joinquant_fund_runner.py function record_fund_data (line 17) | def record_fund_data(data_provider="joinquant", entity_provider="joinqua... FILE: examples/data_runner/joinquant_kdata_runner.py function record_stock_data (line 27) | def record_stock_data(data_provider="joinquant", entity_provider="joinqu... FILE: examples/data_runner/kdata_runner.py function record_stock_news (line 33) | def record_stock_news(data_provider="em"): function report_limit_up (line 48) | def report_limit_up(): function report_hot_topics (line 57) | def report_hot_topics(): function record_stock_data (line 86) | def record_stock_data(data_provider="em", entity_provider="em", sleeping... function record_stockhk_data (line 158) | def record_stockhk_data(data_provider="em", entity_provider="em", sleepi... FILE: examples/data_runner/sina_data_runner.py function record_block (line 16) | def record_block(): function record_money_flow (line 22) | def record_money_flow(): FILE: examples/data_runner/trading_runner.py function record_dragon_tiger (line 25) | def record_dragon_tiger(data_provider="em", entity_provider="em", sleepi... FILE: examples/factors/boll_factor.py class BollTransformer (line 11) | class BollTransformer(Transformer): method transform_one (line 12) | def transform_one(self, entity_id, df: pd.DataFrame) -> pd.DataFrame: class BollFactor (line 34) | class BollFactor(TechnicalFactor): method drawer_factor_df_list (line 37) | def drawer_factor_df_list(self) -> Optional[List[pd.DataFrame]]: method compute_result (line 40) | def compute_result(self): FILE: examples/factors/fundamental_selector.py class FundamentalSelector (line 7) | class FundamentalSelector(TargetSelector): method init_factors (line 8) | def init_factors(self, entity_ids, entity_schema, exchanges, codes, st... FILE: examples/factors/tech_factor.py class BullAndUpFactor (line 14) | class BullAndUpFactor(MacdFactor): method __init__ (line 15) | def __init__( method compute_result (line 80) | def compute_result(self): FILE: examples/intent/intent.py function china_vs_us_stock (line 7) | def china_vs_us_stock(): function us_yield_and_stock (line 16) | def us_yield_and_stock(): function commodity_and_stock (line 27) | def commodity_and_stock(): function compare_metal (line 37) | def compare_metal(): function compare_udi_and_stock (line 47) | def compare_udi_and_stock(): function compare_cny_and_stock (line 60) | def compare_cny_and_stock(): FILE: examples/migration.py class User (line 16) | class User(Mixin, ZvtInfoBase): class UserModel (line 22) | class UserModel(BaseModel): FILE: examples/ml/sgd.py function sgd_classification (line 9) | def sgd_classification(): function sgd_regressor (line 17) | def sgd_regressor(): FILE: examples/query_snippet.py function query_json (line 11) | def query_json(): function get_stocks_has_tag (line 19) | def get_stocks_has_tag(): function get_stocks_without_tag (line 24) | def get_stocks_without_tag(): function get_all_delist_stocks (line 30) | def get_all_delist_stocks(): function get_block_stocks (line 41) | def get_block_stocks(name="低空经济"): function get_sub_tag_stocks (line 46) | def get_sub_tag_stocks(tag="低空经济"): FILE: examples/report_utils.py function inform (line 23) | def inform( function report_targets (line 122) | def report_targets( function report_top_entities (line 228) | def report_top_entities( FILE: examples/reports/__init__.py function get_subscriber_emails (line 16) | def get_subscriber_emails(): function risky_company (line 22) | def risky_company(the_date=to_pd_timestamp(now_date_time_str()), income_... function stocks_with_info (line 73) | def stocks_with_info(stocks: List[Stock]): FILE: examples/reports/report_bull.py function report_bull (line 21) | def report_bull(): FILE: examples/reports/report_core_compay.py function report_core_company (line 24) | def report_core_company(): FILE: examples/reports/report_tops.py function report_top_stocks (line 22) | def report_top_stocks(): function report_top_blocks (line 73) | def report_top_blocks(): function report_top_stockhks (line 120) | def report_top_stockhks(): FILE: examples/reports/report_vol_up.py function report_vol_up_stocks (line 22) | def report_vol_up_stocks(): function report_vol_up_stockhks (line 55) | def report_vol_up_stockhks(): FILE: examples/research/top_dragon_tiger.py function top_dragon_and_tiger (line 16) | def top_dragon_and_tiger(data_provider="em", start_timestamp="2021-01-01... class DragonTigerFactor (line 37) | class DragonTigerFactor(TechnicalFactor): method __init__ (line 38) | def __init__( method drawer_annotation_df (line 105) | def drawer_annotation_df(self) -> Optional[pd.DataFrame]: FILE: examples/research/top_tags.py function top_tags (line 10) | def top_tags(data_provider="em", start_timestamp="2020-01-01", end_times... FILE: examples/tag_utils.py function get_limit_up_reasons (line 10) | def get_limit_up_reasons(entity_id): function get_concept (line 21) | def get_concept(code): function industry_to_tag (line 29) | def industry_to_tag(industry): function build_default_tags (line 76) | def build_default_tags(codes, provider="em"): function get_main_line_tags (line 102) | def get_main_line_tags(): function get_main_line_hidden_tags (line 107) | def get_main_line_hidden_tags(): function replace_tags (line 112) | def replace_tags(old_tag="仪器仪表"): function check_tags (line 129) | def check_tags(): function get_hidden_code (line 159) | def get_hidden_code(code): function get_core_tag (line 165) | def get_core_tag(codes): function group_stocks_by_tag (line 190) | def group_stocks_by_tag(entities, hidden_tags=None): function build_stock_tags_by_block (line 208) | def build_stock_tags_by_block(block_name, tag, hidden_tag): function merge_tags (line 229) | def merge_tags(current_tags, added_tags, force_update=False): function merge_tags_file (line 244) | def merge_tags_file(current_tags_file, added_tags_file, result_file, for... function complete_tags (line 257) | def complete_tags(): function refresh_hidden_tags (line 277) | def refresh_hidden_tags(): FILE: examples/trader/dragon_and_tiger_trader.py class DragonTigerFactor (line 12) | class DragonTigerFactor(Factor): method __init__ (line 13) | def __init__( method compute_result (line 71) | def compute_result(self): class MyTrader (line 76) | class MyTrader(StockTrader): method init_factors (line 77) | def init_factors( FILE: examples/trader/follow_ii_trader.py class FollowIITrader (line 12) | class FollowIITrader(StockTrader): method on_time (line 15) | def on_time(self, timestamp: pd.Timestamp): FILE: examples/trader/keep_run_trader.py class MultipleLevelTrader (line 15) | class MultipleLevelTrader(StockTrader): method init_factors (line 16) | def init_factors( FILE: examples/trader/ma_trader.py class MyMaTrader (line 9) | class MyMaTrader(StockTrader): method init_factors (line 10) | def init_factors( class MyBullTrader (line 27) | class MyBullTrader(StockTrader): method init_factors (line 28) | def init_factors( FILE: examples/trader/macd_day_trader.py class MacdDayTrader (line 18) | class MacdDayTrader(StockTrader): method init_factors (line 19) | def init_factors( method on_profit_control (line 37) | def on_profit_control(self): method on_time (line 41) | def on_time(self, timestamp: pd.Timestamp): method on_trading_signals (line 45) | def on_trading_signals(self, trading_signals: List[TradingSignal]): method on_trading_open (line 49) | def on_trading_open(self, timestamp): method on_trading_close (line 53) | def on_trading_close(self, timestamp): method on_trading_finish (line 57) | def on_trading_finish(self, timestamp): method on_trading_error (line 61) | def on_trading_error(self, timestamp, error): method long_position_control (line 65) | def long_position_control(self): method short_position_control (line 69) | def short_position_control(self): method on_factor_targets_filtered (line 73) | def on_factor_targets_filtered( FILE: examples/trader/macd_week_and_day_trader.py class MultipleLevelTrader (line 12) | class MultipleLevelTrader(StockTrader): method init_factors (line 13) | def init_factors( method on_targets_selected_from_levels (line 40) | def on_targets_selected_from_levels(self, timestamp) -> Tuple[List[str... FILE: examples/utils.py function get_hot_words_config (line 14) | def get_hot_words_config(): function count_hot_words (line 19) | def count_hot_words(text: str): function hot_stats (line 33) | def hot_stats(data: pd.Series): function group_stocks_by_topic (line 37) | def group_stocks_by_topic( function msg_group_stocks_by_topic (line 118) | def msg_group_stocks_by_topic( function get_hot_topics (line 140) | def get_hot_topics(start_timestamp=None, days_ago=20, limit=15): FILE: sql/change_indices.sql type indices1 (line 5) | create table indices1 FILE: src/zvt/__init__.py function init_log (line 29) | def init_log(file_name="zvt.log", log_dir=None, simple_formatter=True): function init_env (line 79) | def init_env(zvt_home: str, **kwargs) -> dict: function init_resources (line 125) | def init_resources(resource_path, force_overwrite=True): function init_config (line 137) | def init_config(pkg_name: str = None, current_config: dict = None, **kwa... function init_plugins (line 178) | def init_plugins(): function old_db_to_provider_dir (line 188) | def old_db_to_provider_dir(data_path): FILE: src/zvt/api/intent.py function compare (line 12) | def compare( function compare_df (line 64) | def compare_df(df: pd.DataFrame, chart_type: ChartType = ChartType.line): function distribute (line 75) | def distribute(data_schema, columns, entity_ids=None, codes=None, histno... function distribute_df (line 94) | def distribute_df(df, histnorm="percent", nbinsx=20): function composite (line 106) | def composite(entity_id, data_schema, columns, filters=None): function composite_df (line 120) | def composite_df(df): function composite_all (line 130) | def composite_all(data_schema, column, timestamp, provider=None, entity_... function _group_entity_ids (line 153) | def _group_entity_ids(entity_ids): FILE: src/zvt/api/kdata.py function get_trade_dates (line 22) | def get_trade_dates(entity_type, start, end=None): function get_recent_trade_dates (line 58) | def get_recent_trade_dates(entity_type, target_date=current_date(), days... function get_latest_kdata_date (line 66) | def get_latest_kdata_date( function get_kdata_schema (line 83) | def get_kdata_schema( function get_kdata (line 106) | def get_kdata( function default_adjust_type (line 149) | def default_adjust_type(entity_type: str) -> AdjustType: function generate_kdata_id (line 158) | def generate_kdata_id(entity_id, timestamp, level): function to_high_level_kdata (line 165) | def to_high_level_kdata(kdata_df: pd.DataFrame, to_level: IntervalLevel): FILE: src/zvt/api/portfolio.py function portfolio_relate_stock (line 14) | def portfolio_relate_stock(df, portfolio): function get_portfolio_stocks (line 25) | def get_portfolio_stocks( function get_etf_stocks (line 84) | def get_etf_stocks(code=None, codes=None, ids=None, timestamp=now_pd_tim... function get_fund_stocks (line 95) | def get_fund_stocks(code=None, codes=None, ids=None, timestamp=now_pd_ti... FILE: src/zvt/api/selector.py function get_entity_ids_by_filter (line 36) | def get_entity_ids_by_filter( function get_limit_up_stocks (line 78) | def get_limit_up_stocks(timestamp): function get_recent_trending_stocks (line 84) | def get_recent_trending_stocks(adjust_type=AdjustType.qfq, provider="em"... function get_recent_active_stocks (line 126) | def get_recent_active_stocks(adjust_type=AdjustType.qfq, provider="em", ... function get_dragon_and_tigger_player (line 157) | def get_dragon_and_tigger_player(start_timestamp, end_timestamp=None, di... function get_big_players (line 175) | def get_big_players(start_timestamp, end_timestamp=None, count=40): function get_player_performance (line 189) | def get_player_performance(start_timestamp, end_timestamp=None, days=5, ... function get_player_success_rate (line 235) | def get_player_success_rate( function get_players (line 259) | def get_players(entity_id, start_timestamp, end_timestamp, provider="em"... function get_good_players (line 294) | def get_good_players(timestamp=current_date(), recent_days=400, interval... function get_entity_list_by_cap (line 309) | def get_entity_list_by_cap( function get_big_cap_stock (line 343) | def get_big_cap_stock(timestamp, provider="em", adjust_type=None): function get_middle_cap_stock (line 354) | def get_middle_cap_stock(timestamp, provider="em", adjust_type=None): function get_small_cap_stock (line 365) | def get_small_cap_stock(timestamp, provider="em", adjust_type=None): function get_mini_cap_stock (line 376) | def get_mini_cap_stock(timestamp, provider="em", adjust_type=None): function get_mini_and_small_stock (line 387) | def get_mini_and_small_stock(timestamp, provider="em", adjust_type=None): function get_middle_and_big_stock (line 398) | def get_middle_and_big_stock(timestamp, provider="em", adjust_type=None): function get_limit_up_today (line 409) | def get_limit_up_today(): function get_top_up_today (line 415) | def get_top_up_today(n=100): function get_shoot_today (line 421) | def get_shoot_today(up_change_pct=0.03, down_change_pct=-0.03, interval=1): function get_top_vol (line 474) | def get_top_vol( function get_top_down_today (line 502) | def get_top_down_today(n=100): function get_limit_down_today (line 508) | def get_limit_down_today(): function get_high_days_count (line 514) | def get_high_days_count(entity_ids=None, target_date=current_date(), day... FILE: src/zvt/api/stats.py class WindowMethod (line 28) | class WindowMethod(enum.Enum): class TopType (line 34) | class TopType(enum.Enum): function get_top_performance_by_month (line 39) | def get_top_performance_by_month( function get_top_performance_entities_by_periods (line 62) | def get_top_performance_entities_by_periods( function get_top_performance_entities (line 166) | def get_top_performance_entities( function get_top_fund_holding_stocks (line 218) | def get_top_fund_holding_stocks(timestamp=None, pct=0.3, by=None): function get_performance (line 273) | def get_performance( function get_performance_stats_by_month (line 299) | def get_performance_stats_by_month( function get_performance_stats (line 326) | def get_performance_stats( function get_top_volume_entities (line 360) | def get_top_volume_entities( function get_top_turnover_rate_entities (line 397) | def get_top_turnover_rate_entities( function get_top_entities (line 434) | def get_top_entities( function show_month_performance (line 531) | def show_month_performance(): function show_industry_composition (line 547) | def show_industry_composition(entity_ids, timestamp): function get_change_ratio (line 562) | def get_change_ratio( FILE: src/zvt/api/utils.py function to_report_period_type (line 10) | def to_report_period_type(report_date): function get_recent_report_date (line 24) | def get_recent_report_date(the_date=now_pd_timestamp(), step=0): function get_recent_report_period (line 43) | def get_recent_report_period(the_date=now_pd_timestamp(), step=0): function get_china_exchange (line 47) | def get_china_exchange(code): function china_stock_code_to_id (line 57) | def china_stock_code_to_id(code): function value_to_pct (line 61) | def value_to_pct(value, default=0): function value_multiply (line 65) | def value_multiply(value, multiplier, default=0): function float_to_pct_str (line 69) | def float_to_pct_str(value): function get_recent_report (line 73) | def get_recent_report(data_schema: Type[Mixin], timestamp, entity_id=Non... FILE: src/zvt/autocode/generator.py function all_sub_modules (line 15) | def all_sub_modules(dir_path: str): function _remove_start_end (line 33) | def _remove_start_end(line: str, start="class ", end="("): function _get_interface_name (line 43) | def _get_interface_name(line: str): function _get_var_name (line 56) | def _get_var_name(line: str): function all_sub_all (line 69) | def all_sub_all(sub_module): function fill_package_if_not_exist (line 81) | def fill_package_if_not_exist(dir_path: str): function fill_package (line 91) | def fill_package(dir_path: str): function gen_exports (line 102) | def gen_exports( function gen_kdata_schema (line 188) | def gen_kdata_schema( function gen_plugin_project (line 263) | def gen_plugin_project(entity_type, prefix: str = "zvt", dir_path: str =... FILE: src/zvt/autocode/templates/__init__.py function all_tpls (line 10) | def all_tpls(project: str, entity_type: str): FILE: src/zvt/broker/qmt/context.py class QmtContext (line 8) | class QmtContext(object): method __init__ (line 9) | def __init__(self): function init_qmt_account (line 16) | def init_qmt_account(qmt_mini_data_path=None, qmt_account_id=None): FILE: src/zvt/broker/qmt/errors.py class TraderError (line 2) | class TraderError(Exception): class QmtError (line 8) | class QmtError(TraderError): method __init__ (line 9) | def __init__(self, message="qmt error"): class PositionOverflowError (line 13) | class PositionOverflowError(TraderError): method __init__ (line 14) | def __init__(self, message="超出仓位限制"): FILE: src/zvt/broker/qmt/qmt_account.py function _to_qmt_order_type (line 19) | def _to_qmt_order_type(order_type: OrderType): class MyXtQuantTraderCallback (line 26) | class MyXtQuantTraderCallback(XtQuantTraderCallback): method on_connected (line 27) | def on_connected(self): method on_smt_appointment_async_response (line 30) | def on_smt_appointment_async_response(self, response): method on_cancel_order_stock_async_response (line 33) | def on_cancel_order_stock_async_response(self, response): method on_disconnected (line 36) | def on_disconnected(self): method on_stock_order (line 43) | def on_stock_order(self, order): method on_stock_asset (line 51) | def on_stock_asset(self, asset): method on_stock_trade (line 59) | def on_stock_trade(self, trade): method on_stock_position (line 67) | def on_stock_position(self, position): method on_order_error (line 75) | def on_order_error(self, order_error): method on_cancel_error (line 83) | def on_cancel_error(self, cancel_error): method on_order_stock_async_response (line 91) | def on_order_stock_async_response(self, response): method on_account_status (line 99) | def on_account_status(self, status): class QmtStockAccount (line 107) | class QmtStockAccount(AccountService): method __init__ (line 108) | def __init__(self, path, account_id, trader_name, session_id=None) -> ... method get_positions (line 141) | def get_positions(self): method get_current_position (line 145) | def get_current_position(self, entity_id, create_if_not_exist=False): method get_current_account (line 150) | def get_current_account(self): method order_by_amount (line 154) | def order_by_amount(self, entity_id, order_price, order_timestamp, ord... method on_trading_signals (line 168) | def on_trading_signals(self, trading_signals: List[TradingSignal]): method handle_trading_signal (line 176) | def handle_trading_signal(self, trading_signal: TradingSignal): method on_trading_open (line 205) | def on_trading_open(self, timestamp): method on_trading_close (line 208) | def on_trading_close(self, timestamp): method on_trading_finish (line 211) | def on_trading_finish(self, timestamp): method on_trading_error (line 214) | def on_trading_error(self, timestamp, error): method sell (line 217) | def sell(self, position_strategy: SellParameter): method buy (line 246) | def buy(self, buy_parameter: BuyParameter): FILE: src/zvt/broker/qmt/qmt_quote.py function _to_qmt_code (line 32) | def _to_qmt_code(entity_id): function _to_zvt_entity_id (line 37) | def _to_zvt_entity_id(qmt_code): function _to_qmt_dividend_type (line 43) | def _to_qmt_dividend_type(adjust_type: AdjustType): function _qmt_instrument_detail_to_stock (line 52) | def _qmt_instrument_detail_to_stock(stock_detail): function get_qmt_stocks (line 89) | def get_qmt_stocks(include_bj=True): function _build_entity_list (line 102) | def _build_entity_list(qmt_stocks): function get_entity_list (line 158) | def get_entity_list(include_bj=True): function get_kdata (line 163) | def get_kdata( function tick_to_quote (line 198) | def tick_to_quote(entity_df): function clear_history_quote (line 332) | def clear_history_quote(target_date=current_date()): function clear_history_1m_quote (line 339) | def clear_history_1m_quote(target_date=current_date()): function clear_history_quote_log (line 352) | def clear_history_quote_log(target_date): function record_stock_quote (line 365) | def record_stock_quote(subscribe=False): FILE: src/zvt/common/query_models.py class OrderByType (line 9) | class OrderByType(Enum): class TimeUnit (line 14) | class TimeUnit(Enum): class AbsoluteTimeRange (line 23) | class AbsoluteTimeRange(BaseModel): class RelativeTimeRage (line 28) | class RelativeTimeRage(BaseModel): class TimeRange (line 33) | class TimeRange(BaseModel): FILE: src/zvt/common/trading_models.py class PositionType (line 8) | class PositionType(Enum): class BuyParameter (line 17) | class BuyParameter(BaseModel): class SellParameter (line 25) | class SellParameter(BaseModel): class TradingResult (line 30) | class TradingResult(BaseModel): FILE: src/zvt/contract/__init__.py class IntervalLevel (line 5) | class IntervalLevel(Enum): method to_pd_freq (line 33) | def to_pd_freq(self): method floor_timestamp (line 49) | def floor_timestamp(self, pd_timestamp): method to_minute (line 65) | def to_minute(self): method to_second (line 68) | def to_second(self): method to_ms (line 71) | def to_ms(self): method __ge__ (line 99) | def __ge__(self, other): method __gt__ (line 104) | def __gt__(self, other): method __le__ (line 110) | def __le__(self, other): method __lt__ (line 115) | def __lt__(self, other): class AdjustType (line 121) | class AdjustType(Enum): class ActorType (line 138) | class ActorType(Enum): class TradableType (line 159) | class TradableType(Enum): class Exchange (line 203) | class Exchange(Enum): function get_entity_exchanges (line 265) | def get_entity_exchanges(entity_type): FILE: src/zvt/contract/api.py function _storage_backend (line 25) | def _storage_backend(): function _route_registry (line 29) | def _route_registry(): function _get_db_name (line 37) | def _get_db_name(data_schema: DeclarativeMeta) -> str: function get_db_engine (line 49) | def get_db_engine( function _ensure_schema_providers_loaded (line 74) | def _ensure_schema_providers_loaded(): function get_providers (line 94) | def get_providers() -> List[str]: function get_schemas (line 99) | def get_schemas(provider: str) -> List[DeclarativeMeta]: function get_db_session (line 111) | def get_db_session(provider: str, db_name: str = None, data_schema: obje... function get_db_session_factory (line 143) | def get_db_session_factory(provider: str, db_name: str = None, data_sche... function get_entity_schema (line 161) | def get_entity_schema(entity_type: str) -> Type[TradableEntity]: function get_schema_by_name (line 171) | def get_schema_by_name(name: str) -> DeclarativeMeta: function get_schema_columns (line 183) | def get_schema_columns(schema: DeclarativeMeta) -> List[str]: function common_filter (line 193) | def common_filter( function del_data (line 240) | def del_data(data_schema: Type[Mixin], filters: List = None, provider=No... function get_by_id (line 260) | def get_by_id(data_schema, id: str, provider: str = None, session: Sessi... function _row2dict (line 283) | def _row2dict(row): function get_data (line 290) | def get_data( function data_exist (line 422) | def data_exist(session, schema, id): function get_data_count (line 434) | def get_data_count(data_schema, filters=None, provider=None, session=None): function get_group (line 456) | def get_group(provider, data_schema, column, group_func=func.count, sess... function decode_entity_id (line 467) | def decode_entity_id(entity_id: str): function get_entity_type (line 481) | def get_entity_type(entity_id: str): function get_entity_exchange (line 492) | def get_entity_exchange(entity_id: str): function get_entity_code (line 503) | def get_entity_code(entity_id: str): function df_to_db (line 514) | def df_to_db( function get_entities (line 602) | def get_entities( function get_entity_ids (line 684) | def get_entity_ids( FILE: src/zvt/contract/base_service.py class StatefulService (line 10) | class StatefulService(object): method __init__ (line 21) | def __init__(self) -> None: method clear_state_data (line 27) | def clear_state_data(self, entity_id=None): method decode_state (line 38) | def decode_state(self, state: str): method encode_state (line 48) | def encode_state(self, state: object): method state_object_hook (line 58) | def state_object_hook(self): method state_encoder (line 61) | def state_encoder(self): class OneStateService (line 65) | class OneStateService(StatefulService): method __init__ (line 70) | def __init__(self) -> None: method persist_state (line 78) | def persist_state(self): class EntityStateService (line 87) | class EntityStateService(StatefulService): method __init__ (line 92) | def __init__(self, entity_ids) -> None: method persist_state (line 105) | def persist_state(self, entity_id): FILE: src/zvt/contract/context.py class Registry (line 13) | class Registry(object): method __init__ (line 18) | def __init__(self) -> None: FILE: src/zvt/contract/data_type.py class Bean (line 4) | class Bean(object): method __init__ (line 5) | def __init__(self) -> None: method dict (line 9) | def dict(self): method from_dct (line 12) | def from_dct(self, dct: dict): FILE: src/zvt/contract/drawer.py class ChartType (line 20) | class ChartType(Enum): class Rect (line 45) | class Rect(Bean): method __init__ (line 50) | def __init__(self, x0=None, y0=None, x1=None, y1=None) -> None: class Draw (line 61) | class Draw(object): method draw_kline (line 62) | def draw_kline( method draw_line (line 76) | def draw_line( method draw_area (line 90) | def draw_area( method draw_scatter (line 104) | def draw_scatter( method draw_histogram (line 118) | def draw_histogram( method draw_bar (line 132) | def draw_bar(self, width=None, height=None, title=None, keep_ui_state=... method draw_pie (line 144) | def draw_pie(self, width=None, height=None, title=None, keep_ui_state=... method draw (line 156) | def draw( method default_layout (line 171) | def default_layout(self, main_chart=None, width=None, height=None, tit... class Drawable (line 231) | class Drawable(object): method drawer (line 232) | def drawer(self): method draw (line 246) | def draw( method drawer_main_df (line 268) | def drawer_main_df(self) -> Optional[pd.DataFrame]: method drawer_main_data (line 271) | def drawer_main_data(self) -> Optional[NormalData]: method drawer_factor_df_list (line 274) | def drawer_factor_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_factor_data_list (line 277) | def drawer_factor_data_list(self) -> Optional[List[NormalData]]: method drawer_sub_df_list (line 280) | def drawer_sub_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_sub_data_list (line 283) | def drawer_sub_data_list(self) -> Optional[List[NormalData]]: method drawer_annotation_df (line 286) | def drawer_annotation_df(self) -> Optional[pd.DataFrame]: method drawer_rects (line 289) | def drawer_rects(self) -> Optional[List[Rect]]: method drawer_sub_col_chart (line 292) | def drawer_sub_col_chart(self) -> Optional[dict]: class StackedDrawer (line 296) | class StackedDrawer(Draw): method __init__ (line 297) | def __init__(self, *drawers) -> None: method make_y_layout (line 302) | def make_y_layout(self, index, total, start_index=1, domain_range=(0, ... method draw (line 329) | def draw( class Drawer (line 407) | class Drawer(Draw): method __init__ (line 408) | def __init__( method add_factor_df (line 466) | def add_factor_df(self, df: pd.DataFrame): method add_factor_data (line 469) | def add_factor_data(self, data: NormalData): method add_sub_df (line 474) | def add_sub_df(self, df: pd.DataFrame): method add_sub_data (line 477) | def add_sub_data(self, data: NormalData): method has_sub_plot (line 482) | def has_sub_plot(self): method make_traces (line 485) | def make_traces(self, main_chart=ChartType.kline, sub_chart="bar", yax... method add_rects (line 611) | def add_rects(self, fig, yaxis="y"): method draw (line 625) | def draw( method draw_table (line 671) | def draw_table(self, width=None, height=None, title=None, keep_ui_stat... function annotations (line 696) | def annotations(annotation_df: pd.DataFrame, yref="y"): FILE: src/zvt/contract/factor.py class TargetType (line 22) | class TargetType(Enum): class Indicator (line 28) | class Indicator(object): method __init__ (line 29) | def __init__(self) -> None: class Transformer (line 34) | class Transformer(Indicator): method __init__ (line 35) | def __init__(self) -> None: method transform (line 38) | def transform(self, input_df: pd.DataFrame) -> pd.DataFrame: method transform_one (line 64) | def transform_one(self, entity_id: str, df: pd.DataFrame) -> pd.DataFr... class Accumulator (line 82) | class Accumulator(Indicator): method __init__ (line 83) | def __init__(self, acc_window: int = 1) -> None: method acc (line 91) | def acc(self, input_df: pd.DataFrame, acc_df: pd.DataFrame, states: di... method acc_one (line 143) | def acc_one(self, entity_id, df: pd.DataFrame, acc_df: pd.DataFrame, s... class Scorer (line 163) | class Scorer(object): method __init__ (line 164) | def __init__(self) -> None: method score (line 167) | def score(self, input_df: pd.DataFrame) -> pd.DataFrame: function _register_class (line 176) | def _register_class(target_class): class FactorMeta (line 181) | class FactorMeta(type): method __new__ (line 182) | def __new__(meta, name, bases, class_dict): class Factor (line 188) | class Factor(DataReader, EntityStateService, DataListener): method __init__ (line 199) | def __init__( method load_data (line 339) | def load_data(self): method load_factor (line 344) | def load_factor(self): method decode_factor_df (line 363) | def decode_factor_df(self, df): method factor_col_map_object_hook (line 372) | def factor_col_map_object_hook(self) -> dict: method clear_state_data (line 379) | def clear_state_data(self, entity_id=None): method pre_compute (line 386) | def pre_compute(self): method do_compute (line 390) | def do_compute(self): method compute_factor (line 399) | def compute_factor(self): method compute_result (line 414) | def compute_result(self): method after_compute (line 425) | def after_compute(self): method compute (line 434) | def compute(self): method drawer_main_df (line 451) | def drawer_main_df(self) -> Optional[pd.DataFrame]: method drawer_factor_df_list (line 456) | def drawer_factor_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_sub_df_list (line 470) | def drawer_sub_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_annotation_df (line 475) | def drawer_annotation_df(self) -> Optional[pd.DataFrame]: method fill_gap (line 499) | def fill_gap(self): method add_entities (line 509) | def add_entities(self, entity_ids): method on_data_loaded (line 551) | def on_data_loaded(self, data: pd.DataFrame): method on_data_changed (line 554) | def on_data_changed(self, data: pd.DataFrame): method on_entity_data_changed (line 562) | def on_entity_data_changed(self, entity, added_data: pd.DataFrame): method persist_factor (line 571) | def persist_factor(self): method get_filter_df (line 598) | def get_filter_df(self): method get_score_df (line 602) | def get_score_df(self): method get_trading_signal_df (line 606) | def get_trading_signal_df(self): method get_targets (line 612) | def get_targets( class ScoreFactor (line 667) | class ScoreFactor(Factor): method compute_result (line 670) | def compute_result(self): FILE: src/zvt/contract/model.py class CustomModel (line 7) | class CustomModel(BaseModel): class MixinModel (line 11) | class MixinModel(CustomModel): FILE: src/zvt/contract/normal_data.py class NormalData (line 6) | class NormalData(object): method __init__ (line 9) | def __init__(self, df, category_field="entity_id", time_field="timesta... method normalize (line 21) | def normalize(self): method empty (line 43) | def empty(self): FILE: src/zvt/contract/reader.py class DataListener (line 16) | class DataListener(object): method on_data_loaded (line 17) | def on_data_loaded(self, data: pd.DataFrame) -> object: method on_data_changed (line 24) | def on_data_changed(self, data: pd.DataFrame) -> object: method on_entity_data_changed (line 31) | def on_entity_data_changed(self, entity: str, added_data: pd.DataFrame... class DataReader (line 40) | class DataReader(Drawable): method __init__ (line 43) | def __init__( method load_window_df (line 113) | def load_window_df(self, provider, data_schema, window): method load_data (line 132) | def load_data(self): method move_on (line 170) | def move_on(self, to_timestamp: Union[str, pd.Timestamp] = None, timeo... method register_data_listener (line 255) | def register_data_listener(self, listener): method deregister_data_listener (line 263) | def deregister_data_listener(self, listener): method empty (line 267) | def empty(self): method drawer_main_df (line 270) | def drawer_main_df(self) -> Optional[pd.DataFrame]: FILE: src/zvt/contract/recorder.py function _register_kdata_schemas_for_recorder (line 29) | def _register_kdata_schemas_for_recorder(cls): class Meta (line 71) | class Meta(type): method __new__ (line 72) | def __new__(meta, name, bases, class_dict): class Recorder (line 91) | class Recorder(OneStateService, metaclass=Meta): method __init__ (line 103) | def __init__(self, force_update: bool = False, sleeping_time: int = 10... method run (line 133) | def run(self): method sleep (line 136) | def sleep(self, seconds=None): class EntityEventRecorder (line 147) | class EntityEventRecorder(Recorder): method __init__ (line 152) | def __init__( method init_entities (line 208) | def init_entities(self): class TimeSeriesDataRecorder (line 245) | class TimeSeriesDataRecorder(EntityEventRecorder): method __init__ (line 248) | def __init__( method get_latest_saved_record (line 287) | def get_latest_saved_record(self, entity): method evaluate_start_end_size_timestamps (line 303) | def evaluate_start_end_size_timestamps(self, entity): method get_data_map (line 329) | def get_data_map(self): method record (line 336) | def record(self, entity, start, end, size, timestamps): method get_evaluated_time_field (line 353) | def get_evaluated_time_field(self): method get_original_time_field (line 360) | def get_original_time_field(self): method generate_domain_id (line 363) | def generate_domain_id(self, entity, original_data, time_fmt=TIME_FORM... method generate_domain (line 379) | def generate_domain(self, entity, original_data): method persist (line 433) | def persist(self, entity, domain_list): method on_finish (line 461) | def on_finish(self): method on_finish_entity (line 473) | def on_finish_entity(self, entity): method run (line 476) | def run(self): class FixedCycleDataRecorder (line 612) | class FixedCycleDataRecorder(TimeSeriesDataRecorder): method __init__ (line 613) | def __init__( method get_latest_saved_record (line 656) | def get_latest_saved_record(self, entity): method evaluate_start_end_size_timestamps (line 680) | def evaluate_start_end_size_timestamps(self, entity): class TimestampsDataRecorder (line 712) | class TimestampsDataRecorder(TimeSeriesDataRecorder): method __init__ (line 713) | def __init__( method init_timestamps (line 748) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method evaluate_start_end_size_timestamps (line 751) | def evaluate_start_end_size_timestamps(self, entity): FILE: src/zvt/contract/register.py function ensure_schema_tables_and_indexes (line 21) | def ensure_schema_tables_and_indexes(engine, schema_base: DeclarativeMet... function register_entity (line 69) | def register_entity(entity_type: str = None): function register_schema (line 95) | def register_schema( FILE: src/zvt/contract/route_registry.py function _get_db_name_from_context (line 10) | def _get_db_name_from_context(data_schema) -> Optional[str]: function _get_storage_config (line 19) | def _get_storage_config() -> dict: class RouteRegistry (line 28) | class RouteRegistry: method __init__ (line 35) | def __init__(self) -> None: method register_route (line 38) | def register_route(self, provider: str, db_name: str, storage_id: str)... method _get_route_overrides_from_config (line 43) | def _get_route_overrides_from_config(self) -> dict: method get_storage_id (line 50) | def get_storage_id(self, provider: str, db_name: str) -> str: method get_storage_id_for_schema (line 61) | def get_storage_id_for_schema( function get_route_registry (line 82) | def get_route_registry() -> RouteRegistry: function set_route_registry (line 90) | def set_route_registry(registry: RouteRegistry): FILE: src/zvt/contract/schema.py function _get_schema_providers (line 15) | def _get_schema_providers() -> Dict[str, List[str]]: class Mixin (line 34) | class Mixin(object): method help (line 52) | def help(cls): method important_cols (line 56) | def important_cols(cls): method time_field (line 60) | def time_field(cls): method register_recorder_cls (line 64) | def register_recorder_cls(cls, provider, recorder_cls): method register_provider (line 79) | def register_provider(cls, provider): method is_internal (line 87) | def is_internal(cls) -> bool: method get_providers (line 92) | def get_providers(cls) -> List[str]: method test_data_correctness (line 108) | def test_data_correctness(cls, provider, data_samples): method get_by_id (line 119) | def get_by_id(cls, id, provider_index: int = 0, provider: str = None): method query_data (line 127) | def query_data( method get_storages (line 206) | def get_storages( method record_data (line 228) | def record_data( class NormalMixin (line 326) | class NormalMixin(Mixin): class Entity (line 333) | class Entity(Mixin): class TradableEntity (line 348) | class TradableEntity(Entity): method get_timezone (line 354) | def get_timezone(cls): method get_trading_dates (line 364) | def get_trading_dates(cls, start_date=None, end_date=None): method get_trading_intervals (line 375) | def get_trading_intervals(cls, include_bidding_time=False): method in_real_trading_time (line 387) | def in_real_trading_time(cls, timestamp=None, include_bidding_time=True): method before_trading_time (line 402) | def before_trading_time(cls, timestamp=None): method after_trading_time (line 415) | def after_trading_time(cls, timestamp=None): method in_trading_time (line 428) | def in_trading_time(cls, timestamp=None): method get_close_hour_and_minute (line 446) | def get_close_hour_and_minute(cls): method get_interval_timestamps (line 451) | def get_interval_timestamps(cls, start_date, end_date, level: Interval... method is_open_timestamp (line 481) | def is_open_timestamp(cls, timestamp): method is_close_timestamp (line 489) | def is_close_timestamp(cls, timestamp): method is_finished_kdata_timestamp (line 497) | def is_finished_kdata_timestamp(cls, timestamp: pd.Timestamp, level: I... method could_short (line 515) | def could_short(cls): method get_trading_t (line 524) | def get_trading_t(cls): class ActorEntity (line 534) | class ActorEntity(Entity): class NormalEntityMixin (line 538) | class NormalEntityMixin(TradableEntity): class Portfolio (line 545) | class Portfolio(TradableEntity): method get_stocks (line 551) | def get_stocks( class PortfolioStock (line 580) | class PortfolioStock(Mixin): class PortfolioStockHistory (line 596) | class PortfolioStockHistory(PortfolioStock): class TradableMeetActor (line 613) | class TradableMeetActor(Mixin): class ActorMeetTradable (line 626) | class ActorMeetTradable(Mixin): FILE: src/zvt/contract/storage.py function _default_data_path (line 20) | def _default_data_path() -> str: function _get_storage_config (line 29) | def _get_storage_config() -> dict: class StorageBackend (line 38) | class StorageBackend(ABC): method get_engine (line 44) | def get_engine(self, storage_id: str, data_path: Optional[str] = None)... method get_session_factory (line 54) | def get_session_factory(self, storage_id: str, data_path: Optional[str... class SqliteStorageBackend (line 65) | class SqliteStorageBackend(StorageBackend): method __init__ (line 73) | def __init__(self, path_template: Optional[str] = None, base_path: Opt... method _get_path_template (line 83) | def _get_path_template(self) -> Optional[str]: method _get_base_path (line 90) | def _get_base_path(self, data_path: Optional[str]) -> str: method _storage_id_to_path (line 102) | def _storage_id_to_path(self, storage_id: str, data_path: str) -> str: method get_engine (line 121) | def get_engine(self, storage_id: str, data_path: Optional[str] = None)... method get_session_factory (line 133) | def get_session_factory(self, storage_id: str, data_path: Optional[str... function get_storage_backend (line 145) | def get_storage_backend() -> StorageBackend: function set_storage_backend (line 153) | def set_storage_backend(backend: StorageBackend): FILE: src/zvt/contract/utils.py function is_in_same_interval (line 10) | def is_in_same_interval(t1: pd.Timestamp, t2: pd.Timestamp, level: Inter... function evaluate_size_from_timestamp (line 21) | def evaluate_size_from_timestamp( function next_timestamp_on_level (line 61) | def next_timestamp_on_level(current_timestamp: pd.Timestamp, level: Inte... function is_finished_kdata_timestamp (line 66) | def is_finished_kdata_timestamp(timestamp, level: IntervalLevel): FILE: src/zvt/contract/zvt_info.py class StateMixin (line 11) | class StateMixin(Mixin): class RecorderState (line 19) | class RecorderState(ZvtInfoBase, StateMixin): class TaggerState (line 27) | class TaggerState(ZvtInfoBase, StateMixin): class FactorState (line 35) | class FactorState(ZvtInfoBase, StateMixin): FILE: src/zvt/domain/__init__.py class BlockCategory (line 5) | class BlockCategory(enum.Enum): class IndexCategory (line 14) | class IndexCategory(enum.Enum): class ReportPeriod (line 48) | class ReportPeriod(enum.Enum): class CompanyType (line 59) | class CompanyType(enum.Enum): function get_future_name (line 140) | def get_future_name(code): FILE: src/zvt/domain/actor/actor_meta.py class ActorMeta (line 12) | class ActorMeta(ActorMetaBase, ActorEntity): FILE: src/zvt/domain/actor/stock_actor.py class StockTopTenFreeHolder (line 11) | class StockTopTenFreeHolder(StockActorBase, TradableMeetActor): class StockTopTenHolder (line 25) | class StockTopTenHolder(StockActorBase, TradableMeetActor): class StockInstitutionalInvestorHolder (line 39) | class StockInstitutionalInvestorHolder(StockActorBase, TradableMeetActor): class StockActorSummary (line 53) | class StockActorSummary(StockActorBase, TradableMeetActor): FILE: src/zvt/domain/emotion/emotion.py class LimitUpInfo (line 11) | class LimitUpInfo(EmotionBase, Mixin): class LimitDownInfo (line 46) | class LimitDownInfo(EmotionBase, Mixin): class Emotion (line 63) | class Emotion(EmotionBase, Mixin): FILE: src/zvt/domain/fundamental/dividend_financing.py class DividendFinancing (line 11) | class DividendFinancing(DividendFinancingBase, Mixin): class DividendDetail (line 32) | class DividendDetail(DividendFinancingBase, Mixin): class SpoDetail (line 49) | class SpoDetail(DividendFinancingBase, Mixin): class RightsIssueDetail (line 60) | class RightsIssueDetail(DividendFinancingBase, Mixin): FILE: src/zvt/domain/fundamental/finance.py class BalanceSheet (line 11) | class BalanceSheet(FinanceBase, Mixin): method important_cols (line 13) | def important_cols(cls): class IncomeStatement (line 460) | class IncomeStatement(FinanceBase, Mixin): method important_cols (line 462) | def important_cols(cls): class CashFlowStatement (line 629) | class CashFlowStatement(FinanceBase, Mixin): method important_cols (line 631) | def important_cols(cls): class FinanceFactor (line 831) | class FinanceFactor(FinanceBase, Mixin): method important_cols (line 833) | def important_cols(cls): FILE: src/zvt/domain/fundamental/trading.py class ManagerTrading (line 11) | class ManagerTrading(TradingBase, Mixin): class HolderTrading (line 37) | class HolderTrading(TradingBase, Mixin): class BigDealTrading (line 53) | class BigDealTrading(TradingBase, Mixin): class MarginTrading (line 71) | class MarginTrading(TradingBase, Mixin): class DragonAndTiger (line 91) | class DragonAndTiger(TradingBase, Mixin): FILE: src/zvt/domain/fundamental/valuation.py class StockValuation (line 11) | class StockValuation(ValuationBase, Mixin): class EtfValuation (line 38) | class EtfValuation(ValuationBase, Mixin): FILE: src/zvt/domain/macro/macro.py class Economy (line 11) | class Economy(MacroBase, Mixin): FILE: src/zvt/domain/macro/monetary.py class TreasuryYield (line 11) | class TreasuryYield(MonetaryBase, Mixin): FILE: src/zvt/domain/meta/block_meta.py class Block (line 14) | class Block(BlockMetaBase, Portfolio): class BlockStock (line 21) | class BlockStock(BlockMetaBase, PortfolioStock): FILE: src/zvt/domain/meta/blockus_meta.py class Blockus (line 14) | class Blockus(BlockusMetaBase, Portfolio): class BlockusStockus (line 21) | class BlockusStockus(BlockusMetaBase, PortfolioStock): FILE: src/zvt/domain/meta/cbond_meta.py class CBond (line 13) | class CBond(CBondBase, TradableEntity): FILE: src/zvt/domain/meta/country_meta.py class Country (line 13) | class Country(CountryMetaBase, TradableEntity): FILE: src/zvt/domain/meta/currency_meta.py class Currency (line 12) | class Currency(CurrencyMetaBase, TradableEntity): FILE: src/zvt/domain/meta/etf_meta.py class Etf (line 15) | class Etf(EtfMetaBase, Portfolio): method get_stocks (line 20) | def get_stocks(cls, code=None, codes=None, ids=None, timestamp=now_pd_... class EtfStock (line 26) | class EtfStock(EtfMetaBase, PortfolioStockHistory): FILE: src/zvt/domain/meta/fund_meta.py class Fund (line 14) | class Fund(FundMetaBase, Portfolio): method get_stocks (line 47) | def get_stocks(cls, code=None, codes=None, ids=None, timestamp=now_pd_... class FundStock (line 53) | class FundStock(FundMetaBase, PortfolioStockHistory): FILE: src/zvt/domain/meta/future_meta.py class Future (line 11) | class Future(FutureMetaBase, TradableEntity): FILE: src/zvt/domain/meta/index_meta.py class Index (line 14) | class Index(IndexMetaBase, Portfolio): class IndexStock (line 26) | class IndexStock(IndexMetaBase, PortfolioStockHistory): FILE: src/zvt/domain/meta/indexhk_meta.py class Indexhk (line 14) | class Indexhk(IndexhkMetaBase, Portfolio): FILE: src/zvt/domain/meta/indexus_meta.py class Indexus (line 14) | class Indexus(IndexusMetaBase, Portfolio): FILE: src/zvt/domain/meta/stock_meta.py class Stock (line 14) | class Stock(StockMetaBase, TradableEntity): class StockDetail (line 32) | class StockDetail(StockMetaBase, TradableEntity): FILE: src/zvt/domain/meta/stockhk_meta.py class Stockhk (line 13) | class Stockhk(StockhkMetaBase, TradableEntity): method get_trading_t (line 25) | def get_trading_t(cls): method get_trading_intervals (line 35) | def get_trading_intervals(cls, include_bidding_time=False): FILE: src/zvt/domain/meta/stockus_meta.py class Stockus (line 14) | class Stockus(StockusMetaBase, TradableEntity): method get_timezone (line 25) | def get_timezone(cls): method get_trading_t (line 29) | def get_trading_t(cls): method get_trading_intervals (line 39) | def get_trading_intervals(cls, include_bidding_time=False): FILE: src/zvt/domain/misc/holder.py class HkHolder (line 11) | class HkHolder(HolderBase, Mixin): class TopTenTradableHolder (line 29) | class TopTenTradableHolder(HolderBase, Mixin): class TopTenHolder (line 52) | class TopTenHolder(HolderBase, Mixin): class InstitutionalInvestorHolder (line 75) | class InstitutionalInvestorHolder(HolderBase, Mixin): FILE: src/zvt/domain/misc/money_flow.py class BlockMoneyFlow (line 14) | class BlockMoneyFlow(MoneyFlowBase, Mixin): class StockMoneyFlow (line 48) | class StockMoneyFlow(MoneyFlowBase, Mixin): class IndexMoneyFlow (line 82) | class IndexMoneyFlow(MoneyFlowBase, Mixin): FILE: src/zvt/domain/misc/overall.py class StockSummary (line 14) | class StockSummary(OverallBase, Mixin): class MarginTradingSummary (line 33) | class MarginTradingSummary(OverallBase, Mixin): class CrossMarketSummary (line 56) | class CrossMarketSummary(OverallBase, Mixin): FILE: src/zvt/domain/misc/stock_news.py class StockNews (line 11) | class StockNews(NewsBase, Mixin): class StockHotTopic (line 28) | class StockHotTopic(NewsBase, Mixin): FILE: src/zvt/domain/quotes/__init__.py class KdataCommon (line 7) | class KdataCommon(Mixin): class TickCommon (line 33) | class TickCommon(Mixin): class BlockKdataCommon (line 60) | class BlockKdataCommon(KdataCommon): class IndexKdataCommon (line 64) | class IndexKdataCommon(KdataCommon): class IndexhkKdataCommon (line 68) | class IndexhkKdataCommon(KdataCommon): class IndexusKdataCommon (line 72) | class IndexusKdataCommon(KdataCommon): class EtfKdataCommon (line 76) | class EtfKdataCommon(KdataCommon): class StockKdataCommon (line 83) | class StockKdataCommon(KdataCommon): class StockusKdataCommon (line 90) | class StockusKdataCommon(KdataCommon): class StockhkKdataCommon (line 97) | class StockhkKdataCommon(KdataCommon): class FutureKdataCommon (line 102) | class FutureKdataCommon(KdataCommon): class CurrencyKdataCommon (line 113) | class CurrencyKdataCommon(KdataCommon): FILE: src/zvt/domain/quotes/block/block_1d_kdata.py class Block1dKdata (line 11) | class Block1dKdata(KdataBase, BlockKdataCommon): FILE: src/zvt/domain/quotes/block/block_1mon_kdata.py class Block1monKdata (line 11) | class Block1monKdata(KdataBase, BlockKdataCommon): FILE: src/zvt/domain/quotes/block/block_1wk_kdata.py class Block1wkKdata (line 11) | class Block1wkKdata(KdataBase, BlockKdataCommon): FILE: src/zvt/domain/quotes/currency/currency_1d_kdata.py class Currency1dKdata (line 11) | class Currency1dKdata(KdataBase, CurrencyKdataCommon): FILE: src/zvt/domain/quotes/etf/etf_1d_kdata.py class Etf1dKdata (line 11) | class Etf1dKdata(KdataBase, EtfKdataCommon): FILE: src/zvt/domain/quotes/future/future_1d_kdata.py class Future1dKdata (line 11) | class Future1dKdata(KdataBase, FutureKdataCommon): FILE: src/zvt/domain/quotes/index/index_1d_kdata.py class Index1dKdata (line 11) | class Index1dKdata(KdataBase, IndexKdataCommon): FILE: src/zvt/domain/quotes/index/index_1m_kdata.py class Index1mKdata (line 12) | class Index1mKdata(KdataBase, IndexKdataCommon, TradableEntity): FILE: src/zvt/domain/quotes/index/index_1wk_kdata.py class Index1wkKdata (line 11) | class Index1wkKdata(KdataBase, IndexKdataCommon): FILE: src/zvt/domain/quotes/indexhk/indexhk_1d_kdata.py class Indexhk1dKdata (line 11) | class Indexhk1dKdata(KdataBase, IndexhkKdataCommon): FILE: src/zvt/domain/quotes/indexus/indexus_1d_kdata.py class Indexus1dKdata (line 11) | class Indexus1dKdata(KdataBase, IndexusKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_15m_hfq_kdata.py class Stock15mHfqKdata (line 11) | class Stock15mHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_15m_kdata.py class Stock15mKdata (line 11) | class Stock15mKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1d_hfq_kdata.py class Stock1dHfqKdata (line 11) | class Stock1dHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1d_kdata.py class Stock1dKdata (line 11) | class Stock1dKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1h_hfq_kdata.py class Stock1hHfqKdata (line 11) | class Stock1hHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1h_kdata.py class Stock1hKdata (line 11) | class Stock1hKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1m_hfq_kdata.py class Stock1mHfqKdata (line 11) | class Stock1mHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1m_kdata.py class Stock1mKdata (line 11) | class Stock1mKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1mon_hfq_kdata.py class Stock1monHfqKdata (line 11) | class Stock1monHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1mon_kdata.py class Stock1monKdata (line 11) | class Stock1monKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1wk_hfq_kdata.py class Stock1wkHfqKdata (line 11) | class Stock1wkHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_1wk_kdata.py class Stock1wkKdata (line 11) | class Stock1wkKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_30m_hfq_kdata.py class Stock30mHfqKdata (line 11) | class Stock30mHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_30m_kdata.py class Stock30mKdata (line 11) | class Stock30mKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_4h_hfq_kdata.py class Stock4hHfqKdata (line 11) | class Stock4hHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_4h_kdata.py class Stock4hKdata (line 11) | class Stock4hKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_5m_hfq_kdata.py class Stock5mHfqKdata (line 11) | class Stock5mHfqKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_5m_kdata.py class Stock5mKdata (line 11) | class Stock5mKdata(KdataBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stock/stock_quote.py class StockQuote (line 12) | class StockQuote(StockQuoteBase, StockKdataCommon): class Stock1mQuote (line 32) | class Stock1mQuote(StockQuoteBase, Mixin): FILE: src/zvt/domain/quotes/stock/stock_quote_log.py class StockQuoteLog (line 11) | class StockQuoteLog(StockQuoteLogBase, StockKdataCommon): FILE: src/zvt/domain/quotes/stockhk/stockhk_1d_hfq_kdata.py class Stockhk1dHfqKdata (line 11) | class Stockhk1dHfqKdata(KdataBase, StockhkKdataCommon): FILE: src/zvt/domain/quotes/stockhk/stockhk_1d_kdata.py class Stockhk1dKdata (line 11) | class Stockhk1dKdata(KdataBase, StockhkKdataCommon): FILE: src/zvt/domain/quotes/stockhk/stockhk_quote.py class StockhkQuote (line 12) | class StockhkQuote(StockhkQuoteBase, StockhkKdataCommon): class Stockhk1mQuote (line 36) | class Stockhk1mQuote(StockhkQuoteBase, Mixin): FILE: src/zvt/domain/quotes/stockus/stockus_1d_hfq_kdata.py class Stockus1dHfqKdata (line 11) | class Stockus1dHfqKdata(KdataBase, StockusKdataCommon): FILE: src/zvt/domain/quotes/stockus/stockus_1d_kdata.py class Stockus1dKdata (line 11) | class Stockus1dKdata(KdataBase, StockusKdataCommon): FILE: src/zvt/domain/quotes/stockus/stockus_quote.py class StockusQuote (line 12) | class StockusQuote(StockusQuoteBase, StockusKdataCommon): class Stockus1mQuote (line 36) | class Stockus1mQuote(StockusQuoteBase, Mixin): FILE: src/zvt/domain/quotes/trade_day.py class StockTradeDay (line 10) | class StockTradeDay(TradeDayBase, Mixin): FILE: src/zvt/factors/algorithm.py function ma (line 9) | def ma(s: pd.Series, window: int = 5) -> pd.Series: function ema (line 19) | def ema(s: pd.Series, window: int = 12) -> pd.Series: function live_or_dead (line 23) | def live_or_dead(x): function macd (line 30) | def macd( function point_in_range (line 75) | def point_in_range(point: float, range: tuple): function intersect_ranges (line 85) | def intersect_ranges(range_list): function combine (line 95) | def combine(range_a, range_b): function distance (line 101) | def distance(range_a, range_b, use_max=False): function intersect (line 117) | def intersect(range_a, range_b): class RankScorer (line 141) | class RankScorer(Scorer): method __init__ (line 142) | def __init__(self, ascending=True) -> None: method score (line 145) | def score(self, input_df) -> pd.DataFrame: class MaTransformer (line 150) | class MaTransformer(Transformer): method __init__ (line 151) | def __init__(self, windows=None, cal_change_pct=False) -> None: method transform (line 158) | def transform(self, input_df: pd.DataFrame) -> pd.DataFrame: method transform_one (line 172) | def transform_one(self, entity_id, df: pd.DataFrame) -> pd.DataFrame: class IntersectTransformer (line 193) | class IntersectTransformer(Transformer): method __init__ (line 194) | def __init__(self, kdata_overlap=0) -> None: method transform (line 198) | def transform(self, input_df) -> pd.DataFrame: class MaAndVolumeTransformer (line 224) | class MaAndVolumeTransformer(Transformer): method __init__ (line 225) | def __init__(self, windows=None, vol_windows=None, kdata_overlap=0) ->... method transform (line 235) | def transform(self, input_df) -> pd.DataFrame: class MacdTransformer (line 269) | class MacdTransformer(Transformer): method __init__ (line 270) | def __init__(self, slow=26, fast=12, n=9, normal=False, count_live_dea... method transform (line 282) | def transform(self, input_df) -> pd.DataFrame: method transform_one (line 298) | def transform_one(self, entity_id, df: pd.DataFrame) -> pd.DataFrame: class QuantileScorer (line 311) | class QuantileScorer(Scorer): method __init__ (line 312) | def __init__(self, score_levels=[0, 0.1, 0.3, 0.5, 0.7, 0.9, 1.0]) -> ... method score (line 315) | def score(self, input_df): FILE: src/zvt/factors/factor_models.py class FactorRequestModel (line 12) | class FactorRequestModel(BaseModel): class TradingSignalModel (line 20) | class TradingSignalModel(BaseModel): class FactorResultModel (line 31) | class FactorResultModel(BaseModel): FILE: src/zvt/factors/factor_service.py function query_factor_result (line 11) | def query_factor_result(factor_request_model: FactorRequestModel): FILE: src/zvt/factors/fundamental/finance_factor.py class FinanceBaseFactor (line 13) | class FinanceBaseFactor(Factor): method __init__ (line 14) | def __init__( class GoodCompanyFactor (line 77) | class GoodCompanyFactor(FinanceBaseFactor): method __init__ (line 78) | def __init__( method compute_factor (line 169) | def compute_factor(self): method compute_result (line 207) | def compute_result(self): FILE: src/zvt/factors/ma/domain/common.py class MaStatsFactorCommon (line 7) | class MaStatsFactorCommon(Mixin): FILE: src/zvt/factors/ma/domain/stock_1d_ma_factor.py class Stock1dMaFactor (line 11) | class Stock1dMaFactor(Stock1dMaFactorBase, Mixin): FILE: src/zvt/factors/ma/domain/stock_1d_ma_stats_factor.py class Stock1dMaStatsFactor (line 10) | class Stock1dMaStatsFactor(Stock1dMaStatsFactorBase, MaStatsFactorCommon): FILE: src/zvt/factors/ma/ma_factor.py function get_ma_factor_schema (line 15) | def get_ma_factor_schema(entity_type: str, level: Union[IntervalLevel, s... class MaFactor (line 24) | class MaFactor(TechnicalFactor): method __init__ (line 25) | def __init__( class CrossMaFactor (line 93) | class CrossMaFactor(MaFactor): method compute_result (line 94) | def compute_result(self): class VolumeUpMaFactor (line 107) | class VolumeUpMaFactor(TechnicalFactor): method __init__ (line 108) | def __init__( method compute_result (line 187) | def compute_result(self): class CrossMaVolumeFactor (line 233) | class CrossMaVolumeFactor(VolumeUpMaFactor): method __init__ (line 234) | def __init__( method compute_result (line 304) | def compute_result(self): FILE: src/zvt/factors/ma/ma_stats_factor.py function get_ma_stats_factor_schema (line 15) | def get_ma_stats_factor_schema(entity_type: str, level: Union[IntervalLe... class MaStatsAccumulator (line 24) | class MaStatsAccumulator(Accumulator): method __init__ (line 25) | def __init__(self, acc_window: int = 250, windows=None, vol_windows=No... method acc_one (line 30) | def acc_one(self, entity_id, df: pd.DataFrame, acc_df: pd.DataFrame, s... class MaStatsFactor (line 71) | class MaStatsFactor(TechnicalFactor): method __init__ (line 72) | def __init__( class TFactor (line 147) | class TFactor(MaStatsFactor): method __init__ (line 148) | def __init__( method drawer_sub_df_list (line 206) | def drawer_sub_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_factor_df_list (line 209) | def drawer_factor_df_list(self) -> Optional[List[pd.DataFrame]]: FILE: src/zvt/factors/ma/top_bottom_factor.py class TopBottomTransformer (line 17) | class TopBottomTransformer(Transformer): method __init__ (line 18) | def __init__(self, window=20) -> None: method transform (line 22) | def transform(self, input_df) -> pd.DataFrame: class TopBottomFactor (line 34) | class TopBottomFactor(TechnicalFactor): method __init__ (line 35) | def __init__( FILE: src/zvt/factors/macd/macd_factor.py class MacdFactor (line 11) | class MacdFactor(TechnicalFactor): method drawer_factor_df_list (line 14) | def drawer_factor_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_sub_df_list (line 17) | def drawer_sub_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_sub_col_chart (line 20) | def drawer_sub_col_chart(self) -> Optional[dict]: class BullFactor (line 24) | class BullFactor(MacdFactor): method compute_result (line 25) | def compute_result(self): class KeepBullFactor (line 30) | class KeepBullFactor(BullFactor): method compute_result (line 33) | def compute_result(self): class LiveOrDeadFactor (line 46) | class LiveOrDeadFactor(MacdFactor): method compute_result (line 49) | def compute_result(self): class GoldCrossFactor (line 56) | class GoldCrossFactor(MacdFactor): method compute_result (line 57) | def compute_result(self): FILE: src/zvt/factors/shape.py class Direction (line 17) | class Direction(Enum): method opposite (line 21) | def opposite(self): class Fenxing (line 28) | class Fenxing(Bean): method __init__ (line 29) | def __init__(self, state, kdata, index) -> None: function fenxing_power (line 35) | def fenxing_power(left, middle, right, fenxing="tmp_ding"): function a_include_b (line 48) | def a_include_b(a: pd.Series, b: pd.Series) -> bool: function get_direction (line 59) | def get_direction(kdata, pre_kdata, current=Direction.up) -> Direction: function is_up (line 68) | def is_up(kdata, pre_kdata): function is_down (line 72) | def is_down(kdata, pre_kdata): function handle_first_fenxing (line 76) | def handle_first_fenxing(one_df, step=11): function handle_zhongshu (line 126) | def handle_zhongshu(points: list, acc_df, end_index, zhongshu_col="zhong... function handle_duan (line 167) | def handle_duan(fenxing_list: List[Fenxing], pre_duan_state="yi"): function handle_including (line 203) | def handle_including(one_df, index, kdata, pre_index, pre_kdata, tmp_dir... class FactorStateEncoder (line 220) | class FactorStateEncoder(json.JSONEncoder): method default (line 221) | def default(self, object): function decode_rect (line 234) | def decode_rect(dct): function decode_fenxing (line 238) | def decode_fenxing(dct): FILE: src/zvt/factors/target_selector.py class TradeType (line 16) | class TradeType(Enum): class SelectMode (line 25) | class SelectMode(Enum): class TargetSelector (line 30) | class TargetSelector(object): method __init__ (line 31) | def __init__( method init_factors (line 81) | def init_factors(self, entity_ids, entity_schema, exchanges, codes, st... method add_factor (line 84) | def add_factor(self, factor: Factor): method check_factor (line 89) | def check_factor(self, factor: Factor): method move_on (line 92) | def move_on(self, to_timestamp=None, kdata_use_begin_time=False, timeo... method run (line 99) | def run(self): method get_targets (line 131) | def get_targets(self, timestamp, trade_type: TradeType = TradeType.ope... method get_targets_between (line 147) | def get_targets_between( method get_open_long_targets (line 164) | def get_open_long_targets(self, timestamp): method get_open_short_targets (line 167) | def get_open_short_targets(self, timestamp): method generate_targets (line 171) | def generate_targets(self): method get_result_df (line 206) | def get_result_df(self): method normalize_result_df (line 209) | def normalize_result_df(self, df): FILE: src/zvt/factors/technical_factor.py class TechnicalFactor (line 11) | class TechnicalFactor(Factor, metaclass=FactorMeta): method __init__ (line 12) | def __init__( method drawer_sub_df_list (line 100) | def drawer_sub_df_list(self) -> Optional[List[pd.DataFrame]]: FILE: src/zvt/factors/top_stocks.py class TopStocks (line 38) | class TopStocks(TopStocksBase, Mixin): function compute_vol_up_stocks (line 60) | def compute_vol_up_stocks(target_date, provider="em", adjust_type=Adjust... function compute_top_stocks (line 112) | def compute_top_stocks(start_date, entity_type="stock", provider="em", f... function get_top_stocks (line 217) | def get_top_stocks(target_date, entity_type="stock", return_type="short"): FILE: src/zvt/factors/transformers.py function _cal_state (line 12) | def _cal_state(s, df, pre, interval, col): class CrossMaTransformer (line 26) | class CrossMaTransformer(MaTransformer): method __init__ (line 27) | def __init__(self, windows=None, cal_change_pct=False) -> None: method transform (line 30) | def transform(self, input_df: pd.DataFrame) -> pd.DataFrame: class SpecificTransformer (line 42) | class SpecificTransformer(Transformer): method __init__ (line 43) | def __init__(self, buy_timestamp, sell_timestamp) -> None: method transform (line 47) | def transform(self, input_df: pd.DataFrame) -> pd.DataFrame: class FallBelowTransformer (line 55) | class FallBelowTransformer(Transformer): method __init__ (line 56) | def __init__(self, window=10, interval=3) -> None: method transform (line 61) | def transform(self, input_df: pd.DataFrame) -> pd.DataFrame: FILE: src/zvt/factors/zen/base_factor.py class FactorStateEncoder (line 38) | class FactorStateEncoder(json.JSONEncoder): method default (line 39) | def default(self, object): function get_zen_factor_schema (line 52) | def get_zen_factor_schema(entity_type: str, level: Union[IntervalLevel, ... class ZenState (line 64) | class ZenState(Bean): method __init__ (line 65) | def __init__(self, state: dict = None) -> None: function handle_zhongshu (line 105) | def handle_zhongshu( class ZenAccumulator (line 152) | class ZenAccumulator(Accumulator): method __init__ (line 153) | def __init__(self, acc_window: int = 1) -> None: method acc_one (line 186) | def acc_one(self, entity_id, df: pd.DataFrame, acc_df: pd.DataFrame, s... class ZenFactor (line 619) | class ZenFactor(TechnicalFactor): method __init__ (line 622) | def __init__( method factor_col_map_object_hook (line 683) | def factor_col_map_object_hook(self) -> dict: method state_encoder (line 690) | def state_encoder(self): method drawer_factor_df_list (line 693) | def drawer_factor_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_rects (line 698) | def drawer_rects(self) -> List[Rect]: method drawer_sub_df_list (line 702) | def drawer_sub_df_list(self) -> Optional[List[pd.DataFrame]]: FILE: src/zvt/factors/zen/domain/common.py class ZenFactorCommon (line 7) | class ZenFactorCommon(Mixin): FILE: src/zvt/factors/zen/domain/index_1d_zen_factor.py class Index1dZenFactor (line 10) | class Index1dZenFactor(Index1dZenFactorBase, ZenFactorCommon): FILE: src/zvt/factors/zen/domain/stock_1d_zen_factor.py class Stock1dZenFactor (line 10) | class Stock1dZenFactor(Stock1dZenFactorBase, ZenFactorCommon): FILE: src/zvt/factors/zen/domain/stock_1wk_zen_factor.py class Stock1wkZenFactor (line 10) | class Stock1wkZenFactor(Stock1wkZenFactorBase, ZenFactorCommon): FILE: src/zvt/factors/zen/zen_factor.py class ZhongshuRange (line 28) | class ZhongshuRange(Enum): method of (line 35) | def of(cls, change): class ZhongshuLevel (line 42) | class ZhongshuLevel(Enum): method of (line 51) | def of(cls, level): class ZhongshuDistance (line 60) | class ZhongshuDistance(Enum): method of (line 67) | def of(cls, d): class Zhongshu (line 81) | class Zhongshu(object): method __str__ (line 82) | def __str__(self) -> str: method __eq__ (line 89) | def __eq__(self, o: object) -> bool: method __init__ (line 98) | def __init__( function category_zen_state (line 109) | def category_zen_state(): class ZenState (line 118) | class ZenState(Bean): method __eq__ (line 119) | def __eq__(self, o: object) -> bool: method __str__ (line 123) | def __str__(self) -> str: method __init__ (line 126) | def __init__(self, zhongshu_state_list: List) -> None: function cal_distance (line 155) | def cal_distance(s): function cal_zen_state (line 171) | def cal_zen_state(s): function good_state (line 202) | def good_state(zen_state: ZenState): function trending_state (line 228) | def trending_state(zen_state: ZenState): class TrendingFactor (line 253) | class TrendingFactor(ZenFactor): method __init__ (line 254) | def __init__( method compute_result (line 314) | def compute_result(self): class ShakingFactor (line 338) | class ShakingFactor(ZenFactor): method __init__ (line 342) | def __init__( method drawer_sub_df_list (line 402) | def drawer_sub_df_list(self) -> Optional[List[pd.DataFrame]]: method drawer_rects (line 407) | def drawer_rects(self) -> List[Rect]: method compute_result (line 410) | def compute_result(self): FILE: src/zvt/fill_project.py function gen_kdata_schemas (line 7) | def gen_kdata_schemas(): FILE: src/zvt/informer/inform_utils.py function inform_email (line 10) | def inform_email(entity_ids, entity_type, target_date, title, provider): function add_to_eastmoney (line 22) | def add_to_eastmoney(codes, group, entity_type="stock", over_write=True,... function clean_eastmoney_groups (line 54) | def clean_eastmoney_groups(keep, headers_list=None): function delete_eastmoney_group (line 68) | def delete_eastmoney_group(group_name, headers_list=None): FILE: src/zvt/informer/informer.py class Informer (line 17) | class Informer(object): method send_message (line 18) | def send_message(self, to_user, title, body, **kwargs): class EmailInformer (line 22) | class EmailInformer(Informer): method __init__ (line 23) | def __init__(self, ssl=True) -> None: method send_message_ (line 27) | def send_message_(self, to_user, title, body, **kwargs): method send_message (line 76) | def send_message(self, to_user, title, body, sub_size=20, with_sender=... class WechatInformer (line 95) | class WechatInformer(Informer): method __init__ (line 105) | def __init__(self) -> None: method refresh_token (line 108) | def refresh_token(self): method send_price_notification (line 117) | def send_price_notification(self, to_user, security_name, current_pric... method _format_price_notification (line 128) | def _format_price_notification(self, to_user, security_name, current_p... class QiyeWechatBot (line 162) | class QiyeWechatBot(Informer): method __init__ (line 163) | def __init__(self, token=None) -> None: method send_message (line 166) | def send_message(self, content): FILE: src/zvt/main.py function serve_layout (line 9) | def serve_layout(): function tab_content (line 29) | def tab_content(active_tab): function main (line 37) | def main(): FILE: src/zvt/misc/misc_models.py class TimeMessage (line 7) | class TimeMessage(CustomModel): FILE: src/zvt/misc/misc_service.py function holiday_distance (line 6) | def holiday_distance(timestamp=None, consider_future_days=15): function get_time_message (line 65) | def get_time_message(): FILE: src/zvt/misc/zhdate.py class ZhDate (line 11) | class ZhDate: method __init__ (line 12) | def __init__(self, lunar_year, lunar_month, lunar_day, leap_month=False): method to_datetime (line 32) | def to_datetime(self): method from_datetime (line 41) | def from_datetime(dt): method today (line 80) | def today(): method __days_passed (line 83) | def __days_passed(self): method chinese (line 104) | def chinese(self): method __str__ (line 141) | def __str__(self): method __repr__ (line 149) | def __repr__(self): method __eq__ (line 152) | def __eq__(self, another): method __add__ (line 161) | def __add__(self, another): method __sub__ (line 166) | def __sub__(self, another): method __tiandi (line 181) | def __tiandi(anum): method validate (line 187) | def validate(year, month, day, leap): method decode (line 219) | def decode(year_code): method month_days (line 248) | def month_days(year): FILE: src/zvt/ml/lables.py class BehaviorCategory (line 5) | class BehaviorCategory(Enum): class RelativePerformance (line 12) | class RelativePerformance(Enum): FILE: src/zvt/ml/ml.py function cal_change (line 23) | def cal_change(s: pd.Series, predict_range): function cal_behavior_cls (line 27) | def cal_behavior_cls(s: pd.Series, predict_range): function cal_predict (line 33) | def cal_predict(s: pd.Series, predict_range): function cal_relative_performance (line 37) | def cal_relative_performance(s: pd.Series): class MLMachine (line 46) | class MLMachine(object): method __init__ (line 49) | def __init__( method split_data (line 113) | def split_data(self): method build_kdata (line 121) | def build_kdata(self): method build_label (line 135) | def build_label(self): method train (line 161) | def train(self, model=LinearRegression(), **params): method draw_result (line 165) | def draw_result(self, entity_id): method predict (line 184) | def predict(self): method build_feature (line 190) | def build_feature( class StockMLMachine (line 208) | class StockMLMachine(MLMachine): class MaStockMLMachine (line 212) | class MaStockMLMachine(StockMLMachine): method build_feature (line 213) | def build_feature( FILE: src/zvt/plugin.py function main (line 8) | def main(): function export (line 24) | def export(): FILE: src/zvt/recorders/__init__.py function init_main_index (line 53) | def init_main_index(provider="exchange"): FILE: src/zvt/recorders/eastmoney/common.py class ApiWrapper (line 15) | class ApiWrapper(object): method request (line 16) | def request(self, url=None, method="post", param=None, path_fields=None): function get_fc (line 20) | def get_fc(security_item): function get_company_type (line 29) | def get_company_type(stock_domain: StockDetail): function company_type_flag (line 40) | def company_type_flag(security_item): function call_eastmoney_api (line 66) | def call_eastmoney_api(url=None, method="post", param=None, path_fields=... function get_from_path_fields (line 91) | def get_from_path_fields(the_json, path_fields): class EastmoneyApiWrapper (line 101) | class EastmoneyApiWrapper(ApiWrapper): method request (line 102) | def request(self, url=None, method="post", param=None, path_fields=None): class BaseEastmoneyRecorder (line 106) | class BaseEastmoneyRecorder(object): method generate_request_param (line 111) | def generate_request_param(self, security_item, start, end, size, time... method record (line 114) | def record(self, entity_item, start, end, size, timestamps): class EastmoneyTimestampsDataRecorder (line 140) | class EastmoneyTimestampsDataRecorder(BaseEastmoneyRecorder, TimestampsD... method init_timestamps (line 150) | def init_timestamps(self, entity): class EastmoneyPageabeDataRecorder (line 163) | class EastmoneyPageabeDataRecorder(BaseEastmoneyRecorder, TimeSeriesData... method get_remote_count (line 171) | def get_remote_count(self, security_item): method evaluate_start_end_size_timestamps (line 175) | def evaluate_start_end_size_timestamps(self, entity): method generate_request_param (line 191) | def generate_request_param(self, security_item, start, end, size, time... class EastmoneyMoreDataRecorder (line 201) | class EastmoneyMoreDataRecorder(BaseEastmoneyRecorder, TimeSeriesDataRec... method get_remote_latest_record (line 207) | def get_remote_latest_record(self, security_item): method evaluate_start_end_size_timestamps (line 213) | def evaluate_start_end_size_timestamps(self, entity): method generate_request_param (line 233) | def generate_request_param(self, security_item, start, end, size, time... FILE: src/zvt/recorders/eastmoney/dividend_financing/eastmoney_dividend_detail_recorder.py class DividendDetailRecorder (line 7) | class DividendDetailRecorder(EastmoneyPageabeDataRecorder): method get_original_time_field (line 14) | def get_original_time_field(self): method get_data_map (line 17) | def get_data_map(self): FILE: src/zvt/recorders/eastmoney/dividend_financing/eastmoney_dividend_financing_recorder.py class DividendFinancingRecorder (line 7) | class DividendFinancingRecorder(EastmoneyPageabeDataRecorder): method get_original_time_field (line 14) | def get_original_time_field(self): method get_data_map (line 17) | def get_data_map(self): method on_finish (line 29) | def on_finish(self): FILE: src/zvt/recorders/eastmoney/dividend_financing/eastmoney_rights_issue_detail_recorder.py class RightsIssueDetailRecorder (line 10) | class RightsIssueDetailRecorder(EastmoneyPageabeDataRecorder): method get_original_time_field (line 17) | def get_original_time_field(self): method get_data_map (line 20) | def get_data_map(self): method on_finish (line 27) | def on_finish(self): FILE: src/zvt/recorders/eastmoney/dividend_financing/eastmoney_spo_detail_recorder.py class SPODetailRecorder (line 9) | class SPODetailRecorder(EastmoneyPageabeDataRecorder): method get_original_time_field (line 16) | def get_original_time_field(self): method get_data_map (line 19) | def get_data_map(self): method on_finish (line 26) | def on_finish(self): FILE: src/zvt/recorders/eastmoney/finance/base_china_stock_finance_recorder.py function to_jq_report_period (line 21) | def to_jq_report_period(timestamp): class BaseChinaStockFinanceRecorder (line 36) | class BaseChinaStockFinanceRecorder(EastmoneyTimestampsDataRecorder): method __init__ (line 44) | def __init__( method init_timestamps (line 83) | def init_timestamps(self, entity): method generate_request_param (line 98) | def generate_request_param(self, security_item, start, end, size, time... method generate_path_fields (line 125) | def generate_path_fields(self, security_item): method record (line 137) | def record(self, entity, start, end, size, timestamps): method get_original_time_field (line 146) | def get_original_time_field(self): method fill_timestamp_with_jq (line 149) | def fill_timestamp_with_jq(self, security_item, the_data): method on_finish_entity (line 171) | def on_finish_entity(self, entity): FILE: src/zvt/recorders/eastmoney/finance/eastmoney_balance_sheet_recorder.py class ChinaStockBalanceSheetRecorder (line 433) | class ChinaStockBalanceSheetRecorder(BaseChinaStockFinanceRecorder): method get_data_map (line 440) | def get_data_map(self): FILE: src/zvt/recorders/eastmoney/finance/eastmoney_cash_flow_recorder.py class ChinaStockCashFlowRecorder (line 176) | class ChinaStockCashFlowRecorder(BaseChinaStockFinanceRecorder): method get_data_map (line 183) | def get_data_map(self): FILE: src/zvt/recorders/eastmoney/finance/eastmoney_finance_factor_recorder.py class ChinaStockFinanceFactorRecorder (line 144) | class ChinaStockFinanceFactorRecorder(BaseChinaStockFinanceRecorder): method get_data_map (line 151) | def get_data_map(self): FILE: src/zvt/recorders/eastmoney/finance/eastmoney_income_statement_recorder.py class ChinaStockIncomeStatementRecorder (line 158) | class ChinaStockIncomeStatementRecorder(BaseChinaStockFinanceRecorder): method get_data_map (line 166) | def get_data_map(self): FILE: src/zvt/recorders/eastmoney/holder/eastmoney_stock_actor_recorder.py class EastmoneyActorRecorder (line 10) | class EastmoneyActorRecorder(Recorder): method get_data (line 19) | def get_data(self, end_date, pn, ps): method run (line 23) | def run(self): FILE: src/zvt/recorders/eastmoney/holder/eastmoney_top_ten_holder_recorder.py class TopTenHolderRecorder (line 9) | class TopTenHolderRecorder(EastmoneyTimestampsDataRecorder): method get_data_map (line 20) | def get_data_map(self): method generate_request_param (line 38) | def generate_request_param(self, security_item, start, end, size, time... method generate_domain_id (line 41) | def generate_domain_id(self, entity, original_data): FILE: src/zvt/recorders/eastmoney/holder/eastmoney_top_ten_tradable_holder_recorder.py class TopTenTradableHolderRecorder (line 6) | class TopTenTradableHolderRecorder(TopTenHolderRecorder): FILE: src/zvt/recorders/eastmoney/meta/eastmoney_block_meta_recorder.py class EastmoneyBlockRecorder (line 14) | class EastmoneyBlockRecorder(Recorder): method run (line 25) | def run(self): class EastmoneyBlockStockRecorder (line 52) | class EastmoneyBlockStockRecorder(TimeSeriesDataRecorder): method record (line 62) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/eastmoney/meta/eastmoney_stock_meta_recorder.py class EastmoneyStockRecorder (line 13) | class EastmoneyStockRecorder(ExchangeStockMetaRecorder): class EastmoneyStockDetailRecorder (line 18) | class EastmoneyStockDetailRecorder(Recorder): method __init__ (line 22) | def __init__(self, force_update=False, sleeping_time=5, code=None, cod... method run (line 45) | def run(self): FILE: src/zvt/recorders/eastmoney/trading/eastmoney_holder_trading_recorder.py class HolderTradingRecorder (line 7) | class HolderTradingRecorder(EastmoneyMoreDataRecorder): method get_original_time_field (line 13) | def get_original_time_field(self): method get_data_map (line 16) | def get_data_map(self): method generate_domain_id (line 24) | def generate_domain_id(self, entity, original_data): FILE: src/zvt/recorders/eastmoney/trading/eastmoney_manager_trading_recorder.py class ManagerTradingRecorder (line 7) | class ManagerTradingRecorder(EastmoneyMoreDataRecorder): method get_original_time_field (line 13) | def get_original_time_field(self): method get_data_map (line 16) | def get_data_map(self): method generate_domain_id (line 28) | def generate_domain_id(self, entity, original_data): FILE: src/zvt/recorders/em/actor/em_stock_actor_summary_recorder.py class EMStockActorSummaryRecorder (line 28) | class EMStockActorSummaryRecorder(TimestampsDataRecorder): method init_timestamps (line 35) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method record (line 40) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/em/actor/em_stock_ii_recorder.py class EMStockIIRecorder (line 39) | class EMStockIIRecorder(TimestampsDataRecorder): method init_timestamps (line 46) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method record (line 51) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/em/actor/em_stock_top_ten_free_recorder.py class EMStockTopTenFreeRecorder (line 16) | class EMStockTopTenFreeRecorder(TimestampsDataRecorder): method init_timestamps (line 23) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method on_finish_entity (line 28) | def on_finish_entity(self, entity): method record (line 51) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/em/actor/em_stock_top_ten_recorder.py class EMStockTopTenRecorder (line 16) | class EMStockTopTenRecorder(TimestampsDataRecorder): method init_timestamps (line 23) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method on_finish_entity (line 28) | def on_finish_entity(self, entity): method record (line 51) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/em/em_api.py function get_treasury_yield (line 51) | def get_treasury_yield(pn=1, ps=2000, fetch_all=True): function get_ii_holder_report_dates (line 94) | def get_ii_holder_report_dates(code): function get_dragon_and_tiger_list (line 104) | def get_dragon_and_tiger_list(start_date, end_date=None): function get_dragon_and_tiger (line 120) | def get_dragon_and_tiger(code, start_date=None): function get_holder_report_dates (line 132) | def get_holder_report_dates(code): function get_free_holder_report_dates (line 143) | def get_free_holder_report_dates(code): function get_controlling_shareholder (line 155) | def get_controlling_shareholder(code): function get_ii_holder (line 164) | def get_ii_holder(code, report_date, org_type): function get_ii_summary (line 173) | def get_ii_summary(code, report_date, org_type): function get_free_holders (line 181) | def get_free_holders(code, end_date): function get_top_ten_free_holder_stats (line 190) | def get_top_ten_free_holder_stats(code): function get_controlling_shareholder (line 219) | def get_controlling_shareholder(code): function get_holders (line 239) | def get_holders(code, end_date): function get_basic_info (line 248) | def get_basic_info(entity_id, session=None): function _order_param (line 283) | def _order_param(order: str): function get_url (line 290) | def get_url( function get_exchange (line 325) | def get_exchange(code): function actor_type_to_org_type (line 335) | def actor_type_to_org_type(actor_type: ActorType): function generate_filters (line 353) | def generate_filters( function get_em_data (line 381) | def get_em_data( function get_kdata (line 495) | def get_kdata(entity_id, session=None, level=IntervalLevel.LEVEL_1DAY, a... function get_basic_info1 (line 567) | def get_basic_info1(entity_id): function get_future_list (line 590) | def get_future_list(): function _calculate_limit (line 628) | def _calculate_limit(row): function get_stock_turnover (line 639) | def get_stock_turnover(): function get_top_tradable_list (line 650) | def get_top_tradable_list(entity_type, fields, limit, entity_flag, pn=1,... function get_top_stocks (line 747) | def get_top_stocks(limit=100): function get_top_stockhks (line 757) | def get_top_stockhks(limit=20, hk_south=False): function get_top_stockuss (line 768) | def get_top_stockuss(limit=50): function get_tradable_list (line 776) | def get_tradable_list( function get_block_stocks (line 874) | def get_block_stocks(block_id, name="", session=None): function market_code_to_entity_id (line 908) | def market_code_to_entity_id(market, code): function get_hot_topic (line 926) | def get_hot_topic(session: Session = None): function record_hot_topic (line 971) | def record_hot_topic(): function get_news (line 981) | def get_news(entity_id, ps=200, index=1, start_timestamp=None, session=N... function to_em_fc (line 1037) | def to_em_fc(entity_id): function to_em_entity_flag (line 1087) | def to_em_entity_flag(exchange: Union[Exchange, str]): function to_em_fq_flag (line 1092) | def to_em_fq_flag(adjust_type: AdjustType): function to_em_level_flag (line 1102) | def to_em_level_flag(level: IntervalLevel): function to_em_sec_id (line 1124) | def to_em_sec_id(entity_id): function to_zvt_code (line 1136) | def to_zvt_code(code): FILE: src/zvt/recorders/em/macro/em_treasury_yield_recorder.py class EMTreasuryYieldRecorder (line 12) | class EMTreasuryYieldRecorder(FixedCycleDataRecorder): method __init__ (line 18) | def __init__( method record (line 54) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/em/meta/em_block_meta_recorder.py class EMBlockRecorder (line 10) | class EMBlockRecorder(Recorder): method run (line 14) | def run(self): class EMBlockStockRecorder (line 21) | class EMBlockStockRecorder(TimeSeriesDataRecorder): method record (line 28) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/em/meta/em_cbond_meta_recorder.py class EMCBondRecorder (line 9) | class EMCBondRecorder(Recorder): method run (line 13) | def run(self): FILE: src/zvt/recorders/em/meta/em_currency_meta_recorder.py class EMCurrencyRecorder (line 9) | class EMCurrencyRecorder(Recorder): method run (line 13) | def run(self): FILE: src/zvt/recorders/em/meta/em_future_meta_recorder.py class EMFutureRecorder (line 9) | class EMFutureRecorder(Recorder): method run (line 13) | def run(self): FILE: src/zvt/recorders/em/meta/em_index_meta_recorder.py class EMIndexRecorder (line 9) | class EMIndexRecorder(Recorder): method run (line 13) | def run(self): FILE: src/zvt/recorders/em/meta/em_indexhk_meta_recorder.py class EMIndexhkRecorder (line 9) | class EMIndexhkRecorder(Recorder): method run (line 13) | def run(self): FILE: src/zvt/recorders/em/meta/em_indexus_meta_recorder.py class EMIndexusRecorder (line 9) | class EMIndexusRecorder(Recorder): method run (line 13) | def run(self): FILE: src/zvt/recorders/em/meta/em_stock_meta_recorder.py class EMStockRecorder (line 13) | class EMStockRecorder(Recorder): method run (line 17) | def run(self): FILE: src/zvt/recorders/em/meta/em_stockhk_meta_recorder.py class EMStockhkRecorder (line 12) | class EMStockhkRecorder(Recorder): method run (line 17) | def run(self): FILE: src/zvt/recorders/em/meta/em_stockus_meta_recorder.py class EMStockusRecorder (line 12) | class EMStockusRecorder(Recorder): method run (line 16) | def run(self): FILE: src/zvt/recorders/em/misc/em_stock_news_recorder.py class EMStockNewsRecorder (line 12) | class EMStockNewsRecorder(FixedCycleDataRecorder): method init_entities (line 21) | def init_entities(self): method record (line 31) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/em/quotes/em_kdata_recorder.py class BaseEMStockKdataRecorder (line 33) | class BaseEMStockKdataRecorder(FixedCycleDataRecorder): method __init__ (line 39) | def __init__( method need_redownload_qfq (line 88) | def need_redownload_qfq(self, entity_id, df): method record (line 116) | def record(self, entity, start, end, size, timestamps): method on_finish_entity (line 146) | def on_finish_entity(self, entity): class EMStockKdataRecorder (line 170) | class EMStockKdataRecorder(BaseEMStockKdataRecorder): method on_finish_entity (line 178) | def on_finish_entity(self, entity): class EMStockusKdataRecorder (line 200) | class EMStockusKdataRecorder(BaseEMStockKdataRecorder): class EMStockhkKdataRecorder (line 208) | class EMStockhkKdataRecorder(BaseEMStockKdataRecorder): class EMIndexhkKdataRecorder (line 216) | class EMIndexhkKdataRecorder(BaseEMStockKdataRecorder): class EMIndexKdataRecorder (line 223) | class EMIndexKdataRecorder(BaseEMStockKdataRecorder): class EMIndexusKdataRecorder (line 230) | class EMIndexusKdataRecorder(BaseEMStockKdataRecorder): class EMBlockKdataRecorder (line 237) | class EMBlockKdataRecorder(BaseEMStockKdataRecorder): class EMFutureKdataRecorder (line 244) | class EMFutureKdataRecorder(BaseEMStockKdataRecorder): class EMCurrencyKdataRecorder (line 251) | class EMCurrencyKdataRecorder(BaseEMStockKdataRecorder): FILE: src/zvt/recorders/em/trading/em_dragon_and_tiger_recorder.py class EMDragonAndTigerRecorder (line 12) | class EMDragonAndTigerRecorder(Recorder): method run (line 16) | def run(self): FILE: src/zvt/recorders/exchange/api/cn_index_api.py function _get_resp_data (line 31) | def _get_resp_data(resp: requests.Response): function get_cn_index (line 36) | def get_cn_index(index_type="cni", category=IndexCategory.style): FILE: src/zvt/recorders/exchange/api/cn_index_stock_api.py function _get_resp_data (line 17) | def _get_resp_data(resp: requests.Response): function get_cn_index_stock (line 22) | def get_cn_index_stock(code, timestamp, name=None): FILE: src/zvt/recorders/exchange/api/cs_index_api.py function _get_resp_data (line 20) | def _get_resp_data(resp: requests.Response): function _get_params (line 25) | def _get_params(index_type, category: IndexCategory): function get_cs_index (line 53) | def get_cs_index(index_type="sh"): FILE: src/zvt/recorders/exchange/api/cs_index_stock_api.py function get_cs_index_stock (line 18) | def get_cs_index_stock(code, timestamp, name=None): FILE: src/zvt/recorders/exchange/exchange_etf_meta_recorder.py class ChinaETFListSpider (line 18) | class ChinaETFListSpider(Recorder): method __init__ (line 21) | def __init__(self, force_update=False, sleeping_time=10.0, provider="e... method run (line 25) | def run(self): method persist_etf_list (line 51) | def persist_etf_list(self, df: pd.DataFrame, exchange: str): method download_sh_etf_component (line 73) | def download_sh_etf_component(self, df: pd.DataFrame): method download_sz_etf_component (line 107) | def download_sz_etf_component(self, df: pd.DataFrame): method populate_sh_etf_type (line 156) | def populate_sh_etf_type(df: pd.DataFrame): method parse_sz_etf_underlying_index (line 186) | def parse_sz_etf_underlying_index(df: pd.DataFrame): FILE: src/zvt/recorders/exchange/exchange_index_recorder.py class ExchangeIndexRecorder (line 9) | class ExchangeIndexRecorder(Recorder): method run (line 13) | def run(self): method record_cs_index (line 25) | def record_cs_index(self, index_type): method record_cn_index (line 31) | def record_cn_index(self, index_type): FILE: src/zvt/recorders/exchange/exchange_index_stock_recorder.py class ExchangeIndexStockRecorder (line 15) | class ExchangeIndexStockRecorder(TimestampsDataRecorder): method __init__ (line 22) | def __init__( method init_timestamps (line 58) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method record (line 66) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/exchange/exchange_stock_meta_recorder.py class ExchangeStockMetaRecorder (line 15) | class ExchangeStockMetaRecorder(Recorder): method run (line 21) | def run(self): method download_stock_list (line 38) | def download_stock_list(self, response, exchange): FILE: src/zvt/recorders/exchange/exchange_stock_summary_recorder.py class ExchangeStockSummaryRecorder (line 13) | class ExchangeStockSummaryRecorder(TimestampsDataRecorder): method __init__ (line 24) | def __init__( method init_timestamps (line 57) | def init_timestamps(self, entity): method record (line 60) | def record(self, entity, start, end, size, timestamps): method get_data_map (line 91) | def get_data_map(self): FILE: src/zvt/recorders/joinquant/common.py function to_jq_trading_level (line 6) | def to_jq_trading_level(trading_level: IntervalLevel): function to_jq_entity_id (line 22) | def to_jq_entity_id(security_item): function to_entity_id (line 30) | def to_entity_id(jq_code: str, entity_type): function jq_to_report_period (line 44) | def jq_to_report_period(jq_report_type): FILE: src/zvt/recorders/joinquant/fundamental/jq_etf_valuation_recorder.py class JqChinaEtfValuationRecorder (line 12) | class JqChinaEtfValuationRecorder(TimeSeriesDataRecorder): method record (line 21) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/fundamental/jq_margin_trading_recorder.py class MarginTradingRecorder (line 14) | class MarginTradingRecorder(TimeSeriesDataRecorder): method record (line 23) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/fundamental/jq_stock_valuation_recorder.py class JqChinaStockValuationRecorder (line 14) | class JqChinaStockValuationRecorder(TimeSeriesDataRecorder): method record (line 23) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/meta/jq_fund_meta_recorder.py class JqChinaFundRecorder (line 15) | class JqChinaFundRecorder(Recorder): method run (line 19) | def run(self): class JqChinaFundStockRecorder (line 72) | class JqChinaFundStockRecorder(TimeSeriesDataRecorder): method init_entities (line 79) | def init_entities(self): method record (line 89) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/meta/jq_stock_meta_recorder.py class BaseJqChinaMetaRecorder (line 15) | class BaseJqChinaMetaRecorder(Recorder): method __init__ (line 18) | def __init__(self, force_update=True, sleeping_time=10) -> None: method to_zvt_entity (line 21) | def to_zvt_entity(self, df, entity_type, category=None): class JqChinaStockRecorder (line 44) | class JqChinaStockRecorder(BaseJqChinaMetaRecorder): method run (line 47) | def run(self): class JqChinaEtfRecorder (line 58) | class JqChinaEtfRecorder(BaseJqChinaMetaRecorder): method run (line 61) | def run(self): class JqChinaStockEtfPortfolioRecorder (line 70) | class JqChinaStockEtfPortfolioRecorder(TimeSeriesDataRecorder): method record (line 79) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/meta/jq_trade_day_recorder.py class StockTradeDayRecorder (line 11) | class StockTradeDayRecorder(TimeSeriesDataRecorder): method __init__ (line 18) | def __init__( method record (line 48) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/misc/jq_hk_holder_recorder.py class JoinquantHkHolderRecorder (line 20) | class JoinquantHkHolderRecorder(TimestampsDataRecorder): method __init__ (line 27) | def __init__( method init_timestamps (line 57) | def init_timestamps(self, entity): method get_latest_saved_record (line 62) | def get_latest_saved_record(self, entity): method record (line 78) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/misc/jq_index_money_flow_recorder.py class JoinquantIndexMoneyFlowRecorder (line 12) | class JoinquantIndexMoneyFlowRecorder(FixedCycleDataRecorder): method __init__ (line 19) | def __init__( method record (line 67) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/misc/jq_stock_money_flow_recorder.py class JoinquantStockMoneyFlowRecorder (line 17) | class JoinquantStockMoneyFlowRecorder(FixedCycleDataRecorder): method __init__ (line 24) | def __init__( method generate_domain_id (line 69) | def generate_domain_id(self, entity, original_data): method on_finish (line 72) | def on_finish(self): method record (line 77) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/overall/jq_cross_market_recorder.py class CrossMarketSummaryRecorder (line 9) | class CrossMarketSummaryRecorder(TimeSeriesDataRecorder): method __init__ (line 16) | def __init__(self, force_update=False, sleeping_time=5, real_time=Fals... method init_entities (line 37) | def init_entities(self): method record (line 40) | def record(self, entity, start, end, size, timestamps): method get_data_map (line 68) | def get_data_map(self): FILE: src/zvt/recorders/joinquant/overall/jq_margin_trading_recorder.py class MarginTradingSummaryRecorder (line 14) | class MarginTradingSummaryRecorder(TimeSeriesDataRecorder): method __init__ (line 21) | def __init__( method record (line 54) | def record(self, entity, start, end, size, timestamps): method get_data_map (line 85) | def get_data_map(self): FILE: src/zvt/recorders/joinquant/overall/jq_stock_summary_recorder.py class StockSummaryRecorder (line 21) | class StockSummaryRecorder(TimeSeriesDataRecorder): method __init__ (line 28) | def __init__( method record (line 61) | def record(self, entity, start, end, size, timestamps): method get_data_map (line 93) | def get_data_map(self): FILE: src/zvt/recorders/joinquant/quotes/jq_index_kdata_recorder.py class JqChinaIndexKdataRecorder (line 18) | class JqChinaIndexKdataRecorder(FixedCycleDataRecorder): method __init__ (line 29) | def __init__( method init_entities (line 75) | def init_entities(self): method generate_domain_id (line 82) | def generate_domain_id(self, entity, original_data): method record (line 85) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/joinquant/quotes/jq_stock_kdata_recorder.py class JqChinaStockKdataRecorder (line 17) | class JqChinaStockKdataRecorder(FixedCycleDataRecorder): method __init__ (line 31) | def __init__( method init_entities (line 83) | def init_entities(self): method generate_domain_id (line 90) | def generate_domain_id(self, entity, original_data): method recompute_qfq (line 93) | def recompute_qfq(self, entity, qfq_factor, last_timestamp): method record (line 115) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/jqka/emotion/JqkaEmotionRecorder.py function _get_high_days_count (line 16) | def _get_high_days_count(high_days_str: str): class JqkaLimitUpRecorder (line 24) | class JqkaLimitUpRecorder(TimestampsDataRecorder): method init_entities (line 31) | def init_entities(self): method init_timestamps (line 35) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method record (line 46) | def record(self, entity, start, end, size, timestamps): class JqkaLimitDownRecorder (line 99) | class JqkaLimitDownRecorder(TimestampsDataRecorder): method init_entities (line 106) | def init_entities(self): method init_timestamps (line 110) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method record (line 121) | def record(self, entity, start, end, size, timestamps): function _cal_power_and_max_height (line 153) | def _cal_power_and_max_height(continuous_limit_up: dict): class JqkaEmotionRecorder (line 163) | class JqkaEmotionRecorder(TimestampsDataRecorder): method init_entities (line 170) | def init_entities(self): method init_timestamps (line 174) | def init_timestamps(self, entity_item) -> List[pd.Timestamp]: method record (line 185) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/jqka/jqka_api.py function get_continuous_limit_up (line 27) | def get_continuous_limit_up(date: str): function get_limit_stats (line 38) | def get_limit_stats(date: str): function get_limit_up (line 52) | def get_limit_up(date: str): function get_limit_down (line 58) | def get_limit_down(date: str): function get_jkqa_data (line 64) | def get_jkqa_data(url, pn=1, ps=200, fetch_all=True, headers=_JKQA_HEADER): FILE: src/zvt/recorders/qmt/index/qmt_index_recorder.py class QmtIndexRecorder (line 16) | class QmtIndexRecorder(FixedCycleDataRecorder): method __init__ (line 24) | def __init__( method record (line 74) | def record(self, entity, start, end, size, timestamps): method evaluate_start_end_size_timestamps (line 112) | def evaluate_start_end_size_timestamps(self, entity): FILE: src/zvt/recorders/qmt/meta/qmt_stock_meta_recorder.py class QMTStockRecorder (line 9) | class QMTStockRecorder(Recorder): method run (line 13) | def run(self): FILE: src/zvt/recorders/qmt/quotes/qmt_kdata_recorder.py class BaseQmtKdataRecorder (line 17) | class BaseQmtKdataRecorder(FixedCycleDataRecorder): method __init__ (line 23) | def __init__( method init_entities (line 72) | def init_entities(self): method record (line 106) | def record(self, entity, start, end, size, timestamps): class QMTStockKdataRecorder (line 169) | class QMTStockKdataRecorder(BaseQmtKdataRecorder): FILE: src/zvt/recorders/sina/meta/sina_block_recorder.py class SinaBlockRecorder (line 15) | class SinaBlockRecorder(Recorder): method run (line 26) | def run(self): class SinaChinaBlockStockRecorder (line 59) | class SinaChinaBlockStockRecorder(TimeSeriesDataRecorder): method record (line 69) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/sina/money_flow/sina_block_money_flow_recorder.py class SinaBlockMoneyFlowRecorder (line 17) | class SinaBlockMoneyFlowRecorder(FixedCycleDataRecorder): method generate_url (line 30) | def generate_url(self, category, code, number): method get_data_map (line 38) | def get_data_map(self): method record (line 41) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/sina/money_flow/sina_stock_money_flow_recorder.py class SinaStockMoneyFlowRecorder (line 12) | class SinaStockMoneyFlowRecorder(FixedCycleDataRecorder): method init_entities (line 21) | def init_entities(self): method evaluate_start_end_size_timestamps (line 29) | def evaluate_start_end_size_timestamps(self, entity): method generate_url (line 38) | def generate_url(self, code, number): method get_data_map (line 41) | def get_data_map(self): method record (line 44) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/sina/quotes/sina_etf_kdata_recorder.py class ChinaETFDayKdataRecorder (line 16) | class ChinaETFDayKdataRecorder(FixedCycleDataRecorder): method get_data_map (line 27) | def get_data_map(self): method generate_domain_id (line 30) | def generate_domain_id(self, entity, original_data): method on_finish_entity (line 33) | def on_finish_entity(self, entity): method fetch_cumulative_net_value (line 58) | def fetch_cumulative_net_value(self, security_item, start, end) -> pd.... method record (line 89) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/sina/quotes/sina_index_kdata_recorder.py class ChinaIndexDayKdataRecorder (line 15) | class ChinaIndexDayKdataRecorder(FixedCycleDataRecorder): method __init__ (line 23) | def __init__( method get_data_map (line 71) | def get_data_map(self): method generate_domain_id (line 74) | def generate_domain_id(self, entity, original_data): method record (line 77) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/recorders/wb/wb_api.py function _collapse (line 40) | def _collapse(values): function _extract_preferred_field (line 51) | def _extract_preferred_field(data, id_or_value): function _wb_get (line 69) | def _wb_get(paths: dict = None, **kwargs): function _extract_message (line 110) | def _extract_message(msg): function _get_meta (line 122) | def _get_meta(name, filters=None, expected=None, **params): function get_countries (line 142) | def get_countries(): function get_indicators (line 163) | def get_indicators(indicator=None, language=None, id_or_value=None, **pa... function get_indicator_data (line 177) | def get_indicator_data(indicator, indicator_name=None, country=None, dat... function get_regions (line 192) | def get_regions(region=None, language=None, **params): function get_sources (line 199) | def get_sources(source=None, language=None, **params): function get_topics (line 206) | def get_topics(topic=None, language=None, **params): function get_incomelevels (line 213) | def get_incomelevels(incomelevel=None, language=None, **params): function get_lendingtypes (line 220) | def get_lendingtypes(lendingtype=None, language=None, **params): function get_economy_data (line 227) | def get_economy_data(entity_id, indicators=None, date=None): FILE: src/zvt/recorders/wb/wb_country_recorder.py class WBCountryRecorder (line 9) | class WBCountryRecorder(Recorder): method run (line 13) | def run(self): FILE: src/zvt/recorders/wb/wb_economy_recorder.py class WBEconomyRecorder (line 10) | class WBEconomyRecorder(FixedCycleDataRecorder): method record (line 16) | def record(self, entity, start, end, size, timestamps): FILE: src/zvt/rest/data.py function get_data_providers (line 19) | def get_data_providers(): function get_data_schemas (line 30) | def get_data_schemas(provider): function query_data (line 41) | def query_data(provider: str, schema: str): FILE: src/zvt/rest/factor.py function get_factors (line 18) | def get_factors(): function query_factor_result (line 23) | def query_factor_result(factor_request_model: FactorRequestModel): FILE: src/zvt/rest/misc.py function get_time_message (line 18) | def get_time_message(): FILE: src/zvt/rest/trading.py function query_kdata (line 38) | def query_kdata(kdata_request_model: KdataRequestModel): function query_kdata (line 43) | def query_kdata(ts_request_model: TSRequestModel): function get_quote_stats (line 48) | def get_quote_stats(): function get_query_stock_quote_setting (line 53) | def get_query_stock_quote_setting(): function build_query_stock_quote_setting (line 67) | def build_query_stock_quote_setting(build_query_stock_quote_setting_mode... function query_tag_quotes (line 72) | def query_tag_quotes(query_tag_quote_model: QueryTagQuoteModel): function query_stock_quotes (line 77) | def query_stock_quotes(query_stock_quote_model: QueryStockQuoteModel): function build_trading_plan (line 82) | def build_trading_plan(build_trading_plan_model: BuildTradingPlanModel): function query_trading_plan (line 87) | def query_trading_plan(query_trading_plan_model: QueryTradingPlanModel): function get_current_trading_plan (line 92) | def get_current_trading_plan(): function get_future_trading_plan (line 97) | def get_future_trading_plan(): function buy (line 102) | def buy(buy_position_strategy: BuyParameter): function sell (line 112) | def sell(sell_position_strategy: SellParameter): FILE: src/zvt/rest/work.py function create_stock_pool_info (line 55) | def create_stock_pool_info(create_stock_pool_info_model: CreateStockPool... function get_stock_pool_info (line 60) | def get_stock_pool_info(): function create_stock_pools (line 67) | def create_stock_pools(create_stock_pools_model: CreateStockPoolsModel): function delete_stock_pool (line 72) | def delete_stock_pool(stock_pool_name: str): function get_stock_pools (line 77) | def get_stock_pools(stock_pool_name: str): function get_main_tag_info (line 92) | def get_main_tag_info(): function get_sub_tag_info (line 102) | def get_sub_tag_info(): function get_main_tag_sub_tag_relation (line 112) | def get_main_tag_sub_tag_relation(main_tag): function get_industry_info (line 117) | def get_industry_info(): function get_main_tag_industry_relation (line 127) | def get_main_tag_industry_relation(main_tag): function get_hidden_tag_info (line 132) | def get_hidden_tag_info(): function create_main_tag_info (line 142) | def create_main_tag_info(tag_info: CreateTagInfoModel): function delete_main_tag (line 147) | def delete_main_tag(tag: str): function create_sub_tag_info (line 153) | def create_sub_tag_info(tag_info: CreateTagInfoModel): function delete_sub_tag (line 158) | def delete_sub_tag(tag: str): function create_hidden_tag_info (line 164) | def create_hidden_tag_info(tag_info: CreateTagInfoModel): function delete_hidden_tag (line 169) | def delete_hidden_tag(tag: str): function query_stock_tags (line 175) | def query_stock_tags(query_stock_tags_model: QueryStockTagsModel): function query_simple_stock_tags (line 191) | def query_simple_stock_tags(query_simple_stock_tags_model: QuerySimpleSt... function get_stock_tag_options (line 222) | def get_stock_tag_options(entity_id: str): function set_stock_tags (line 230) | def set_stock_tags(set_stock_tags_model: SetStockTagsModel): function build_stock_tags (line 240) | def build_stock_tags(set_stock_tags_model_list: List[SetStockTagsModel]): function query_stock_tag_stats (line 253) | def query_stock_tag_stats(query_stock_tag_stats_model: QueryStockTagStat... function get_main_tags_in_stock_pool (line 262) | def get_main_tags_in_stock_pool(stock_pool_name: str): function activate_sub_tags (line 271) | def activate_sub_tags(activate_sub_tags_model: ActivateSubTagsModel): function batch_set_stock_tags (line 280) | def batch_set_stock_tags(batch_set_stock_tags_model: BatchSetStockTagsMo... function build_main_tag_industry_relation (line 285) | def build_main_tag_industry_relation(build_relation_model: BuildMainTagI... function build_main_tag_sub_tag_relation (line 291) | def build_main_tag_sub_tag_relation(build_relation_model: BuildMainTagSu... function change_main_tag (line 297) | def change_main_tag(change_main_tag_model: ChangeMainTagModel): FILE: src/zvt/samples/stock_traders.py class MyMaTrader (line 8) | class MyMaTrader(StockTrader): method init_factors (line 9) | def init_factors( class MyBullTrader (line 27) | class MyBullTrader(StockTrader): method init_factors (line 28) | def init_factors( FILE: src/zvt/sched/sched.py function sched_tasks (line 24) | def sched_tasks(): FILE: src/zvt/tag/ai_suggestion.py function normalize_tag_suggestions (line 20) | def normalize_tag_suggestions(tag_suggestions): function set_stock_news_tag_suggestions (line 39) | def set_stock_news_tag_suggestions(stock_news, tag_suggestions, session): function build_tag_suggestions (line 52) | def build_tag_suggestions(entity_id): function extract_info (line 145) | def extract_info(tag_dict): function build_tag_suggestions_stats (line 153) | def build_tag_suggestions_stats(): FILE: src/zvt/tag/common.py class StockPoolType (line 5) | class StockPoolType(Enum): class DynamicPoolType (line 11) | class DynamicPoolType(Enum): class InsertMode (line 16) | class InsertMode(Enum): class TagType (line 21) | class TagType(Enum): class TagStatsQueryType (line 28) | class TagStatsQueryType(Enum): FILE: src/zvt/tag/tag_models.py class TagInfoModel (line 12) | class TagInfoModel(MixinModel): class CreateTagInfoModel (line 18) | class CreateTagInfoModel(CustomModel): class IndustryInfoModel (line 23) | class IndustryInfoModel(MixinModel): class MainTagIndustryRelation (line 30) | class MainTagIndustryRelation(CustomModel): class BuildMainTagIndustryRelationModel (line 35) | class BuildMainTagIndustryRelationModel(CustomModel): class MainTagSubTagRelation (line 41) | class MainTagSubTagRelation(CustomModel): class BuildMainTagSubTagRelationModel (line 46) | class BuildMainTagSubTagRelationModel(CustomModel): class ChangeMainTagModel (line 52) | class ChangeMainTagModel(CustomModel): class StockTagsModel (line 57) | class StockTagsModel(MixinModel): class SimpleStockTagsModel (line 71) | class SimpleStockTagsModel(CustomModel): class QueryStockTagsModel (line 85) | class QueryStockTagsModel(CustomModel): class QuerySimpleStockTagsModel (line 89) | class QuerySimpleStockTagsModel(CustomModel): class BatchSetStockTagsModel (line 93) | class BatchSetStockTagsModel(CustomModel): class TagParameter (line 100) | class TagParameter(CustomModel): class StockTagOptions (line 109) | class StockTagOptions(CustomModel): class SetStockTagsModel (line 119) | class SetStockTagsModel(CustomModel): class StockPoolModel (line 151) | class StockPoolModel(MixinModel): class StockPoolInfoModel (line 156) | class StockPoolInfoModel(MixinModel): class CreateStockPoolInfoModel (line 161) | class CreateStockPoolInfoModel(CustomModel): method stock_pool_name_existed (line 167) | def stock_pool_name_existed(cls, v: str) -> str: class StockPoolsModel (line 173) | class StockPoolsModel(MixinModel): class CreateStockPoolsModel (line 178) | class CreateStockPoolsModel(CustomModel): class QueryStockTagStatsModel (line 193) | class QueryStockTagStatsModel(CustomModel): method phone_or_mobile_must_set_only_one (line 200) | def phone_or_mobile_must_set_only_one(cls, v, validation_info: Validat... method stock_pool_name_must_be_in (line 217) | def stock_pool_name_must_be_in(cls, v: str) -> str: class StockTagDetailsModel (line 224) | class StockTagDetailsModel(CustomModel): class StockTagStatsModel (line 258) | class StockTagStatsModel(MixinModel): class ActivateSubTagsModel (line 269) | class ActivateSubTagsModel(CustomModel): class ActivateSubTagsResultModel (line 273) | class ActivateSubTagsResultModel(CustomModel): FILE: src/zvt/tag/tag_schemas.py class IndustryInfo (line 12) | class IndustryInfo(StockTagsBase, Mixin): class MainTagInfo (line 21) | class MainTagInfo(StockTagsBase, Mixin): class SubTagInfo (line 28) | class SubTagInfo(StockTagsBase, Mixin): class HiddenTagInfo (line 38) | class HiddenTagInfo(StockTagsBase, Mixin): class StockTags (line 45) | class StockTags(StockTagsBase, Mixin): class StockSystemTags (line 70) | class StockSystemTags(StockTagsBase, Mixin): class StockPoolInfo (line 100) | class StockPoolInfo(StockTagsBase, Mixin): class StockPools (line 106) | class StockPools(StockTagsBase, Mixin): class TagStats (line 115) | class TagStats(StockTagsBase, Mixin): FILE: src/zvt/tag/tag_service.py function _stock_tags_need_update (line 50) | def _stock_tags_need_update(stock_tags: StockTags, set_stock_tags_model:... function get_stock_tag_options (line 62) | def get_stock_tag_options(entity_id: str) -> StockTagOptions: function build_stock_tags (line 137) | def build_stock_tags( function build_tag_parameter (line 230) | def build_tag_parameter(tag_type: TagType, tag, tag_reason, stock_tag: S... function batch_set_stock_tags (line 276) | def batch_set_stock_tags(batch_set_stock_tags_model: BatchSetStockTagsMo... function build_default_main_tag (line 343) | def build_default_main_tag(entity_type="stock", entity_ids=None, force_r... function build_default_sub_tags (line 405) | def build_default_sub_tags(entity_ids=None): function get_tag_info_schema (line 471) | def get_tag_info_schema(tag_type: TagType): function is_tag_info_existed (line 484) | def is_tag_info_existed(tag: str, tag_type: TagType): function create_tag_info (line 495) | def create_tag_info(tag_info: CreateTagInfoModel, tag_type: TagType): function build_stock_pool_info (line 519) | def build_stock_pool_info(create_stock_pool_info_model: CreateStockPoolI... function build_stock_pool (line 534) | def build_stock_pool(create_stock_pools_model: CreateStockPoolsModel, ta... function delete_stock_pool (line 574) | def delete_stock_pool(stock_pool_name: str): function get_main_tags_in_stock_pool (line 591) | def get_main_tags_in_stock_pool(stock_pool_name: str) -> List[str]: function query_stock_tag_stats (line 628) | def query_stock_tag_stats(query_stock_tag_stats_model: QueryStockTagStat... function refresh_main_tag_by_sub_tag (line 703) | def refresh_main_tag_by_sub_tag(stock_tag: StockTags, set_by_user=False)... function refresh_all_main_tag_by_sub_tag (line 735) | def refresh_all_main_tag_by_sub_tag(): function reset_to_default_main_tag (line 745) | def reset_to_default_main_tag(current_main_tag: str): function activate_industry_list (line 758) | def activate_industry_list(industry_list: List[str]): function activate_sub_tags (line 775) | def activate_sub_tags(activate_sub_tags_model: ActivateSubTagsModel): function delete_main_tag (line 808) | def delete_main_tag(main_tag: str): function delete_sub_tag (line 851) | def delete_sub_tag(sub_tag: str): function delete_hidden_tag (line 886) | def delete_hidden_tag(hidden_tag: str): function delete_tag (line 916) | def delete_tag(tag: str, tag_type: TagType): function _create_main_tag_if_not_existed (line 940) | def _create_main_tag_if_not_existed(main_tag, main_tag_reason): function get_main_tag_industry_relation (line 946) | def get_main_tag_industry_relation(main_tag): function get_main_tag_sub_tag_relation (line 957) | def get_main_tag_sub_tag_relation(main_tag): function build_main_tag_industry_relation (line 968) | def build_main_tag_industry_relation(build_relation_model: BuildMainTagI... function build_main_tag_sub_tag_relation (line 998) | def build_main_tag_sub_tag_relation(build_relation_model: BuildMainTagIn... function change_main_tag (line 1030) | def change_main_tag(change_main_tag_model: ChangeMainTagModel): FILE: src/zvt/tag/tag_stats.py function build_system_stock_pools (line 23) | def build_system_stock_pools(start_date, entity_type, force_update=False): function build_stock_pool_tag_stats (line 85) | def build_stock_pool_tag_stats( function refresh_stock_pool (line 196) | def refresh_stock_pool(stock_pool_name, entity_ids, insert_mode=InsertMo... function get_tags_order_by_position (line 204) | def get_tags_order_by_position(stock_pool_name, entity_type="stock"): FILE: src/zvt/tag/tag_utils.py function _get_default_industry_main_tag_mapping (line 16) | def _get_default_industry_main_tag_mapping() -> Dict[str, str]: function _get_default_main_tag_industry_mapping (line 28) | def _get_default_main_tag_industry_mapping() -> Dict[str, List[str]]: function _get_default_concept_main_tag_mapping (line 37) | def _get_default_concept_main_tag_mapping() -> Dict[str, str]: function _get_default_main_tag_concept_mapping (line 42) | def _get_default_main_tag_concept_mapping() -> Dict[str, List[str]]: function _get_initial_sub_tags (line 51) | def _get_initial_sub_tags() -> List[str]: function _get_industry_list (line 55) | def _get_industry_list(): function _get_concept_list (line 62) | def _get_concept_list(): function _check_missed_industry (line 70) | def _check_missed_industry(): function _check_missed_concept (line 75) | def _check_missed_concept(): function _get_initial_main_tag_info (line 80) | def _get_initial_main_tag_info(): function _get_initial_industry_info (line 111) | def _get_initial_industry_info(): function _get_initial_sub_tag_info (line 128) | def _get_initial_sub_tag_info(): function _get_initial_stock_pool_info (line 145) | def _get_initial_stock_pool_info(): function _get_initial_hidden_tag_info (line 169) | def _get_initial_hidden_tag_info(): function build_initial_main_tag_info (line 184) | def build_initial_main_tag_info(force_update=False): function build_initial_industry_info (line 190) | def build_initial_industry_info(force_update=False): function build_initial_sub_tag_info (line 196) | def build_initial_sub_tag_info(force_update=False): function build_initial_stock_pool_info (line 202) | def build_initial_stock_pool_info(force_update=False): function build_initial_hidden_tag_info (line 208) | def build_initial_hidden_tag_info(force_update=False): function get_main_tags (line 214) | def get_main_tags(): function get_main_tag_by_sub_tag (line 219) | def get_main_tag_by_sub_tag(sub_tag): function get_main_tag_by_industry (line 227) | def get_main_tag_by_industry(industry_name): function get_sub_tags (line 237) | def get_sub_tags(): function get_hidden_tags (line 242) | def get_hidden_tags(): function get_stock_pool_names (line 247) | def get_stock_pool_names(): function match_tag_by_type (line 252) | def match_tag_by_type(alias, tag_type="main_tag"): function match_tag (line 278) | def match_tag(alias): FILE: src/zvt/tag/tagger.py class Tagger (line 16) | class Tagger(OneStateService): method __init__ (line 25) | def __init__(self, force=False) -> None: method tag (line 36) | def tag(self): class StockTagger (line 40) | class StockTagger(Tagger): method tag (line 44) | def tag(self): FILE: src/zvt/tasks/qmt_data_runner.py function download_data (line 17) | def download_data(download_tick=False): FILE: src/zvt/tasks/stock_pool_runner.py function report_limit_up (line 36) | def report_limit_up(): function record_stock_data (line 45) | def record_stock_data(data_provider="em", entity_provider="em", sleeping... function record_stock_data_and_build_stock_pools (line 114) | def record_stock_data_and_build_stock_pools(provider="em", adjust_type=A... FILE: src/zvt/tasks/today_shoot_runner.py function calculate_shoot (line 25) | def calculate_shoot(): FILE: src/zvt/tasks/today_top_runner.py function calculate_top (line 25) | def calculate_top(clear_em=True): FILE: src/zvt/trader/__init__.py class TradingSignalType (line 11) | class TradingSignalType(Enum): class OrderType (line 20) | class OrderType(Enum): function trading_signal_type_to_order_type (line 27) | def trading_signal_type_to_order_type(trading_signal_type): class TradingSignal (line 39) | class TradingSignal: method __init__ (line 40) | def __init__( class TradingListener (line 77) | class TradingListener(object): method on_trading_open (line 78) | def on_trading_open(self, timestamp): method on_trading_signals (line 81) | def on_trading_signals(self, trading_signals: List[TradingSignal]): method on_trading_close (line 84) | def on_trading_close(self, timestamp): method on_trading_finish (line 87) | def on_trading_finish(self, timestamp): method on_trading_error (line 90) | def on_trading_error(self, timestamp, error): class AccountService (line 94) | class AccountService(TradingListener): method get_positions (line 95) | def get_positions(self): method get_current_position (line 98) | def get_current_position(self, entity_id, create_if_not_exist=False): method get_current_account (line 106) | def get_current_account(self): method order_by_position_pct (line 109) | def order_by_position_pct( method order_by_money (line 119) | def order_by_money( method order_by_amount (line 129) | def order_by_amount( FILE: src/zvt/trader/errors.py class TraderError (line 2) | class TraderError(Exception): class InvalidOrderParamError (line 8) | class InvalidOrderParamError(TraderError): method __init__ (line 9) | def __init__(self, message="invalid order param"): class NotEnoughMoneyError (line 13) | class NotEnoughMoneyError(TraderError): method __init__ (line 14) | def __init__(self, message="not enough money"): class NotEnoughPositionError (line 18) | class NotEnoughPositionError(TraderError): method __init__ (line 19) | def __init__(self, message="not enough position"): class InvalidOrderError (line 23) | class InvalidOrderError(TraderError): method __init__ (line 24) | def __init__(self, message="invalid order"): class WrongKdataError (line 28) | class WrongKdataError(TraderError): method __init__ (line 29) | def __init__(self, message="wrong kdata"): FILE: src/zvt/trader/sim_account.py class SimAccountService (line 25) | class SimAccountService(AccountService): method __init__ (line 26) | def __init__( method input_money (line 70) | def input_money(self, money=1000000): method clear_account (line 74) | def clear_account(self): method init_account (line 81) | def init_account(self) -> AccountStats: method load_account (line 121) | def load_account(self) -> AccountStats: method on_trading_open (line 149) | def on_trading_open(self, timestamp): method on_trading_error (line 155) | def on_trading_error(self, timestamp, error): method on_trading_finish (line 158) | def on_trading_finish(self, timestamp): method on_trading_signals (line 161) | def on_trading_signals(self, trading_signals: List[TradingSignal]): method handle_trading_signal (line 169) | def handle_trading_signal(self, trading_signal: TradingSignal): method on_trading_close (line 235) | def on_trading_close(self, timestamp): method get_current_position (line 305) | def get_current_position(self, entity_id, create_if_not_exist=False) -... method get_current_account (line 336) | def get_current_account(self): method update_position (line 339) | def update_position(self, current_position, order_amount, current_pric... method cal_amount_by_money (line 430) | def cal_amount_by_money( method cal_amount_by_position_pct (line 446) | def cal_amount_by_position_pct(self, entity_id, order_price: float, or... method order_by_position_pct (line 474) | def order_by_position_pct( method order_by_money (line 494) | def order_by_money( method order_by_amount (line 514) | def order_by_amount( FILE: src/zvt/trader/trader.py class Trader (line 26) | class Trader(object): method __init__ (line 29) | def __init__( method on_init (line 134) | def on_init(self): method init_entities (line 137) | def init_entities(self, timestamp): method init_factors (line 147) | def init_factors( method update_targets_by_level (line 157) | def update_targets_by_level( method get_long_targets_by_level (line 180) | def get_long_targets_by_level(self, level: IntervalLevel) -> List[str]: method get_short_targets_by_level (line 183) | def get_short_targets_by_level(self, level: IntervalLevel) -> List[str]: method on_targets_selected_from_levels (line 186) | def on_targets_selected_from_levels(self, timestamp) -> Tuple[List[str... method get_current_account (line 223) | def get_current_account(self) -> AccountStats: method get_current_positions (line 226) | def get_current_positions(self) -> List[Position]: method long_position_control (line 229) | def long_position_control(self): method short_position_control (line 243) | def short_position_control(self): method on_profit_control (line 247) | def on_profit_control(self): method buy (line 266) | def buy(self, timestamp, entity_ids, ignore_in_position=True): method sell (line 295) | def sell(self, timestamp, entity_ids): method on_finish (line 321) | def on_finish(self, timestamp): method on_factor_targets_filtered (line 332) | def on_factor_targets_filtered( method in_trading_date (line 353) | def in_trading_date(self, timestamp): method on_time (line 356) | def on_time(self, timestamp: pd.Timestamp): method on_trading_signals (line 364) | def on_trading_signals(self, trading_signals: List[TradingSignal]): method on_trading_open (line 370) | def on_trading_open(self, timestamp): method on_trading_close (line 374) | def on_trading_close(self, timestamp): method on_trading_finish (line 378) | def on_trading_finish(self, timestamp): method on_trading_error (line 382) | def on_trading_error(self, timestamp, error): method on_non_trading_day (line 386) | def on_non_trading_day(self, timestamp): method get_factors_by_level (line 389) | def get_factors_by_level(self, level): method handle_factor_targets (line 392) | def handle_factor_targets(self, timestamp: pd.Timestamp): method run (line 434) | def run(self): method register_trading_signal_listener (line 526) | def register_trading_signal_listener(self, listener): method deregister_trading_signal_listener (line 530) | def deregister_trading_signal_listener(self, listener): class StockTrader (line 535) | class StockTrader(Trader): method __init__ (line 538) | def __init__( FILE: src/zvt/trader/trader_info_api.py function clear_trader (line 14) | def clear_trader(trader_name, session=None): function get_trader_info (line 24) | def get_trader_info( function get_order_securities (line 57) | def get_order_securities(trader_name): class AccountStatsReader (line 69) | class AccountStatsReader(DataReader): method __init__ (line 70) | def __init__( method draw_line (line 110) | def draw_line(self, show=True): class OrderReader (line 119) | class OrderReader(DataReader): method __init__ (line 120) | def __init__( FILE: src/zvt/trader/trader_models.py class PositionModel (line 7) | class PositionModel(MixinModel): class AccountStatsModel (line 32) | class AccountStatsModel(MixinModel): FILE: src/zvt/trader/trader_schemas.py class TraderInfo (line 13) | class TraderInfo(TraderBase, Mixin): class AccountStats (line 33) | class AccountStats(TraderBase, Mixin): class Position (line 63) | class Position(TraderBase, Mixin): class Order (line 97) | class Order(TraderBase, Mixin): FILE: src/zvt/trading/common.py class ExecutionStatus (line 5) | class ExecutionStatus(Enum): FILE: src/zvt/trading/trading_models.py class KdataRequestModel (line 19) | class KdataRequestModel(BaseModel): class KdataModel (line 28) | class KdataModel(BaseModel): class TSRequestModel (line 36) | class TSRequestModel(BaseModel): class TSModel (line 42) | class TSModel(BaseModel): class QuoteStatsModel (line 49) | class QuoteStatsModel(BaseModel): class QueryStockQuoteSettingModel (line 70) | class QueryStockQuoteSettingModel(CustomModel): class BuildQueryStockQuoteSettingModel (line 75) | class BuildQueryStockQuoteSettingModel(CustomModel): method stock_pool_name_existed (line 81) | def stock_pool_name_existed(cls, v: str) -> str: class QueryTagQuoteModel (line 87) | class QueryTagQuoteModel(CustomModel): class QueryStockQuoteModel (line 92) | class QueryStockQuoteModel(CustomModel): class StockQuoteModel (line 102) | class StockQuoteModel(MixinModel): class TagQuoteStatsModel (line 140) | class TagQuoteStatsModel(CustomModel): class StockQuoteStatsModel (line 156) | class StockQuoteStatsModel(CustomModel): class TradingPlanModel (line 173) | class TradingPlanModel(MixinModel): class BuildTradingPlanModel (line 193) | class BuildTradingPlanModel(BaseModel): method trading_date_must_be_future (line 208) | def trading_date_must_be_future(cls, v: str) -> str: class QueryTradingPlanModel (line 214) | class QueryTradingPlanModel(BaseModel): FILE: src/zvt/trading/trading_schemas.py class TagQuoteStats (line 12) | class TagQuoteStats(Mixin, TradingBase): class TradingPlan (line 24) | class TradingPlan(TradingBase, Mixin): class QueryStockQuoteSetting (line 44) | class QueryStockQuoteSetting(TradingBase, Mixin): FILE: src/zvt/trading/trading_service.py function query_kdata (line 40) | def query_kdata(kdata_request_model: KdataRequestModel): function query_ts (line 66) | def query_ts(ts_request_model: TSRequestModel): function build_trading_plan (line 89) | def build_trading_plan(build_trading_plan_model: BuildTradingPlanModel): function query_trading_plan (line 127) | def query_trading_plan(query_trading_plan_model: QueryTradingPlanModel): function get_current_trading_plan (line 144) | def get_current_trading_plan(): function get_future_trading_plan (line 154) | def get_future_trading_plan(): function check_trading_plan (line 164) | def check_trading_plan(): function query_quote_stats (line 176) | def query_quote_stats(): function cal_quote_stats (line 221) | def cal_quote_stats(quote_df): function cal_tag_quote_stats (line 242) | def cal_tag_quote_stats(stock_pool_name): function query_tag_quotes (line 298) | def query_tag_quotes(query_tag_quote_model: QueryTagQuoteModel): function query_stock_quotes (line 353) | def query_stock_quotes(query_stock_quote_model: QueryStockQuoteModel): function buy_stocks (line 454) | def buy_stocks(): function sell_stocks (line 458) | def sell_stocks(): function build_query_stock_quote_setting (line 462) | def build_query_stock_quote_setting(build_query_stock_quote_setting_mode... function build_default_query_stock_quote_setting (line 479) | def build_default_query_stock_quote_setting(): FILE: src/zvt/ui/apps/factor_app.py function order_type_flag (line 30) | def order_type_flag(order_type): function order_type_color (line 37) | def order_type_color(order_type): function load_traders (line 44) | def load_traders(): function factor_layout (line 63) | def factor_layout(): function update_trader_details (line 213) | def update_trader_details(trader_index, entity_type, entity_provider): function update_entity_selector (line 258) | def update_entity_selector(entity_type, related): function update_column_selector (line 269) | def update_column_selector(schema_name): function update_factor_details (line 289) | def update_factor_details(factor, entity_type, entity, levels, columns, ... FILE: src/zvt/ui/components/dcc_components.py function order_type_color (line 14) | def order_type_color(order_type): function order_type_flag (line 21) | def order_type_flag(order_type): function get_trading_signals_figure (line 28) | def get_trading_signals_figure( function get_account_stats_figure (line 61) | def get_account_stats_figure(account_stats_reader: AccountStatsReader): FILE: src/zvt/utils/decorator.py function to_string (line 2) | def to_string(cls): FILE: src/zvt/utils/file_utils.py function list_all_files (line 6) | def list_all_files( FILE: src/zvt/utils/git_utils.py function get_git_user_name (line 5) | def get_git_user_name(): function get_git_user_email (line 12) | def get_git_user_email(): FILE: src/zvt/utils/model_utils.py function update_model (line 2) | def update_model(db_model, schema): FILE: src/zvt/utils/pd_utils.py function drop_continue_duplicate (line 7) | def drop_continue_duplicate(s: Union[pd.Series, pd.DataFrame], col=None): function is_filter_result_df (line 16) | def is_filter_result_df(df: pd.DataFrame): function is_score_result_df (line 20) | def is_score_result_df(df: pd.DataFrame): function pd_is_not_null (line 24) | def pd_is_not_null(df: Union[pd.DataFrame, pd.Series]): function group_by_entity_id (line 28) | def group_by_entity_id(input_df: pd.DataFrame): function normalize_group_compute_result (line 32) | def normalize_group_compute_result(group_result): function merge_filter_result (line 38) | def merge_filter_result(input_df: pd.DataFrame, filter_result: pd.Series): function index_df (line 47) | def index_df(df, index="timestamp", inplace=True, drop=False, time_field... function normal_index_df (line 65) | def normal_index_df(df, category_field="entity_id", time_filed="timestam... function is_normal_df (line 84) | def is_normal_df(df, category_field="entity_id", time_filed="timestamp"): function df_subset (line 94) | def df_subset(df, columns=None): function fill_with_same_index (line 100) | def fill_with_same_index(df_list: List[pd.DataFrame]): FILE: src/zvt/utils/recorder_utils.py function run_data_recorder (line 13) | def run_data_recorder( FILE: src/zvt/utils/str_utils.py function to_snake_str (line 4) | def to_snake_str(input: str) -> str: function to_camel_str (line 23) | def to_camel_str(input: str) -> str: FILE: src/zvt/utils/time_utils.py function to_pd_timestamp (line 31) | def to_pd_timestamp(the_time, tz=None) -> pd.Timestamp | None: function get_local_timezone (line 46) | def get_local_timezone(): function to_timestamp_ms (line 53) | def to_timestamp_ms(the_time, tz=None) -> int: function now_timestamp_ms (line 66) | def now_timestamp_ms(): function now_pd_timestamp (line 70) | def now_pd_timestamp(tz=None) -> pd.Timestamp: function current_date (line 77) | def current_date(tz=None) -> pd.Timestamp: function tomorrow_date (line 81) | def tomorrow_date(tz=None): function to_date_time_str (line 85) | def to_date_time_str(date_time, fmt=TIME_FORMAT_DAY, tz=None): function now_date_time_str (line 92) | def now_date_time_str(fmt=TIME_FORMAT_DAY, tz=None): function recent_year_date (line 96) | def recent_year_date(tz=None): function next_date (line 100) | def next_date(the_time, tz=None): function date_time_by_interval (line 110) | def date_time_by_interval(the_time, interval=1, unit: TimeUnit = TimeUni... function pre_month (line 126) | def pre_month(t=None, tz=None): function pre_month_start_date (line 142) | def pre_month_start_date(t=current_date()): function pre_month_end_date (line 146) | def pre_month_end_date(t=current_date()): function month_start_date (line 150) | def month_start_date(the_date): function month_end_date (line 155) | def month_end_date(the_date): function month_start_end_ranges (line 162) | def month_start_end_ranges(start_date, end_date): function is_same_date (line 167) | def is_same_date(one, two): function is_same_date_time (line 171) | def is_same_date_time(one, two): function get_year_quarter (line 175) | def get_year_quarter(time): function day_offset_today (line 180) | def day_offset_today(offset=0): function get_year_quarters (line 184) | def get_year_quarters(start, end=pd.Timestamp.now()): function date_and_time (line 203) | def date_and_time(the_date, the_time, tz=None): function split_time_interval (line 209) | def split_time_interval(start, end, method=None, interval=30, freq="D"): function count_interval (line 227) | def count_interval(start_date, end_date): FILE: src/zvt/utils/utils.py function first_item_to_float (line 17) | def first_item_to_float(the_list): function second_item_to_float (line 21) | def second_item_to_float(the_list): function add_func_to_value (line 25) | def add_func_to_value(the_map, the_func): function to_float (line 31) | def to_float(the_str, default=None): function pct_to_float (line 59) | def pct_to_float(the_str, default=None): function float_to_pct (line 70) | def float_to_pct(input_float: float) -> str: function format_number_to_yi (line 75) | def format_number_to_yi(number): function json_callback_param (line 79) | def json_callback_param(the_str): function fill_domain_from_dict (line 84) | def fill_domain_from_dict(the_domain, the_dict: dict, the_map: dict = No... function read_csv (line 125) | def read_csv(f, encoding, sep=None, na_values=None): function chrome_copy_header_to_dict (line 140) | def chrome_copy_header_to_dict(src): function to_positive_number (line 156) | def to_positive_number(number): function multiple_number (line 163) | def multiple_number(number, factor): function add_to_map_list (line 170) | def add_to_map_list(the_map, key, value): function iterate_with_step (line 181) | def iterate_with_step(data, sub_size=100): function url_unquote (line 197) | def url_unquote(url): function parse_url_params (line 201) | def parse_url_params(url): function set_one_and_only_one (line 206) | def set_one_and_only_one(**kwargs): function flatten_list (line 218) | def flatten_list(input_list): function to_str (line 232) | def to_str(str_or_list): function compare_dicts (line 242) | def compare_dicts(dict1, dict2): function fill_dict (line 264) | def fill_dict(src, dst): FILE: src/zvt/utils/zip_utils.py function zip_dir (line 9) | def zip_dir(src_dir, dst_dir=None, zip_file_name=None): function unzip (line 33) | def unzip(zip_file, dst_dir): FILE: src/zvt/zvt_server.py function root (line 31) | async def root(): function main (line 44) | def main(): FILE: tests/api/test_common.py function test_to_high_level_kdata (line 10) | def test_to_high_level_kdata(): function test_get_recent_report_date (line 19) | def test_get_recent_report_date(): FILE: tests/api/test_dividend_financing.py function test_000778_spo_detial (line 13) | def test_000778_spo_detial(): function test_000778_rights_issue_detail (line 31) | def test_000778_rights_issue_detail(): function test_000778_dividend_financing (line 49) | def test_000778_dividend_financing(): FILE: tests/api/test_finance.py function test_000001_finance_factor (line 13) | def test_000001_finance_factor(): function test_000001_balance_sheet (line 155) | def test_000001_balance_sheet(): function test_000001_income_statement (line 308) | def test_000001_income_statement(): function test_000001_cash_flow_statement (line 440) | def test_000001_cash_flow_statement(): function test_000778_finance_factor (line 574) | def test_000778_finance_factor(): function test_000778_balance_sheet (line 714) | def test_000778_balance_sheet(): function test_000778_income_statement (line 865) | def test_000778_income_statement(): function test_000778_cash_flow_statement (line 998) | def test_000778_cash_flow_statement(): FILE: tests/api/test_holder.py function test_000778_top_ten_holder (line 14) | def test_000778_top_ten_holder(): function test_000778_top_ten_tradable_holder (line 32) | def test_000778_top_ten_tradable_holder(): FILE: tests/api/test_intent.py function test_compare_kdata (line 8) | def test_compare_kdata(): function test_compare_line (line 14) | def test_compare_line(): function test_compare_scatter (line 19) | def test_compare_scatter(): function test_compare_area (line 26) | def test_compare_area(): function test_compare_bar (line 31) | def test_compare_bar(): function test_distribute (line 36) | def test_distribute(): function test_composite (line 40) | def test_composite(): function test_composite_all (line 67) | def test_composite_all(): FILE: tests/api/test_joinquant_quotes.py function test_jq_603220_kdata (line 13) | def test_jq_603220_kdata(): FILE: tests/api/test_kdata.py function test_jq_1mon_kdata (line 7) | def test_jq_1mon_kdata(): function test_jq_1wk_kdata (line 17) | def test_jq_1wk_kdata(): function test_jq_1d_kdata (line 22) | def test_jq_1d_kdata(): function test_jq_1d_hfq_kdata (line 34) | def test_jq_1d_hfq_kdata(): function test_get_latest_kdata_date (line 44) | def test_get_latest_kdata_date(): FILE: tests/api/test_technical.py function test_basic_get_securities (line 8) | def test_basic_get_securities(): FILE: tests/api/test_trading.py function test_000778_holder_trading (line 14) | def test_000778_holder_trading(): function test_000778_manager_trading (line 32) | def test_000778_manager_trading(): FILE: tests/context.py function init_test_context (line 4) | def init_test_context(): FILE: tests/contract/test_add_provider_plugin.py function test_add_tushare_provider (line 4) | def test_add_tushare_provider(): FILE: tests/contract/test_entity.py function test_get_1min_timestamps (line 6) | def test_get_1min_timestamps(): function test_get_1h_timestamps (line 24) | def test_get_1h_timestamps(): function test_is_finished_kdata_timestamp (line 42) | def test_is_finished_kdata_timestamp(): function test_open_close (line 53) | def test_open_close(): FILE: tests/contract/test_reader.py function test_china_stock_reader (line 16) | def test_china_stock_reader(): function test_reader_move_on (line 50) | def test_reader_move_on(): FILE: tests/contract/test_schema.py function test_stock_trading_time (line 5) | def test_stock_trading_time(): function test_stock_hk_trading_time (line 37) | def test_stock_hk_trading_time(): function test_stock_us_trading_time (line 71) | def test_stock_us_trading_time(): FILE: tests/factors/test_algorithm.py function test_point_in_range (line 5) | def test_point_in_range(): function test_intersect (line 14) | def test_intersect(): function test_intersect_ranges (line 31) | def test_intersect_ranges(): function test_combine (line 54) | def test_combine(): function test_distance (line 71) | def test_distance(): FILE: tests/factors/test_factor_select_targets.py function test_cross_ma_select_targets (line 12) | def test_cross_ma_select_targets(): function test_bull_select_targets (line 30) | def test_bull_select_targets(): FILE: tests/factors/test_factors.py function test_zen_factor (line 5) | def test_zen_factor(): FILE: tests/factors/test_technical_factor.py function test_ma (line 12) | def test_ma(): function test_macd (line 45) | def test_macd(): function test_cross_ma (line 78) | def test_cross_ma(): FILE: tests/factors/test_transformers.py function test_ma_transformer (line 6) | def test_ma_transformer(): function test_MacdTransformer (line 21) | def test_MacdTransformer(): FILE: tests/ml/test_sgd.py function test_sgd_classification (line 14) | def test_sgd_classification(): function test_sgd_regressor (line 30) | def test_sgd_regressor(): FILE: tests/recorders/common/test_china_stock_list_recorder.py function test_china_stock_recorder (line 9) | def test_china_stock_recorder(): FILE: tests/recorders/eastmoney/test_dividend_financing_recorder.py function test_dividend_detail (line 10) | def test_dividend_detail(): function test_rights_issue_detail (line 17) | def test_rights_issue_detail(): function test_spo_detail (line 24) | def test_spo_detail(): function test_dividend_financing (line 31) | def test_dividend_financing(): FILE: tests/recorders/eastmoney/test_finance.py function test_finance_factor_recorder (line 14) | def test_finance_factor_recorder(): function test_cash_flow_recorder (line 22) | def test_cash_flow_recorder(): function test_balance_sheet_recorder (line 30) | def test_balance_sheet_recorder(): function test_income_statement_recorder (line 38) | def test_income_statement_recorder(): FILE: tests/recorders/eastmoney/test_holder_recorder.py function test_top_ten_holder_recorder (line 12) | def test_top_ten_holder_recorder(): function test_top_ten_tradable_holder_recorder (line 20) | def test_top_ten_tradable_holder_recorder(): FILE: tests/recorders/eastmoney/test_meta_recorder.py function test_meta_recorder (line 11) | def test_meta_recorder(): FILE: tests/recorders/eastmoney/test_trading_recorder.py function test_manager_trading_recorder (line 12) | def test_manager_trading_recorder(): function test_holder_trading_recorder (line 20) | def test_holder_trading_recorder(): FILE: tests/recorders/em/test_em_api.py function test_get_kdata (line 8) | def test_get_kdata(): FILE: tests/recorders/joinquant/test_quote_recorder.py function test_1wk_kdata_recorder (line 12) | def test_1wk_kdata_recorder(): function test_1mon_kdata_recorder (line 22) | def test_1mon_kdata_recorder(): function test_1d_kdata_recorder (line 32) | def test_1d_kdata_recorder(): function test_1d_hfq_kdata_recorder (line 42) | def test_1d_hfq_kdata_recorder(): function test_1h_kdata_recorder (line 52) | def test_1h_kdata_recorder(): function test_5m_kdata_recorder (line 66) | def test_5m_kdata_recorder(): FILE: tests/recorders/joinquant/test_stock_money_flow.py function test_stock_money_flow (line 5) | def test_stock_money_flow(): FILE: tests/test_generator.py function test_remove_start_end (line 5) | def test_remove_start_end(): FILE: tests/trader/test_trader.py class SingleTrader (line 11) | class SingleTrader(StockTrader): method on_time (line 12) | def on_time(self, timestamp): method long_position_control (line 18) | def long_position_control(self): function test_single_trader (line 22) | def test_single_trader(): class MultipleTrader (line 65) | class MultipleTrader(StockTrader): method on_time (line 68) | def on_time(self, timestamp): method long_position_control (line 79) | def long_position_control(self): function test_multiple_trader (line 88) | def test_multiple_trader(): function test_basic_trader (line 151) | def test_basic_trader(): FILE: tests/utils/test_pd_utils.py function test_drop_continue_duplicate (line 7) | def test_drop_continue_duplicate(): FILE: tests/utils/test_time_utils.py function test_evaluate_size_from_timestamp (line 13) | def test_evaluate_size_from_timestamp(): function test_next_timestamp (line 60) | def test_next_timestamp(): function test_is_finished_kdata_timestamp (line 67) | def test_is_finished_kdata_timestamp(): function test_split_time_interval (line 80) | def test_split_time_interval(): function test_split_time_interval_month (line 99) | def test_split_time_interval_month(): function test_month_start_end_range (line 119) | def test_month_start_end_range(): function test_count_interval (line 141) | def test_count_interval(): FILE: tests/utils/test_utils.py function test_iterate_with_step (line 6) | def test_iterate_with_step(): function test_iterate_entities (line 22) | def test_iterate_entities(): function test_to_str (line 35) | def test_to_str(): function test_float_to_pct (line 43) | def test_float_to_pct():