Loading the API reference…

Browse the API reference

Get a universe definition

get https://quant-ws.prod.thinkalpha.io/universes/{idOrSlug}

Returns one universe's full definition: display metadata, membership expression, OTC policy, refresh policy, update guards, and the caller's permission flags on it.

idOrSlug accepts the universe's UUID or its slug. A UUID-shaped value is looked up as an id first and then as a slug. The caller must have read access to the universe (see GET /universes for how access is decided); a universe that does not exist and one the caller cannot read both return 404.

The definition does not include members. To read the current members, use GET /universes/{idOrSlug}/constituents; to list all readable universes, use GET /universes.

Authentication
Bearer token or Client credentials (HTTP Basic)

Path parameters

  • UniverseIdOrSlug required

    The universe's UUID or its slug. A UUID is matched case-insensitively; a slug is lowercase kebab-case and matched exactly.

Responses

The universe definition, with the caller's permission flags.

  • id string<uuid> required

    The universe's UUID. Assigned by the server; permanent.

  • slug UniverseSlug required

    Unique, permanent, human-readable handle used in URLs: lowercase kebab-case, at most 64 characters.

    max length 64pattern ^(?![0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$)[a-z0-9]+(?:-[a-z0-9]+)*$
  • name string required

    Display name.

    min length 1
  • description string

    Longer explanation of what the universe contains. Absent when none was given.

  • isTemplate boolean required

    `true` for universes imported from the previous platform's catalog as templates; `false` otherwise, including every universe created through this API.

  • frozen boolean required

    `true` while the universe is frozen: its stored snapshot is curated by hand through the snapshot write operations, and automatic refreshes are refused. Always present in responses; `false` for universes that track their membership expression.

  • assetClasses AssetClass[] required

    Asset classes the universe contains. Descriptive only. See `AssetClass`.

    min items 1
  • region string

    Market region label, such as `US`. Descriptive only. Absent when none was given.

  • MembershipExpr required

    A membership expression: a tree that selects instruments. Each node has a `kind`: - `staticList`: an explicit list of instruments. - `sourceQuery`: the rows of a data source that match a filter predicate. The only supported source is `securityMaster`, the security reference data; each matching row becomes an equity member identified by its current ticker. - `constituents`: the latest holdings of an ETF, used as a proxy for the index it tracks (for example `SPY` for the S&P 500). - `topN`: the first `n` members of another expression, ranked by a security reference metric. - `setOp`: the union, intersection or difference of other expressions. - `universeRef`: the current members of another universe, by UUID. - `instrumentBuild`: reserved for futures and crypto; not available, always rejected with 400. Members are de-duplicated by instrument. The OTC policy of the evaluation applies to every leaf (`staticList`, `sourceQuery`, `constituents`, `universeRef`). Size and work limits are listed on `POST /universes/evaluate`. Columns of `securityMaster` include `todayTicker`, `name`, `securityType` (for example `Common or ordinary`, `Preferred or preference`), `currentGICS` (GICS code text), `sector`, `industryGroup`, `industry`, `subIndustry`, `exchange`, `exchgDesc`, `PrimaryMIC`, `OperatingMIC`, `incorporationCountry`, `isin`, `cusip`, `CIK`, the flags `is_ADR`, `is_ETF`, `is_IPO`, `is_OTC`, `is_Threshold`, `recentIpo`, `InSPG`, the dates `dint`, `ipoDint`, `liveDint`, and the numbers `close`, `marketCap`, `dollarVolume`, `averageDailyVolume14Days`, `medianDollarVolume21Days`, `sharesOutstanding`, `sharesFloat`, `volume`, `VWAP`, `return1Days`, `return21Days`, `return252Days`, `volatility63Days`, `shortInterestFloat`. Column names are case-sensitive; an unknown column reads as null.

  • otcPolicy UniverseOtcPolicy

    Treatment of over-the-counter (OTC) securities. Always present in responses; see `UniverseOtcPolicy`.

  • object required

    When the universe re-evaluates in the background. See `UniverseRefreshPolicy`.

  • UniverseUpdateGuard[] required

    Update guards applied to every evaluation. Empty when none. See `UniverseUpdateGuard`.

  • tags string[] required

    Free-form labels for grouping and search. Empty when none.

  • updatedAt string<date-time> required

    When the definition was last created or changed.

  • updatedBy string<uuid> required

    UUID of the user who last created or changed the definition. Built-in universes show `00000000-0000-4000-a000-000000000000`.

  • AppliedPermissionsFlags required

    The caller's effective access to this universe. See `AppliedPermissionsFlags`.