Skip to content

@livefolio/sdk / FeatureScope

Type Alias: FeatureScope

FeatureScope = { asset: AssetId; kind: "asset"; } | { kind: "universe"; universeHash: string; }

Defined in: interfaces/feature-cache.ts:14

Identifies what an indicator was computed over — either a single asset or a whole universe.

  • { kind: 'asset'; asset: AssetId } — the indicator was computed for a specific instrument (e.g. 20-day SMA for AAPL).
  • { kind: 'universe'; universeHash: string } — the indicator covers the full universe (e.g. cross-sectional momentum rank). universeHash is a content-hash of the sorted asset-id list so that cache keys survive universe reordering.

Released under the MIT License.