Metadata-Version: 2.1
Name: Avanza
Version: 0.0.13
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/x-rst
Requires-Dist: requests
Requires-Dist: selenium
Requires-Dist: pandas

Avanza
======

=========== ====
**tests**   |lint|
            |docs|
**package** |pypi_version|
            |pypi_license|
            |pypi_pversion|
=========== ====

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:

.. code:: 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:

.. code:: 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/>`__

Security Notice
===============

This python wrapper voids following bandit codes:
`B108 <https://bandit.readthedocs.io/en/latest/plugins/b108_hardcoded_tmp_directory.html>`__
`B301 <https://bandit.readthedocs.io/en/latest/blacklists/blacklist_calls.html#b301-pickle>`__

.. |docs| image:: https://img.shields.io/readthedocs/avanza?style=flat-square&logo=read-the-docs
   :target: https://avanza.readthedocs.io/
   :alt: Read the Docs

.. |lint| image:: https://img.shields.io/github/workflow/status/North14/avanza/python-lint?style=flat-square&logo=github&label=lint%20and%20test
   :alt: GitHub Workflow Status

.. |pypi_version| image:: https://img.shields.io/pypi/v/avanza?style=flat-square&logo=pypi
   :target: https://pypi.org/project/Avanza/
   :alt: PyPI

.. |pypi_license| image:: https://img.shields.io/pypi/l/avanza?style=flat-square&logo=pypi
   :target: https://pypi.org/project/Avanza/
   :alt: PyPI - License

.. |pypi_pversion| image:: https://img.shields.io/pypi/pyversions/avanza?style=flat-square&logo=pypi
   :target: https://pypi.org/project/Avanza/
   :alt: PyPI - Python Version



