index
Get the portfolio of a MerQube index over time
Get the portfolio of a MerQube index over time
get/index/{uuid}/portfolio
Request
- Base URLhttps://api.merqube.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
uuidstring required
uuid of the resource
Query parameters
dates_only'true'
include only dates and no portfolio data
Start date for the results/computation
End date for the results/computation
timestring date-time
downloadstring
either true or false
Response
200 response
Example response
{
"results": [
{
"date": "2005-07-15T00:00:00",
"id": "2005-07-15T00:00:00",
"portfolio": {
"OPTION:SPY:CALL:0.0:2006-07-21:BUY": {
"buy_sell": "BUY",
"exchgcntry": "US",
"exercise_type": "European",
"expiry": "2006-07-21",
"mic": "XCME",
"option_type": "CALL",
"price": 120.31612463831256,
"price_date": "2005-07-15",
"root": "SPY",
"shares": 8.143322475570033,
"strike": "0.0",
"strike_percentage": 0,
"symbol": "OPTION:SPY:CALL:0.0:2006-07-21:BUY",
"weight": 8.143322475570033
},
"OPTION:SPY:CALL:143.4491457664114:2006-07-21:SELL": {
"buy_sell": "SELL",
"exchgcntry": "US",
"exercise_type": "European",
"expiry": "2006-07-21",
"mic": "XCME",
"option_type": "CALL",
"price": 0.5857132916126346,
"price_date": "2005-07-15",
"root": "SPY",
"shares": -8.143322475570033,
"strike": "143.4491457664114",
"strike_percentage": 116.81526528209396,
"symbol": "OPTION:SPY:CALL:143.4491457664114:2006-07-21:SELL",
"weight": "8.143322 475570033"
}
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.