Skip to main content

A lightweight stock information package for simple tasks

Project description

financelite

financelite is a lightweight stock information tool that takes every complicated features out.
It only focuses on providing simple and intuitive, yet informative stock information.

Currently, financelite is in a rapidly-evolving state. While I'll try to stay within the boundaries, please understand your implementation may have to change in the future upgrades.

Installation

pip install financelite

Example Usage

from financelite import News, Stock
from financelite.exceptions import NoNewsFoundException, DataRequestException

news = News()
try:
    news.get_news(ticker="gme", count=5)
except NoNewsFoundException:
    # handle exception
    pass
# returns 5 GME-related news

stock = Stock(ticker="gme")
try:
    stock.get_live()
    # returns GME's live price and currency

    stock.get_data(interval="1d", range="5d")
    # returns statistics for 5 days, with 1 day interval
except DataRequestException:
    # handle exception
    pass

Special Thanks

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

financelite-0.0.4.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

financelite-0.0.4-py3-none-any.whl (15.6 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