custom-components / sensor.avanza_stock

Custom component to get stock data from Avanza for Home Assistant
MIT License
46 stars 10 forks source link

Expose historical NAV values #112

Closed ronnydahl closed 1 year ago

ronnydahl commented 3 years ago

Is it possible to fetch historical NAV values for one or more given instruments from any of the Avanza APIs?

ronnydahl commented 3 years ago

I notice that they seemingly populate the chart with data from: https://www.avanza.se/ab/component/highstockchart/getchart/orderbook

Request body (POST):

{
    "orderbookId": 769140,
    "chartType": "AREA",
    "widthOfPlotContainer": 558,
    "chartResolution": "MINUTE",
    "navigator": false,
    "percentage": false,
    "volume": false,
    "owners": false,
    "start": "2020-08-26T05:37:41.710Z",
    "end": "2020-11-15T23:24:05.353Z",
    "ta": [],
    "compareIds": [
        19002
    ]
}
claha commented 2 years ago

Sounds nice but not sure if I can change the sensor value "in the past", and putting this in an attribute just seems strange to me...

claha commented 1 year ago

Out of scope