Retrieve chart-ready price series for a portfolio across supported tenors.
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
}
]
}
}Auth0-issued access token that includes the scopes listed for the route.
MongoDB identifier of the user whose portfolio is being queried.
Portfolio identifier belonging to the authenticated user.
Portfolio prices organised by tenor.
Price series grouped by tenor code. Only tenors flagged for display are returned.
Show child attributes
Sampled time-series data for the tenor.
Show child attributes
Sampled time-series data for the tenor.
Show child attributes
Sampled time-series data for the tenor.
Show child attributes
Sampled time-series data for the tenor.
Show child attributes
Sampled time-series data for the tenor.
Show child attributes
Sampled time-series data for the 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
}
]
}
}