Imported Benchmark Data

Maintain custom benchmarks by importing their daily returns via this API. You can also add daily returns in Addepar or the Import Tool.

Base route/v1/imported_benchmark_data
EndpointsGET /v1/imported_benchmark_data/:id
PATCH /v1/imported_benchmark_data/:id
ProducesJSON
PaginationNo
Application permissions required"API Access: Create, edit, and delete" and "Benchmark library"
OAuth scopesBENCHMARKS_READ or BENCHMARKS_WRITE

🔒 Access requirements

"API Access: Create, edit, and delete" and "Benchmark library" application permissions are required. Use BENCHMARKS_READ for GET and BENCHMARKS_WRITE for PATCH operations.

Resource overview

AttributeDescription
daily_returnsA list of date-value JSON objects indicating daily returns for a particular date. Array. Example: [{"date": "2024-01-01", "value": 0.005}]

Get daily returns

Returns all the daily returns for an imported benchmark with the given ID.

GET /v1/imported_benchmark_data/:id

🔑 Authentication

All requests require a base64-encoded API key pair:

Authorization: Basic {base64(key_id:key_secret)}

See Access & Authentication for setup.

curl -X GET "https://{firm}.addepar.com/api/v1/imported_benchmark_data/378862" \
  -H "Authorization: Basic {credentials}" \
  -H "Addepar-Firm: 1" \
  -H "Accept: application/vnd.api+json"
HTTP/1.1 200

{
  "data": {
    "id": "378862",
    "type": "imported_benchmark_data",
    "attributes": {
      "daily_returns": [
        {
          "date": "2024-01-01",
          "value": 0.005
        },
        {
          "date": "2024-01-02",
          "value": -0.005
        },
        {
          "date": "2024-01-03",
          "value": 0.0
        },
        {
          "date": "2024-01-04",
          "value": 0.01
        },
        {
          "date": "2024-01-05",
          "value": -0.005
        }
      ]
    },
    "links": {
      "self": "/v1/imported_benchmark_data/378862"
    }
  },
  "included": []
}

Response codes:

  • 200 OK -- Success
  • 403 Forbidden -- The currently logged-in user does not have permission to access benchmarks
  • 404 Not Found -- No imported benchmark exists corresponding to the provided ID

Update daily returns

Add new daily returns to an existing imported benchmark. New daily returns are appended to existing returns. For dates that already have returns, new values overwrite existing ones.

PATCH /v1/imported_benchmark_data/:id

curl -X PATCH "https://{firm}.addepar.com/api/v1/imported_benchmark_data/378862" \
  -H "Authorization: Basic {credentials}" \
  -H "Addepar-Firm: 1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Accept: application/vnd.api+json" \
  -d '{
    "data": {
      "id": "378862",
      "type": "imported_benchmark_data",
      "attributes": {
        "daily_returns": [
          {
            "date": "2021-01-01",
            "value": 0.005
          },
          {
            "date": "2021-01-02",
            "value": -0.005
          },
          {
            "date": "2021-01-03",
            "value": 0.0
          },
          {
            "date": "2021-01-04",
            "value": 0.01
          },
          {
            "date": "2021-01-05",
            "value": -0.005
          }
        ]
      },
      "links": {
        "self": "/v1/imported_benchmark_data/378862"
      }
    },
    "included": []
  }'
HTTP/1.1 200

Response codes:

  • 200 OK -- Success
  • 400 Bad Request -- Invalid request payload
  • 403 Forbidden -- The currently logged-in user does not have permission to update benchmarks
  • 404 Not Found -- No imported benchmark exists corresponding to the provided ID
  • 409 Conflict -- The id field in the request payload does not match the ID in the URL

📘 Related resources

Benchmarks | Benchmark Compositions | Benchmark Proxies


Did this page help you?