Skip to content

Commit

Permalink
Merge pull request #38 from rasnes/EtL-uppercase-all-stocks-to-cli
Browse files Browse the repository at this point in the history
fix: allow lowercase tickers as cli arguments
  • Loading branch information
rasnes authored Jan 3, 2025
2 parents d19d3c5 + 252eff6 commit bc19e3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EtL/cmd/eod_backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func newBackfillCmd() *cobra.Command {
}
defer pipeline.Close()

tickers := strings.Split(args[0], ",") // Assuming comma-separated tickers
tickers := strings.Split(strings.ToUpper(args[0]), ",") // Convert tickers to uppercase
nSuccess, err := pipeline.BackfillEndOfDay(tickers)
if err != nil {
return fmt.Errorf("error backfilling tickers: %w", err)
Expand Down
4 changes: 2 additions & 2 deletions EtL/cmd/fundamentals.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func newFundamentalsDailyCmd() *cobra.Command {

var tickerSlice []string
if tickers != "" {
tickerSlice = strings.Split(tickers, ",")
tickerSlice = strings.Split(strings.ToUpper(tickers), ",")
}

var skipTickerSlice []string
Expand Down Expand Up @@ -138,7 +138,7 @@ func newStatementsCmd() *cobra.Command {

var tickerSlice []string
if tickers != "" {
tickerSlice = strings.Split(tickers, ",")
tickerSlice = strings.Split(strings.ToUpper(tickers), ",")
}

var skipTickerSlice []string
Expand Down

0 comments on commit bc19e3e

Please sign in to comment.