alt/services/worker/cmd/alt-worker-data-check/main.go

21 lines
653 B
Go

// Command alt-worker-data-check runs the Korea daily data foundation smoke: it
// imports an embedded KIS daily-chart fixture through the normalize/import
// pipeline into an in-memory store and prints a stable summary of the bars
// queried back. It needs no KIS credential, 1Password, or PostgreSQL, so an
// operator can re-run it locally to confirm normalized daily bars are queryable.
package main
import (
"context"
"fmt"
"os"
"git.toki-labs.com/toki/alt/services/worker/internal/marketdata/datacheck"
)
func main() {
if err := datacheck.Run(context.Background(), os.Stdout); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}