Skip to main content

Package to scrape the Finansinspektion's registers

Project description

Swedish Market Insights

SMI is a small package for fetching inside trades made in Sweden. The data is collected with requests and parsed with BeautifulSoup4. All data is publicly available on Finansinspektionen's website.

Installation

pip install insyn

Usage

from swedish_market_insights import ficlient

api = ficlient.FiClient()
recent_inside_trades = api.get_trades_by_transaction_date()

Features

  • Fetch inside trades by transaction date
  • Fetch inside trades by publication date

Examples

Fetch inside trades by transaction date

from swedish_market_insights import ficlient
from datetime import date

api = ficlient.FiClient()
trades = api.get_trades_by_transaction_date(
    from_date=date(2020, 1, 1),
    to_date=date(2020, 1, 31))

Fetch inside trades by publication date

from datetime import date
from swedish_market_insights import ficlient

api = ficlient.FiClient()
trades = api.get_trades_by_publish_date(
    from_date=date(2022, 10, 8),
    to_date=date(2022, 10, 10))

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub if you have any suggestions or improvements.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swedish_market_insights-0.2.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

swedish_market_insights-0.2.3-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page