---
title: "GET /index/{uuid}/target_portfolio"
method: GET
path: "/index/{uuid}/target_portfolio"
tags: ["index"]
---

# GET /index/{uuid}/target_portfolio

`GET /index/{uuid}/target_portfolio`

## Request

- Base URL: `https://api.merqube.com`
- URL: `https://api.merqube.com/index/{uuid}/target_portfolio`
- Auth: none declared
- TypeScript: <https://skmtc.dev/merqube/apis/merqube-api/docs/index/:uuid/target_portfolio/get.ts> (a function with typed inputs; its response is checked against the schema)

get the timeseries of target portfolios for an index

## Path parameters

- `uuid` string, required
- `statuses` string

## Query parameters

- `start_date` union
  - string, date-time
  - string, date
  - string
- `end_date` union
  - string, date-time
  - string, date
  - string

## Response `200`

OK

- object
  - `results` object[]
    - `eff_ts` string
    - `target_portfolio` BasketPortfolio: Target Portfolio. Supports equities, futures, and options. This object captures all information needed to execute externally defined rebalances.
      - `divisor` number: A scaling factor to apply for the SHARES of the portfolio constituents
      - `external_id` string: An external ID to reference this portfolio with. Must be unique per index.
      - `positions` ValidEquityBasketPosition[], required
        - union
          - BasketPosition: A general basket portfolio position
            - `amount` number, required
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
          - RicEquityPosition: Equity position, identified by a RIC
            - `amount` number, required
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
            - `real_time_trade_types` RealTimeTradeType[]
            - `use_primary_listing` boolean: use the security's primary listing rather than the one from the identifier
          - FsymEquityPosition: Equity position, identified by a FSYM + country code
            - `amount` number, required
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
            - `country_code` string, required: ISO country codes
          - OptionPosition: An Option position
            - `amount` number, required
            - `currency` string, required
            - `delta_hedge_flag` boolean
            - `expiration_date` string, required
            - `expiration_type` 'AM' | 'PM'
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `lag` string
            - `leg_multiple` number
            - `mic` string
            - `strike` number, required
            - `strike_type` 'PCT_SPOT' | 'DELTA' | 'SPCT_SPOT'
            - `structure_id` number
            - `style` 'AMERICAN' | 'EUROPEAN'
            - `type` 'PUT' | 'CALL', required
            - `underlying` string, required
            - `vol_multiplier` number
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
          - FuturesPosition: A Futures position
            - `amount` number, required
            - `currency` string, required
            - `expiration_date` string, required
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `lag` string
            - `underlying` string, required
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
          - SecapiBasketPosition: A basket position that uses custom metrics from merqube data source
            - `amount` number, required
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
            - `custom_metric` string
          - MerqubeIndexPosition: A basket position that uses custom metrics from merqube data source
            - `amount` number, required
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
            - `metric_name` string
          - IsinMicEquityPosition: Equity position, identified by an ISIN and MIC
            - `amount` number, required
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
            - `mic` string, required
          - MutualFundPosition: Mutual fund position, identified by ISIN (funds have no MIC)
            - `amount` number, required
            - `asset_type` 'CASH' | 'THIRD_PARTY_INDEX' | 'EQUITY' | 'OPTION' | 'FUTURES' | 'MUTUAL_FUND' | 'MERQUBE_INDEX' | 'CUSTOM_SECAPI_INDEX' | 'OTHER', required
            - `identifier` string, required
            - `identifier_type` 'RIC' | 'CURRENCY_CODE' | 'FSYM_ID' | 'TICKER' | 'BBG_TICKER' | 'CUSIP' | 'ISIN', required
            - `position_id` string
            - `price` number: client supplied price for a position we cannot price ourselves; must be set together with price_currency
            - `price_currency` string: currency of price; must be set together with price
      - `share_selection_date` string
      - `target_portfolio_type` 'EOD' | 'INTRADAY': Whether its an end of day portfolio or an intraday portfolio.
      - `timestamp` string, required
      - `unit_of_measure` 'SHARES' | 'WEIGHT', required: Used to indicate if portfolio amounts are absolute or relative. weight indicates portfolio amounts are relative weights units indicates portfolio amounts are absolute values, e.g. shares or number of contracts
      - `created_ts` string, required
      - `finalized_ts` string
      - `id` string, required
      - `status` 'PENDING_VALIDATION' | 'FAILED_VALIDATION' | 'PASSED_VALIDATION' | 'SELECTED' | 'UNSELECTED' | 'FINAL' | 'DELETED', required: Indicates the status of a target portfolio. A portfolio can only be used in an index if status is `FINAL` * `PENDING_VALIDATION` - Custom validation is necessary, and is queued up * `FAILED_VALIDATION` - Custom validation has failed. * `PASSED_VALIDATION` - Custom validation has succeeded. The portfolio must now be selected * `SELECTED` - Selected for usage on a date, but has not yet been locked in / finalized * `UNSELECTED` - Was previously selected, but a newer portfolio has replaced it for that date * `FINAL` - This portfolio can now be used for the given date. * `DELETED` - This portfolio has been deleted or rejected for usage.
      - `status_change_reason` string

## Other responses

- `403`: not authorized to see this namespace
- `404`: index or portfolio does not exist

---

[API](https://skmtc.dev/merqube/apis/merqube-api.md) - [All operations](https://skmtc.dev/merqube/apis/merqube-api/llms.txt) - [OpenAPI document](https://skmtc.dev/merqube/apis/merqube-api/revisions/20f47ca36587?raw)
