avanza
avanza copied to clipboard
A Python library for the unofficial Avanza API
I dont know why i am getting this error , can anyone tell me how to fix ? self._authentication_session = response_body['authenticationSession'] KeyError: 'authenticationSession'
avanza.get_positions() requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.avanza.se/_mobile/account/positions
Setup versions ``` avanza-api==8.0.0 python==3.11 ``` The following piece of code works ``` avanza.get_insights_report( account_id=account_id, time_period=TimePeriod.ONE_WEEK ) ``` But When used with other `time_periods` like` TimePeriod.ONE_MONTH `, `TimePeriod.THREE_MONTHS` , the...
I'm a new user of this package and think it's awesome. I'd like to have details on ETFs, though. Currently, there is no route defined for ETFs, and just translating...
Right now, the Task returned by `asyncio.ensure_future()` in `avanza_socket.init()` is not stored or handled by the API. A reference to the Task must be maintained for as long as the...
Hi, i have not seen any function to create a transaction from one account to another so one isk/stock account to another isk within avanza. Would this be possible to...
Nice-to-have: websocket receiver task should be returned/exposed by API to allow exception handling
If there is a network issue an exception is thrown by the websocket library; for code consuming the API it would be convenient to get the task created by AvanzaSocket::init()...
Task exception was never retrieved future: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/protocol.py", line 945, in transfer_data message = await self.read_message() File "/usr/local/lib/python3.10/dist-packages/websockets/legacy/protocol.py", line 1015, in read_message frame = await...
I can't get the stop loss order function to work. I get a 400 Client Error: Bad Request for url: https://www.avanza.se/_api/trading-critical/rest/stoploss/new Have I just done something wrong or is there...