Skip to content

Commit

Permalink
Update stock_meta.py
Browse files Browse the repository at this point in the history
添加了几个比较难懂的注释,这样新人能更容易理解
  • Loading branch information
loveher147 authored Aug 11, 2021
1 parent cb507ba commit e16d8e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zvt/domain/meta/stock_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ class EtfStock(StockMetaBase, PortfolioStockHistory):
@register_entity(entity_type='stock_detail')
class StockDetail(StockMetaBase, TradableEntity):
__tablename__ = 'stock_detail'


# 所属行业
industries = Column(String)
# 行业指数
industry_indices = Column(String)
# 所属板块
concept_indices = Column(String)
# 所属区域
area_indices = Column(String)

# 成立日期
Expand All @@ -95,4 +99,4 @@ class StockDetail(StockMetaBase, TradableEntity):
schema_base=StockMetaBase)

# the __all__ is generated
__all__ = ['Stock', 'Block', 'Index', 'Etf', 'BlockStock', 'IndexStock', 'EtfStock', 'StockDetail']
__all__ = ['Stock', 'Block', 'Index', 'Etf', 'BlockStock', 'IndexStock', 'EtfStock', 'StockDetail']

0 comments on commit e16d8e2

Please sign in to comment.