Skip to main content

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.

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.

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 file.

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

ecostock-1.5.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecostock-1.5-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file ecostock-1.5.tar.gz.

File metadata

  • Download URL: ecostock-1.5.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for ecostock-1.5.tar.gz
Algorithm Hash digest
SHA256 a74d99415e63748d0a921a042e8153827d74bb361cc6d9b7492f222fc89cd0fa
MD5 edbe3309fe63cc5037e6b1ddba9537d3
BLAKE2b-256 c1a25c33e7bee43d9651e626204b64ba334072f5f6902dc82525a98f6aba5220

See more details on using hashes here.

File details

Details for the file ecostock-1.5-py3-none-any.whl.

File metadata

  • Download URL: ecostock-1.5-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for ecostock-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 18c5e41b4b86a28511dcb22c0fd918f56b03ffdc328deaec95e2955aa1294638
MD5 786c2ec4c7607a4240a52a5b50588cb0
BLAKE2b-256 d81fdb60b4dae3bb96196367b4ddffdc3bd6ad8606d1c3bca080536b8405f5ce

See more details on using hashes here.

Supported by

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