Skip to main content

Package to fetch data from Nordea

Project description

nda_api

Api to fetch data from Nordea Investor website

Package use chromedriver in order to render the Javascript from the page.

Idea for the user: Incorporate this package in a webapp with a REST api. The data may then be fetched fully in Google slides.

Requirements

Installation

Pip

pip install nda_api  # Installing
pip install nda_api -U  # Upgrading already installed package

Conda

conda install -c nda_api

Usage

The get_nda_fundamentals method returns a pandas row. Thus, it is easy to just append multiple stocks (tickers) to create a convenient dataframe.

from aza_api.aza_api import get_aza_fundamentals
df = get_aza_fundamentals("CAST.ST")  # Castellum

print(df.T)

>>>

                               0
kortnamn                 CAST.ST
dividend_yield            0.0284
antal_aktier       84012900000.0
pe_ratio                    8.29
eps                         29.3
market_cap         84012900000.0
dividend/earnings            NaN
ncavps                       0.0
net_cash_ps                  0.0
price_book                     0
latest                     244.6

Development

While in root of this project.

pip install -e .

This will install the package in editable mode.

Testing

pytest tests/ -s

Push project to Pip (PyPi) and Conda

PyPi

https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56

Run in root

python setup.py sdist
twine upload dist/*

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

nda_api-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

nda_api-0.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file nda_api-0.0.3.tar.gz.

File metadata

  • Download URL: nda_api-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for nda_api-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9556bb03b2c08b4993c0e9b982e25c49727f7c997cd6b941245a486780680764
MD5 366604fc54b14496c77af6bec7969305
BLAKE2b-256 abb136dad311cc06199f21f4ee495dbeef65d911a5f84276a6fc4552af0c0e39

See more details on using hashes here.

File details

Details for the file nda_api-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nda_api-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for nda_api-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a78c9a54952665fa03656626b402dee464262a534b59f875fecf3232e1bd664
MD5 1e6822bb8db2c600afb70555129f1963
BLAKE2b-256 62dbe6f2b6a23c0e9d857c352f91373ffac9acec4c29e2e17cb2fcb347a6f125

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