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.5.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

market_generic-0.5.0-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file market_generic-0.5.0.tar.gz.

File metadata

  • Download URL: market_generic-0.5.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for market_generic-0.5.0.tar.gz
Algorithm Hash digest
SHA256 daef1d244344c96c4e6d764c3655e8b2d3e7d36ba3b4e590e9d496dd2b686fb7
MD5 6272c6dd0ccd2e9d7bba9d7644d4a2d8
BLAKE2b-256 ce5d02b49830a25a646872c1ff2479662a1d6168418d36ab288172b09114e053

See more details on using hashes here.

File details

Details for the file market_generic-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for market_generic-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de678e051a713c33917daba33d96f442f1989c855f9586b83466227bd6a3ff7d
MD5 357bcfd9e97ed490c31357d43fd5e06f
BLAKE2b-256 d3a088a7b8e23a83d8df04f034a7c7238b3fc87702da65a3a3b2f6a5b7b9978c

See more details on using hashes here.

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