Skip to content

Java library for extracting data from the Financial Supervisory Authority (Finansinspektionen) short selling registry.

License

Notifications You must be signed in to change notification settings

w3stling/blankningsregistret

Repository files navigation

Blankningsregistret

Build Status Download Javadoc License
Quality Gate Coverage Bugs Vulnerabilities Code Smells

Blankningsregistret is a Swedish financial registry maintained by the Finansinspektionen (FI). It contains information short selling.

FI will on a daily basis, normally shortly after 15:30 o'clock, publish significant net short positions in shares (>0.5 percent) in the document below.

This Java library makes it easier to automate data extraction from Blankningsregistret.

Examples

Search short positions

Get all net short positions published.

Blankningsregistret registry = new Blankningsregistret();

List<NetShortPosition> positions = registry.search()
        .collect(Collectors.toList());

Get all net short positions published in Hennes & Maurtiz AB (ISIN SE0000106270).

Blankningsregistret registry = new Blankningsregistret();

List<NetShortPosition> positions = registry.search()
        .filter(p -> p.getIsin().equals("SE0000106270"))
        .collect(Collectors.toList());

Find Goldman Sachs International latest short position.

Blankningsregistret registry = new Blankningsregistret();

Optional<NetShortPosition> position = registry.search()
        .filter(p -> p.getPositionHolder().equals("Goldman Sachs International"))
        .findFirst();

Java System Properties

Key Description Default
https.proxyHost The host name of the proxy server.
https.proxyPort The port number of the proxy server.

Download

Download the latest JAR or grab via Maven or Gradle.

Maven setup

Add JCenter repository for resolving artifact:

<project>
    ...
    <repositories>
        <repository>
            <id>jcenter</id>
            <url>https://jcenter.bintray.com</url>
        </repository>
    </repositories>
    ...
</project>

Add dependency declaration:

<project>
    ...
    <dependencies>
        <dependency>
            <groupId>com.apptastic</groupId>
            <artifactId>blankningsregistret</artifactId>
            <version>3.0.9</version>
        </dependency>
    </dependencies>
    ...
</project>

Gradle setup

Add JCenter repository for resolving artifact:

repositories {
    jcenter()
}

Add dependency declaration:

dependencies {
    implementation 'com.apptastic:blankningsregistret:3.0.9'
}

Blankningsregistret library requires at minimum Java 11.

License

MIT License

Copyright (c) 2018, Apptastic Software

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Java library for extracting data from the Financial Supervisory Authority (Finansinspektionen) short selling registry.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages