Introduction¶
Overview¶
Trade-Flow captured the flow of money to to various market space
SAD - System architechture design¶
Methodology¶
Flow cho dòng tiền:
Database System
DBT Flow
[Chart]
Tính dòng tiền chảy vào toàn thị trường
Tính dòng tiền chảy vào từng ngành
Tính dòng tiền
[Percentage] Mỗi cổ phiếu đóng góp bao nhiêu cho ngày
# class TRADE_FLOW_SECTOR(Component):
# __tablename__ = "trade_flow_by_sector"
# id = sa.Column(Text, primary_key=True)
# sector = sa.Column(Text, primary_key=True)
# date = sa.Column(Date, nullable=False)
# sector_trading_value = sa.Column(Numeric)
# market_trading_value = sa.Column(Numeric)
# ratio_to_market = sa.Column(Numeric)
# class SECTOR(ObjectDatabaseSetting):
# __tablename__ = "sectors"
# code = sa.Column(Integer, primary_key=True)
# name = sa.Column(Text, nullable=True)
# vietnamese = sa.Column(Text, nullable=True)
# constituents = sa.Column(Text, nullable=True)
# number_constituents = sa.Column(Integer, nullable=True)
# market_cap_billion = sa.Column(BigInteger, nullable=True)
# market_cap_percentage = sa.Column(Numeric(20, 5), nullable=True)
# trading_value_billion = sa.Column(BigInteger, nullable=True)
# avg_trading_value_20d_billion = sa.Column(BigInteger, nullable=True)