Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/follgad/nordnet-api
https://github.com/follgad/nordnet-api
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/follgad/nordnet-api
- Owner: FOLLGAD
- Created: 2024-03-09T20:36:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T15:19:47.000Z (about 1 month ago)
- Last Synced: 2024-12-09T19:56:27.798Z (13 days 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' });
```