Loading the API reference…

Browse the API reference

List allowed instruments as objects

get https://quant-ws.prod.thinkalpha.io/universes/allowed-instruments

Returns every distinct instrument in the universes an identity can read, as instrument objects: the union of their current members, de-duplicated and sorted by instrument (equities by symbol, then options). Rows are bare instruments, without per-universe details such as ETF weights.

Whose access. By default the identity is the caller: the result covers the universes the caller can read under the same rules as GET /universes. A client-credentials principal is resolved as itself, exactly like a user. To see another identity's access, pass entityType (user, firm or group) and entityId together. The caller must hold owner-level access on that user, firm or group (superusers always do); otherwise the response is 403. Naming the caller's own user id needs no extra access and is the same as the default view, so any elevated platform privileges the caller holds apply to it, exactly as in GET /universes. The view of any other identity is computed from that identity's own grants only; elevated platform privileges it holds are not applied.

Universe access is deny by default: an identity sees only universes granted to it, directly or through its firms and groups. Universes it cannot see are left out of the union, not reported. If it sees no universes, the response is an empty array.

Freshness. Each universe contributes its current snapshot, with the same freshness as GET /universes/{idOrSlug}/constituents. If any visible universe cannot produce a snapshot (it is still on its first evaluation after 30 seconds, or that evaluation failed), the whole request fails rather than returning a partial union.

Representation. Streamed and negotiated exactly like GET /universes/{idOrSlug}/constituents: application/json (the default) is one JSON array of instruments; application/x-ndjson is one instrument object per line. The format query parameter overrides Accept. An Accept header that admits neither returns 406. Responses carry Vary: Accept.

Conditional requests. Every 200 carries a weak ETag and Cache-Control: private, no-cache. The tag changes when the identity's set of visible universes changes or any of their memberships changes, and it is distinct from the tag of GET /universes/allowed-symbols, which serves a different representation of the same union. Send it back in If-None-Match to receive 304 Not Modified with no body. Access is re-checked first, so a caller whose right to inspect the identity has been revoked gets 403, never 304.

To list the same union as canonical instrument symbol strings, use GET /universes/allowed-symbols.

Authentication
Bearer token or Client credentials (HTTP Basic)

Query parameters

  • entityType UniverseAccessEntityType

    Kind of identity whose view to return: `user`, `firm` or `group`. Requires `entityId`. Omit both to use the caller.

  • entityId string<uuid>

    UUID of the user, firm or group named by `entityType`. Requires `entityType`. The caller needs owner-level access on this identity (superusers always have it) unless it is the caller's own user id.

  • format VisibleSymbolsFormat

    Response format, overriding the `Accept` header. `array`: a JSON array (`application/json`). `ndjson`: newline-delimited JSON, one object per line (`application/x-ndjson`). Omit to negotiate from `Accept`.

Responses

Every distinct instrument in the universes the identity can read, sorted by instrument. Streamed as a JSON array (`application/json`) or as newline-delimited JSON (`application/x-ndjson`).

object

An instrument: an equity by ticker symbol, or a listed option. `type` selects the variant.