Metadata-Version: 2.1
Name: Avanza
Version: 0.0.11
Summary: Python wrapper for Unofficial Avanza API
Home-page: https://github.com/North14/avanza
Author: North14
License: UNKNOWN
Platform: any
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Office/Business :: Financial
Classifier: Topic :: Office/Business :: Financial :: Investment
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: selenium
Requires-Dist: pandas

Avanza
======

  ------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------
  **tests**     ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/North14/avanza/python-lint?style=flat-square&logo=github&label=lint%20and%20test)
                [![Read the Docs](https://img.shields.io/readthedocs/avanza?style=flat-square&logo=read-the-docs)](https://avanza.readthedocs.io/)
  **package**   [![PyPI](https://img.shields.io/pypi/v/avanza?style=flat-square&logo=pypi)](https://pypi.org/project/Avanza/)
                [![PyPI - License](https://img.shields.io/pypi/l/avanza?style=flat-square&logo=pypi)](https://pypi.org/project/Avanza/)
                [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/avanza?style=flat-square&logo=pypi)](https://pypi.org/project/Avanza/)
  ------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------

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:

``` {.sourceCode .python}
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:

``` {.sourceCode .python}
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](https://github.com/North14/avanza-client)

[Documentation](https://avanza.readthedocs.io/en/latest/)


