curl --request GET \
--url 'https://api.glider.fi/v1/portfolio/port_abc123/performance?timeWindow=30d' \
--header 'X-API-KEY: your_api_key_here'
{
"success": true,
"data": {
"portfolioId": "port_abc123",
"timeWindow": "30d",
"startValue": "950.00",
"currentValue": "1053.75",
"change": "103.75",
"changePercent": "10.92",
"startDate": "2023-04-21T13:45:12.345Z",
"data": [
{
"timestamp": "2023-04-21T13:45:12.345Z",
"value": "950.00"
},
{
"timestamp": "2023-04-28T13:45:12.345Z",
"value": "975.50"
},
{
"timestamp": "2023-05-05T13:45:12.345Z",
"value": "990.25"
},
{
"timestamp": "2023-05-12T13:45:12.345Z",
"value": "1020.15"
},
{
"timestamp": "2023-05-19T13:45:12.345Z",
"value": "1045.30"
},
{
"timestamp": "2023-05-21T13:45:12.345Z",
"value": "1053.75"
}
]
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T13:45:12.345Z"
}
Retrieve performance data for a portfolio over a specified time window
curl --request GET \
--url 'https://api.glider.fi/v1/portfolio/port_abc123/performance?timeWindow=30d' \
--header 'X-API-KEY: your_api_key_here'
{
"success": true,
"data": {
"portfolioId": "port_abc123",
"timeWindow": "30d",
"startValue": "950.00",
"currentValue": "1053.75",
"change": "103.75",
"changePercent": "10.92",
"startDate": "2023-04-21T13:45:12.345Z",
"data": [
{
"timestamp": "2023-04-21T13:45:12.345Z",
"value": "950.00"
},
{
"timestamp": "2023-04-28T13:45:12.345Z",
"value": "975.50"
},
{
"timestamp": "2023-05-05T13:45:12.345Z",
"value": "990.25"
},
{
"timestamp": "2023-05-12T13:45:12.345Z",
"value": "1020.15"
},
{
"timestamp": "2023-05-19T13:45:12.345Z",
"value": "1045.30"
},
{
"timestamp": "2023-05-21T13:45:12.345Z",
"value": "1053.75"
}
]
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T13:45:12.345Z"
}
curl --request GET \
--url 'https://api.glider.fi/v1/portfolio/port_abc123/performance?timeWindow=30d' \
--header 'X-API-KEY: your_api_key_here'
{
"success": true,
"data": {
"portfolioId": "port_abc123",
"timeWindow": "30d",
"startValue": "950.00",
"currentValue": "1053.75",
"change": "103.75",
"changePercent": "10.92",
"startDate": "2023-04-21T13:45:12.345Z",
"data": [
{
"timestamp": "2023-04-21T13:45:12.345Z",
"value": "950.00"
},
{
"timestamp": "2023-04-28T13:45:12.345Z",
"value": "975.50"
},
{
"timestamp": "2023-05-05T13:45:12.345Z",
"value": "990.25"
},
{
"timestamp": "2023-05-12T13:45:12.345Z",
"value": "1020.15"
},
{
"timestamp": "2023-05-19T13:45:12.345Z",
"value": "1045.30"
},
{
"timestamp": "2023-05-21T13:45:12.345Z",
"value": "1053.75"
}
]
},
"correlationId": "corr_abc123",
"requestId": "req_xyz789",
"timestamp": "2023-05-21T13:45:12.345Z"
}