0.3.2 • Published 4 years ago
blankningsregistret v0.3.2
Blankningsregistret-js
FI will on a daily basis, normally shortly after 15:30, publish significant net short positions in shares in the document below. source
This npm package for NodeJS fetches published net short positions from FI and outputs the result as a JS array.
Installation
npm install blankningsregistret --save
Usage
const br = require('blankningsregistret');
// get currently active positions published within the last 30 days
const entries = br();
// get historical positions published within the last 30 days
const entries = br({
historical: true
});
// get positions published within a custom timespan
const thatMonthEntries = br({
from: new Date('2017-01-01'),
to: new Date('2017-02-01')
});