Qluxzz / avanza

A Python library for the unofficial Avanza API
https://qluxzz.github.io/avanza/
MIT License
91 stars 41 forks source link

get_chart_data gives 404 URL not found #68

Closed Madbull25 closed 1 year ago

Madbull25 commented 1 year ago

seems the url for get_chart_data isnt correct, was working yesterday, today i keep getting 404 error, that the url doesnt exist

Anyone else having this problem?

Madbull25 commented 1 year ago

wrapper is using this path, and its still working /ab/component/highstockchart/getchart/orderbook

vasba commented 1 year ago

@Madbull25
The new path seems to have the same issue using modified constant CHARTDATA_PATH = '/ab/component/highstockchart/getchart/orderbook/{}' Example url: https://www.avanza.se/ab/component/highstockchart/getchart/orderbook/19002?timePeriod=one_week&resolution=ten_minutes

Madbull25 commented 1 year ago

https://www.avanza.se/_api/price-chart/stock/220127?timePeriod=five_years

IS WORKING timeperiods are today, one week, one_month, three_months, this_year, one_year, three_years, five_years, infinity

resolution are for: today : minute", "two_minutes", "five_minutes", "ten_minutes", "thirty_minutes", "hour", "day one week: "ten_minutes", "thirty_minutes", "hour", "day" one_month: "hour", "day", "week" three_month: "day", "week", "month this_year: day", "week", "month one_year: "day", "week", "month", "quarter" three_years: day", "week", "month", "quarter" five_years: "day", "week", "month", "quarter" infinity: "week", "month", "quarter"

so the paths on constant are wrong, same with the timeperiods, cant find five_years_rolling anywhere