Skip to main content

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

Release files for Avanza 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Avanza 0.0.13
File Size Uploaded
Avanza-0.0.13.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Avanza 0.0.13
File Interpreter ABI Platform
Avanza-0.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / Avanza-0.0.13.tar.gz

Download URL Avanza-0.0.13.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1a016bddee42a8205f4d83c00f404f72e110ba29159d89bd920a4dd6ed876a31
BLAKE2b-256 checksum
How to use checksums
7e319435bf054cee11153ec137ff604d5d4aa99e60bc0d214ecef5d4c8d577a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release files / Avanza-0.0.13-py3-none-any.whl

Download URL Avanza-0.0.13-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fe4e5eb780ade97a22b74217cc852049240de0c01d9061410e9418813093e65
BLAKE2b-256 checksum
How to use checksums
a121ea78b86f742feab19a1e66de32298847ffb970fbdbeec1f47bd52846e8eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.13 This release

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page