Qluxzz / avanza

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

get_positions() no working #91

Closed Unt3r closed 2 months ago

Unt3r commented 7 months ago

avanza.get_positions()

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.avanza.se/_mobile/account/positions

jonasoreland commented 7 months ago

could this be related ? https://github.com/fhqvst/avanza/issues/99

Unt3r commented 7 months ago

Yes, the paths have changed.

ACCOUNTS_POSITIONS_PATH = '/_api/position-data/positions' <- still works POSITIONS_PATH = '/_mobile/account/positions' <- don't work

ACCOUNT_OVERVIEW_PATH = '/_mobile/account/{}/overview' <- don't work OVERVIEW_PATH = '/_mobile/account/overview' <- don't work

an overview seems to be: /_api/account-performance/overview/total-values but with different output.

sege commented 7 months ago

Any ETA for a fix?

Qluxzz commented 2 months ago

Has been superseded by the get_accounts_positions method https://qluxzz.github.io/avanza/avanza/avanza.html#Avanza.get_accounts_positions