GatsInvest(EC2)
Tables (10)
Account Balances
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 통화 (currency) — Text
- 통화 잔고 (balance) — Real
- 잔고 마지막 갱신 시간 (last_updated) — Text
Account Credentials
- 아이디 (id) — int — Primary key — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 계좌 접근 토큰 (access_token) — Text
- 계좌 접근 토큰 발급일자 (access_token_issued_at) — Text
- 계좌 승인키 (approval_key) — Text
- 계좌 승인키 발급일자 (approval_key_issued_at) — Text
Accounts (accounts)
- 아이디 (id) — Int — Primary key — NOT NULL
- 계좌 이름 (account_name) — Text
- 계좌 종류 (account_type) — Text
- 계좌 번호 (account_number) — Text
Analysis_Strategies
- Key — Primary key — NOT NULL
- 전략 이름 (name) — String
- 설명 (description) — String
- 등록 날짜 (created_at) — String
- 전략 타입 (type)
Config (config)
- 아이디 (id) — Int — Primary key — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 구성 이름 (keyName) — String
- 구성 값 (keyValue) — String
Dividends (dividends)
- 아이디 (id) — Int — Primary key — NOT NULL
- 주식 아이디 (stock_id) — Int — Foreign key → Stocks.아이디 — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 배당금 날짜 (date) — Date
- 배당금 주식 당 금액 (dividend_per_share) — Real
- 배당금 주식 수 (total_shares) — Int
- 배당금 총액 (total_dividend) — Real
Stock Portfolio (stock_portfolio)
- 주식 포폴 아이디 (id) — Int — Primary key — NOT NULL
- 주식 아이디 (stock_id) — Int — Foreign key → Stocks.아이디 — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 주식 포폴 날짜 (date) — Date
- 주식 포폴 주식량 (quantity) — Int
- 주식 포폴 평균 매입 금액 (average_price) — Real
- 주식 포폴 평가 금액 (total_evaluation) — Real
- 주식 포폴 합계 손익 (profit_loss) — Real
Stock Transactions (stock_transactions)
- 아이디 (id) — Int — Primary key — NOT NULL
- 주식 아이디 (stock_id) — Int — Foreign key → Stocks.아이디 — NOT NULL
- 계좌 아이디 (account_id) — Int — Foreign key → Accounts.아이디 — NOT NULL
- 거래 날짜 (date) — Date
- 거래 종류 (trans_type) — Buy/Sell
- 거래량 (quantity) — Int
- 주식 거래 평균 매입/매수 가격 (price_per_share) — Real
- 주식 거래 총 매입/매수 가격 (total_price) — Real
- 주식 거래 손익(매도일 때만) (pr_ls) — Real
- 거래 노트 (note) — String
Stock_Analysis_Results
- Key — Primary key — NOT NULL
- 전략 아이디 (strategy_id) — int — Foreign key → Analysis_Strategies.Key — NOT NULL
- 주식 아이디 (stock_id) — Int — Foreign key → Stocks.아이디 — NOT NULL
- 분석 날짜 (date) — String
- 점수 (score) — REAL
- 분석 요약 (summary) — String
- 추천 여부 (recommend) — String
Stocks (stocks)
- 아이디 (id) — Int — Primary key — NOT NULL
- 주식 종목 코드 (symbol) — String
- 주식 이름 (name) — String
- 주식 섹터 (sector) — String
- 주식 통화 (currency) — String
- 종류 (stock_type) — String