REST API Endpoints
- GETPortfolio List
- GETPortfolio Get
- PUTPortfolio Update
- GETPortfolio List By Owner
- POSTPortfolio Create Signature
- POSTPortfolio Create
- POSTPortfolio Create From Template
- POSTPortfolio Resign
- POSTPortfolio Resubmit Signature
- GETPortfolio Get Assets
- GETPortfolio Get Performance
- GETPortfolio Get Transactions
- GETPortfolio Get Deposits Withdrawals
- POSTPortfolio Deposit
- POSTPortfolio Deposit with Simulation
- POSTPortfolio Withdraw
- POSTPortfolio Withdraw as ETH
- POSTPortfolio Automation Start
- POSTPortfolio Automation Pause
- POSTPortfolio Automation Resume
- POSTPortfolio Automation Trigger
- GETPortfolio Automation Status
- GETPortfolio Rebalance Status
- GETPortfolio Rebalance Execution
- POSTPortfolio Schedule Interval
- POSTPortfolio Execute
- POSTPortfolio Archive
REST API Endpoints
Portfolio Get Performance
Retrieve performance data for a portfolio over a specified time window
GET
/
v1
/
portfolio
/
:portfolioId
/
performance
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"
}
Retrieves performance data for a portfolio over a specified time window.
The unique identifier of the portfolio
The time window for performance data (e.g., “1d”, “7d”, “30d”, “90d”, “all”)
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"
}
Assistant
Responses are generated using AI and may contain mistakes.