Skip to main content
GET
/
portfolios
/
{id}
/
prices-by-tenor
Get portfolio prices by tenor
curl --request GET \
  --url https://{host}/portfolios/{id}/prices-by-tenor \
  --header 'Authorization: Bearer <token>' \
  --header 'x-user-id: <x-user-id>'
{
  "1w": {
    "data": [
      {
        "timestamp": 1720601400000,
        "value": 5123.42,
        "displayIntraday": true
      },
      {
        "timestamp": 1720687800000,
        "value": 5138.11,
        "displayIntraday": true
      }
    ]
  },
  "1m": {
    "data": [
      {
        "timestamp": 1718188800000,
        "value": 4980.3,
        "displayIntraday": true
      },
      {
        "timestamp": 1720687800000,
        "value": 5138.11,
        "displayIntraday": true
      }
    ]
  },
  "max": {
    "data": [
      {
        "timestamp": 1646091600000,
        "value": 2100.54,
        "displayIntraday": false
      },
      {
        "timestamp": 1720687800000,
        "value": 5138.11,
        "displayIntraday": false
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Auth0-issued access token that includes the scopes listed for the route.

Headers

x-user-id
string
required

MongoDB identifier of the user whose portfolio is being queried.

Path Parameters

id
string
required

Portfolio identifier belonging to the authenticated user.

Response

Portfolio prices organised by tenor.

Price series grouped by tenor code. Only tenors flagged for display are returned.

max
object
1y
object
6m
object
3m
object
1m
object
1w
object