Skip to main content

Interactive TUI for browsing and exporting Nordnet financial data

Project description

nordpy

nordpy

A terminal UI for browsing and exporting your Nordnet portfolio data.


[!CAUTION] Disclaimer — This tool is provided as-is, with no warranty of any kind. Use it at your own risk. The author assumes no liability for any loss, damage, or misuse arising from the use of this software. You are solely responsible for securing any exported data and ensuring it is only accessible to you.

Features

  • Browse accounts, balances, holdings, transactions, trades, and orders
  • Export data to CSV, Excel, or DuckDB
  • Session persistence with automatic re-authentication
  • Headless export mode (no TUI) for scripting
  • SOCKS5 proxy support

How It Works

nordpy authenticates with Nordnet through the same MitID flow your browser uses — it simply performs the login via Nordnet's API directly from the terminal, rather than through a web page. Once authenticated, it fetches your portfolio data using Nordnet's standard API endpoints.

[!IMPORTANT] Privacy — nordpy does not collect, transmit, or store any of your personal information. Your credentials are sent directly to MitID and Nordnet — never to any third-party server. Session cookies are saved locally on your machine (with 0600 permissions) solely to avoid repeated logins. No telemetry, analytics, or external services are involved.

Requirements

  • Python 3.13+
  • uv package manager
  • A Nordnet account with MitID (Danish)

Installation

git clone https://github.com/kiliantscherny/nordpy.git
cd nordpy
uv sync

Usage

Interactive TUI

# MitID App approval (default)
uv run nordpy --user <your-mitid-username>

# Force re-authentication (ignore saved session)
uv run nordpy --user <your-mitid-username> --force-login

[!NOTE] The first time you log in, you will be prompted to enter your CPR number as part of the MitID verification process. This is a one-time step required by MitID to link your identity — subsequent logins will skip this.

Headless Export

uv run nordpy --user <your-mitid-username> --export csv
uv run nordpy --user <your-mitid-username> --export xlsx
uv run nordpy --user <your-mitid-username> --export duckdb

Exported files are saved to the exports/ directory.

[!WARNING] Exported files contain sensitive financial data. Make sure the exports/ directory is not shared, synced to public cloud storage, or committed to version control. Keep your exports in a secure location accessible only to you.

Keybindings

Key Action
Enter Select account / drill into detail
e Export current view
r Refresh data
q / Esc Quit

Development

# Install dev dependencies
uv sync --dev

# Run tests
uv run pytest

# Run tests with coverage
uv run pytest --cov=nordpy --cov-report=term-missing

# Lint
uv run ruff check src/

# Type check
uv run ty check src/

License

This project is licensed under the MIT License.

Acknowledgments

This project includes code from MitID-BrowserClient by Hundter, licensed under the MIT License.

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

nordpy-1.0.0.tar.gz (59.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nordpy-1.0.0-py3-none-any.whl (68.8 kB view details)

Uploaded Python 3

File details

Details for the file nordpy-1.0.0.tar.gz.

File metadata

  • Download URL: nordpy-1.0.0.tar.gz
  • Upload date:
  • Size: 59.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nordpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e2a77aa3acf6f5a0c8cead123d6bf9591d00081685e62b000c2706aaa2c3e9f6
MD5 fb694b6a03c549d92bea5530e8617168
BLAKE2b-256 c9b745b473cf33720648bc9960d8332e4e6c0c57d5d83593ef3e4fd9be8ec268

See more details on using hashes here.

File details

Details for the file nordpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nordpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 68.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nordpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99673c9177c6197f785f1079b6cbf26fa55059c24fbf53d38fe006ffd8bf9fbf
MD5 a0de1f94502967b84d87e638fda6568a
BLAKE2b-256 f7409d647019757a6229ba2814d0a8220f34fd18cdcf570ee519d3f23568e8cb

See more details on using hashes here.

Supported by

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