Spaces:
Sleeping
Sleeping
| package com.rods.backtestingstrategies.entity; | |
| import jakarta.persistence.*; | |
| import lombok.AllArgsConstructor; | |
| import lombok.Data; | |
| import lombok.NoArgsConstructor; | |
| import java.time.LocalDateTime; | |
| public class StockSymbol { | |
| private Long id; | |
| // e.g. AAPL, TSLA, RELIANCE.NS | |
| private String symbol; | |
| // e.g. Apple Inc, Reliance Industries | |
| private String name; | |
| // Equity, ETF, Index | |
| private String type; | |
| // Exchange name: NASDAQ, NYSE, BSE, NSE | |
| private String exchange; | |
| // Country / Region | |
| private String region; | |
| private String marketOpen; | |
| private String marketClose; | |
| private String timezone; | |
| private String currency; | |
| // Sector: Technology, Finance, Healthcare, etc. | |
| private String sector; | |
| // Industry sub-category | |
| private String industry; | |
| // Search relevance score (1.0 = exact match) | |
| private Double matchScore; | |
| // When this symbol was last fetched/refreshed | |
| private LocalDateTime lastFetched; | |
| // Data source tracker | |
| private String source = "TICKER_SEED"; | |
| } |