LimitUpInfo¶
- class zvt.domain.emotion.emotion.LimitUpInfo(**kwargs)¶
Bases:
Base,Mixin- __init__(**kwargs)¶
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- is_new¶
是否新股
- is_again_limit¶
是否回封,是就是打开过,否相反
- open_count¶
涨停打开次数,0代表封住就没开板
- first_limit_up_time¶
首次封板时间
- last_limit_up_time¶
最后封板时间
- limit_up_type¶
涨停类型:换手板,一字板
- order_amount¶
封单金额
- success_rate¶
最近一年封板成功率
- currency_value¶
流通市值
- change_pct¶
涨幅
- turnover_rate¶
换手率
- reason¶
涨停原因
- high_days¶
几天几板
- high_days_count¶
最近几板,不一定是连板
- entity_id¶
entity id
- classmethod get_providers() List[str]¶
providers of the schema defined by cls
- Returns:
providers
- classmethod get_storages(provider: str = None)¶
get the storages info
- Parameters:
provider – provider
- Returns:
storages
- id¶
id
- classmethod query_data(provider_index: int = 0, ids: List[str] = None, entity_ids: List[str] = None, entity_id: str = None, codes: List[str] = None, code: str = None, level: IntervalLevel | str = None, provider: str = None, columns: List = None, col_label: dict = None, return_type: str = 'df', start_timestamp: Timestamp | str = None, end_timestamp: Timestamp | str = None, filters: List = None, session: Session = None, order=None, limit: int = None, distinct=None, index: str | list = None, drop_index_col=False, time_field: str = 'timestamp')¶
query data by the arguments
- Parameters:
provider_index
data_schema
ids
entity_ids
entity_id
codes
code
level
provider
columns
col_label – dict with key(column), value(label)
return_type – df, domain or dict. default is df
start_timestamp
end_timestamp
filters
session
order
limit
index – index field name, str for single index, str list for multiple index
drop_index_col – whether drop the col if it’s in index, default False
time_field
- Returns:
results basing on return_type.
- classmethod record_data(provider_index: int = 0, provider: str = None, force_update=None, sleeping_time=None, exchanges=None, entity_id=None, entity_ids=None, code=None, codes=None, real_time=None, fix_duplicate_way=None, start_timestamp=None, end_timestamp=None, one_day_trading_minutes=None, **kwargs)¶
record data by the arguments
- Parameters:
entity_id
provider_index
provider
force_update
sleeping_time
exchanges
entity_ids
code
codes
real_time
fix_duplicate_way
start_timestamp
end_timestamp
one_day_trading_minutes
kwargs
- Returns:
- classmethod register_provider(provider)¶
register the provider to the schema defined by cls
- Parameters:
provider
- classmethod register_recorder_cls(provider, recorder_cls)¶
register the recorder for the schema
- Parameters:
provider
recorder_cls
- timestamp¶
the meaning could be different for different case,most time it means ‘happen time’ Need replace with your timezone