sixth version

This commit is contained in:
2026-06-08 09:41:20 +00:00
parent 2d57c4ff1f
commit 8a552dec56
25 changed files with 545 additions and 130 deletions
+4 -1
View File
@@ -24,9 +24,12 @@ func (r Registry) SyncMetadata(ctx context.Context) error {
return err
}
for _, instrument := range instruments {
if !instrument.Enabled || instrument.Quarantine {
continue
}
remote, err := r.gateway.GetInstrument(ctx, instrument.Ticker, instrument.ClassCode)
if err != nil {
return fmt.Errorf("sync %s: %w", instrument.Ticker, err)
continue
}
remote.Enabled = instrument.Enabled && remote.Enabled
remote.FundType = instrument.FundType