| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- // 종목 도메인 타입 — Backend Application/Features/Api/Stocks/*/Response.cs 대응 (camelCase 직렬화)
- export type StockMarketName = 'KOSPI'|'KOSDAQ'|'KONEX';
- export type TradingStatusName = 'Normal'|'Halted'|'Watch';
- // GET /api/stocks — 목록 행
- export interface StockListRow {
- code: string;
- name: string;
- market: StockMarketName;
- tradingStatus: TradingStatusName;
- lastTradingDate: string|null;
- closePrice: number|null;
- changeRate: number|null;
- marketCap: number|null;
- }
- export interface StockListResponse {
- total: number;
- list: StockListRow[];
- }
- // 일별 시세 행 (GetDetail.RecentPrices / GetHistory 공용 필드)
- export interface StockPriceRow {
- tradingDate: string;
- open: number;
- high: number;
- low: number;
- close: number;
- volume: number;
- tradingValue: number;
- changeAmount: number;
- changeRate: number;
- }
- // GET /api/stocks/{code}
- export interface StockDetailResponse {
- code: string;
- isin: string|null;
- name: string;
- englishName: string|null;
- market: StockMarketName;
- tradingStatus: TradingStatusName;
- sectorName: string|null;
- isActive: boolean;
- listedDate: string;
- delistedDate: string|null;
- lastTradingDate: string|null;
- closePrice: number|null;
- changeRate: number|null;
- marketCap: number|null;
- recentPrices: StockPriceRow[];
- }
- // GET /api/stocks/{code}/history
- export interface StockHistoryRow extends StockPriceRow {
- marketCap: number|null;
- }
- export interface StockHistoryResponse {
- total: number;
- list: StockHistoryRow[];
- }
- // GET /api/stocks/suggest
- export interface StockSuggestItem {
- code: string;
- name: string;
- market: StockMarketName;
- }
- export interface StockSuggestResponse {
- list: StockSuggestItem[];
- }
|