A Python package designed for finance professionals and economists
Project description
EcoStock
EcoStock is a comprehensive Python package designed for finance professionals and economists. It offers a suite of powerful tools for analyzing stock data and economic indicators, making it easier to extract insights and make informed decisions in today's dynamic markets.
Key Features
- Data Retrieval and Visualization: Effortlessly fetch historical stock data, economic indicators and news articles.
- Correlation Analysis: Explore correlations between stock prices and economic indicators to uncover hidden relationships.
- Technical Analysis Tools: Utilize tools like Bollinger Bands, MACD and RSI to identify patterns and forecast market movements.
- Predictive Modeling: Leverage ARIMA and linear regression models to predict stock prices and portfolio returns.
- Portfolio Management: Calculate and analyze portfolio returns, cumulative returns and rolling volatility.
- Global Economic Analysis: Conduct comparative analysis of GDP growth and economic performance across countries.
- Interactive Visualization: Create interactive plots and charts for clear communication of findings.
- User-Friendly Interface: Intuitive functions and clear documentation for ease of use.
Installation
To install the EcoStock package, use pip:
pip install EcoStock
Basic Usage
Fetch Stock Data
from EcoStock.functions import get_stock_data
# Fetch stock data for Apple Inc. within a date range
get_stock_data('AAPL', '2022-01-01', '2022-12-31')
Calculate Moving Average
from EcoStock.functions import moving_avg_stock_data
# Calculate the moving average of Apple's stock data within a year
moving_avg_stock_data('AAPL', '2022', '2023')
Generate MACD Plot
from EcoStock.functions import macd
# Generate a MACD plot for Apple Inc. within a date range
macd('AAPL', '2020-01-01', '2023-12-31', 12, 26)
Modules
EcoStock consists of two main modules:
- functions: Provides various functions for retrieving, analyzing, and visualizing economic and stock data.
- adalo: Contains functions tailored for use in the Adalo app, a no-code platform for building applications.
Functions Module Example
from EcoStock.functions import *
# Generate a Bollinger Bands plot for Apple Inc. within a date range
plot_bollinger_bands('AAPL', '2022-01-01', '2023-12-31')
Adalo Module Example
from EcoStock.adalo import *
# Get news articles of Apple Inc. for no-code programming apps (e.g Adalo)
get_news('AAPL')
Documentation
For more examples and detailed list of available functions, please refer to the documentation in GitHub repository.
API Documentation
The EcoStock package includes a FastAPI application that serves as the API for interacting with the functionalities provided by the package.
For more details, please refer to the API documentation in GitHub repository.
Contributing
Contributions are welcome! If you have suggestions for improvements or find any issues, please open an issue or submit a pull request on GitHub.
License
EcoStock is licensed under the MIT License. For more details, please refer to the LICENSE in GitHub repository.
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
Built Distribution
File details
Details for the file ecostock-1.4.tar.gz
.
File metadata
- Download URL: ecostock-1.4.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288d30d506949cf434e4f28ee25b87f5fadad0efeedc8ce036431d2b721f0eec |
|
MD5 | 50947776ae3fe4d329739e243a3a6e24 |
|
BLAKE2b-256 | c4beba21cc0851985cc58bbfec6e4641cfeef2d159d806933ea27f54df1bd4c7 |
File details
Details for the file EcoStock-1.4-py3-none-any.whl
.
File metadata
- Download URL: EcoStock-1.4-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ff630bd13602173e1017072df5be054812b6235a7dab56f5fd47a400118e759 |
|
MD5 | 7e647f3398722db4eed37febe778dd08 |
|
BLAKE2b-256 | 750e801b90fc6a0d8ade1d7c5f41a591e65764d83a6e565c77afed83b631e34b |