Class SymbolRegistryEnrichmentEngagement

java.lang.Object
com.bluebell.greenhouse.osmosis.engagements.symbol.SymbolRegistryEnrichmentEngagement

public final class SymbolRegistryEnrichmentEngagement extends Object
Command-line engagement for symbol registry enrichment.

This standalone entrypoint parses and validates CLI arguments, resolves OpenAI configuration, loads the symbol and exchange registries, selects candidates, runs the symbol enrichment provider strategy, merges the response into each registry entry, recomputes needs_review, and optionally persists the updated registry.

Candidate selection is based on the requested attributes and the overwrite flag. When no explicit ticker list is provided, the engagement scans the target category in file order and only selects entries where at least one requested attribute is blank. When --tickers is provided, only those tickers are evaluated. Existing needs_review values do not determine whether a symbol becomes a candidate.

The supported requested attributes are:

  • description: a short researched description for the symbol or instrument
  • exchange: an exchange MIC that must exist in the exchange registry before it is persisted
  • website: an official symbol or issuer website that must be a valid http or https URL

--dry-run=true still performs provider calls and logs the results, but it does not write the symbol registry back to disk. --dry-run=false writes the registry only when at least one entry changes.

Remember to prepend mvn -DskipTests compile exec:java -Dexec.mainClass=com.bluebell.greenhouse.osmosis.engagements.symbol.SymbolRegistryEnrichmentEngagement -Dexec.args=""

Version:
2.0.2
Author:
Stephen Prizio
  • Method Details

    • main

      public static void main(String[] args)
      Runs the standalone symbol registry enrichment flow.
      Parameters:
      args - command-line args