1.0.0 • Published 4 years ago

nordnet-api v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

nordnet-api

Package version NPM downloads Make a pull request License: MIT

Nordnet.dk Unofficial API

Table of Contents

Install

npm install nordnet-api

Usage

Get instrument data

const Nordnet = require('nordnet-api');

const nordnet = new Nordnet("username", "password");
const instrument_id = 17092094;
nordnet.instrument(instrument_id)
  .then(console.log)
  .catch(console.error)

Get stock history

const Nordnet = require('nordnet-api');

const nordnet = new Nordnet("username", "password");
const instrument_id = 17092094;
const start_date = '2010-01-01'
nordnet.stockhistory(instrument_id, start_date)
  .then(console.log)
  .catch(console.error)

Get stocklist

const Nordnet = require('nordnet-api');

const nordnet = new Nordnet("username", "password");
nordnet.stocklist()
  .then(console.log)
  .catch(console.error)

Get fundslist

const Nordnet = require('nordnet-api');

const nordnet = new Nordnet("username", "password");
nordnet.fundslist()
  .then(console.log)
  .catch(console.error)

License

MIT