Skip to main content

Python wrapper for Unofficial Avanza API

Project description

Avanza

tests GitHub Workflow Status Read the Docs
package PyPI PyPI - License PyPI - Python Version

Based on https://github.com/fhqvst/avanza

Python wrapper for Unofficial Avanza API

Code is work in progress and is only meant as “proof of concept”

Authentication is done with selenium, which will save cookies in current working directory.

Short example of getting the current buyprice for msft stock:

import avanza

msft = avanza.Ticker(3873)
price = msft.buy_price
print(price)
> 166.48

Short example of displaying graph price of msft stock, using matplotlib:

import avanza
import matplotlib.pyplot as plt

df = avanza.ChartData().get_ticker_chartdata(3873)
df.plot(kind='line', x='timestamp', y='value')
plt.show()

More examples can be found here

Documentation

Security Notice

This python wrapper voids following bandit codes: B108 B301

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Avanza, version 0.0.13
Filename, size File type Python version Upload date Hashes
Filename, size Avanza-0.0.13-py3-none-any.whl (11.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Avanza-0.0.13.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page