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.

Source Distribution

Avanza-0.0.13.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

Avanza-0.0.13-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file Avanza-0.0.13.tar.gz.

File metadata

  • Download URL: Avanza-0.0.13.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for Avanza-0.0.13.tar.gz
Algorithm Hash digest
SHA256 1a016bddee42a8205f4d83c00f404f72e110ba29159d89bd920a4dd6ed876a31
MD5 083367f0098a71411f4f1d3445b23f6d
BLAKE2b-256 7e319435bf054cee11153ec137ff604d5d4aa99e60bc0d214ecef5d4c8d577a9

See more details on using hashes here.

File details

Details for the file Avanza-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: Avanza-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for Avanza-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe4e5eb780ade97a22b74217cc852049240de0c01d9061410e9418813093e65
MD5 1a2f5c4b87b4edbcf0cec748e1d374f5
BLAKE2b-256 a121ea78b86f742feab19a1e66de32298847ffb970fbdbeec1f47bd52846e8eb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page