챠트 데이터 웹소켓으로 연결
This commit is contained in:
@@ -128,7 +128,8 @@ class MarketData(Base):
|
||||
stock_code = Column(String(20), nullable=False, index=True)
|
||||
price = Column(Numeric(15, 2), nullable=False)
|
||||
change_rate = Column(Numeric(10, 4))
|
||||
volume = Column(Integer)
|
||||
# real‑time volume may also exceed int32; switch to bigint for safety
|
||||
volume = Column(BigInteger)
|
||||
high_price = Column(Numeric(15, 2))
|
||||
low_price = Column(Numeric(15, 2))
|
||||
open_price = Column(Numeric(15, 2))
|
||||
@@ -190,7 +191,8 @@ class StockAnalysis(Base):
|
||||
# 가격 정보
|
||||
current_price = Column(Integer, nullable=False)
|
||||
change_rate = Column(Numeric(10, 4))
|
||||
volume = Column(Integer)
|
||||
# volumes can exceed 32‑bit limits (e.g. 3 billion+), use bigint to avoid overflow
|
||||
volume = Column(BigInteger)
|
||||
|
||||
# 기술적 지표
|
||||
rsi = Column(Numeric(10, 4))
|
||||
|
||||
Reference in New Issue
Block a user