https://github.com/follgad/nordnet-api
https://github.com/follgad/nordnet-api
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/follgad/nordnet-api
- Owner: FOLLGAD
- Created: 2024-03-09T20:36:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T15:19:47.000Z (over 1 year ago)
- Last Synced: 2025-05-08T01:09:24.228Z (about 1 year ago)
- Language: TypeScript
- Size: 5.24 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nordnet API
Unofficial Node.js API for Swedish Nordnet.
## Install
```bash
$ npm install nordnet-unofficial-api
```
## supported functionality
### Login
```javascript
import { Nordnet } from 'nordnet-unofficial-api';
const nordnet = new Nordnet();
await nordnet.login('username', 'password');
```
### Get accounts
```javascript
// ...
const accounts = await nordnet.get_accounts();
console.log(accounts);
```
### Get account information
```javascript
// ...
const account = await nordnet.get_account(account_id);
console.log(account);
```
### Get weekly/monthly/yearly performance
```javascript
// ...
const accountPerformance = await nordnet.get_performance({ account_id, period: 'week' });
const totalPerformance = await nordnet.get_performance({ aggregate: true, period: 'month' });
```