Skip to main content

A Generic Python Package for Stock Market Analysis and Trading

Project description

market-generic - A Generic Python Package for Stock Market Analysis and Trading

Overview

market-generic is a powerful and flexible Python library designed to simplify the process of working with stock market data. It provides a comprehensive set of tools and utilities to handle, analyze, and visualize stock data, enabling developers and analysts to build dynamic stock scanners, trading strategies, and other financial applications with ease.

Key Features

  • Data Handling: Seamless integration with popular data sources (e.g., Yahoo Finance, NSE APIs) to fetch and manage stock data.
  • Technical Indicators: A wide range of technical indicators (e.g., Moving Averages, Pivot Points, RSI, MACD) for in-depth market analysis.
  • Generic Strategy Abstractions: Tools to dynamically create trading strategies on the fly based on user-defined parameters.
  • Extensibility: Modular design allows for easy integration with other Python libraries and frameworks.

Installation

To install the AlgoTrade package, use pip:

pip install market-generic

Usage

Here's a simple example of how to use the Trade package to fetch and analyze stock data: python

>>from trade.nse import NSEStock
>>stock = NSEStock("RELIANCE", "17-May-2024")
>>stock.symbol == "RELIANCE"
True 
>>stock.curr_ohlc 
# Will Display Reliance's latest Bhav 
{
"open": 2860.7,
"low": ...,
"high":...,
 "close": ...,
 "volume": ...
 "pct_change": ...
}

AllNSEStocks uses NSEStock module underneath to utilize stock functions.

>>from trade.nse import AllNSEStocks
>>all_stocks = AllNSEStocks("17-May-2024", ["RELIANCE", "SBIN"])
>>all_stocks.symbols[0] == "RELIANCE"
True
>>all_stocks.symbols[1] == "SBIN"
True 
>>all_stocks.symbols[0].curr_ohlc
# Will Display Reliance's latest Bhav 
{
"open": 2860.7,
"low": ...,
"high":...,
 "close": ...,
 "volume": ...
 "pct_change": ...
}

Documentation

For detailed documentation, examples, and API reference, please visit the market-generic GitHub repository.

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

market_generic-0.3.0.tar.gz (32.8 kB view hashes)

Uploaded Source

Built Distribution

market_generic-0.3.0-py3-none-any.whl (47.7 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