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
- yahoo! finance for providing awesome websites and APIs.
- Andrew Treadway for providing an open source package for processing finance data.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for financelite-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 187a78d6b44b211afbe4e34c13317f97518f17b92bfe501aa343906715c36621 |
|
MD5 | 0f332e7548558f1274facd3a078fe60f |
|
BLAKE2b-256 | 2dd619e082d4fa341f403783d9137e72b300e0ed01a99105e68cc4b858ec7d76 |