nordnet

module
v0.0.0-...-519037d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2026 License: MIT

README

Nordnet-revived

Go implementation of the Nordnet External API.

API docs: https://api.test.nordnet.se/api-docs/index.html

This is a maintained fork of nordnet(https://github.com/denro/nordnet), which appears to be inactive since 2013.

Installation

go get github.com/0dayfall/nordnet

Quickstart (CLI)

  1. Copy the example environment file: cp config/config.env.example config/config.env
  2. Fill in the values:
    • NORDNET_API_URL should be the base URL ending with /next (no trailing /2).
    • NORDNET_PUBLIC_FEED_ADDR / NORDNET_PRIVATE_FEED_ADDR should be host:port (or a URL with scheme).
  3. Run: go run ./cmd/nordnet

Library usage (API client)

cred, err := util.GenerateCredentials([]byte(user), []byte(pass), pemData)
if err != nil {
    // handle error
}

client := api.NewAPIClientWithBaseURL("https://api.test.nordnet.se/next", cred)
if _, err := client.SystemStatus(); err != nil {
    // handle error
}

login, err := client.Login()
if err != nil {
    // handle error
}
_ = login

Environment variables

  • NORDNET_API_URL (base URL, e.g. https://api.test.nordnet.se/next)
  • NORDNET_USER
  • NORDNET_PASSWORD
  • NORDNET_PEM_FILE
  • NORDNET_PUBLIC_FEED_ADDR (host:port or URL)
  • NORDNET_PRIVATE_FEED_ADDR (host:port or URL)

Directories

Path Synopsis
Package api includes the HTTP client used to access the REST JSON API.
Package api includes the HTTP client used to access the REST JSON API.
cmd
nordnet command
Contains everything related to the public and private feeds More information available on https://api.test.nordnet.se/next/2/api-docs/docs/feeds
Contains everything related to the public and private feeds More information available on https://api.test.nordnet.se/next/2/api-docs/docs/feeds
Package util contains utility functions
Package util contains utility functions
models
Package models represents data returned by the API and in the private feed
Package models represents data returned by the API and in the private feed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL