Skip to main content

Utilities for the analysis of financial data

Project description

bandl

bandl is open source library, provides apis for equity stock, derivatives, commodities, and cryptocurrencies.

Installation

Use the package manager pip to install stolgo.

pip install bandl

Usage

To import NSE Data Module

from bandl.nse_data import NseData()
nd = NseData() # returns 'NseData object'. can be use to get nse data.

To get Option chain data

expiry_dates = nd.get_oc_exp_dates(symbol) #return available expiry dates
nd.get_option_chain_excel(symbol,expiry_date,filepath) #dumps option chain to file_path
# or get in pandas dateframe
bn_df = nd.get_option_chain_df(symbol, expiry_date,dayfirst=False) #returns option chain in pandas data frame.

To get stock historical data.

data_frame = nd.get_data(symbol,series="EQ",start=None,end=None,periods=None,dayfirst=False) #returns historical data in pandas data frames

To get FII/DII data.

part_oi_df = nd.get_part_oi_df(start=None,end=None,periods=None,dayfirst=False,workers=None)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Kindly follow PEP 8 Coding Style guidelines. Refer: https://www.python.org/dev/peps/pep-0008/

Please make sure to update tests as appropriate.

License

MIT

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

bandl-0.0.1.tar.gz (14.4 kB view details)

Uploaded Source

File details

Details for the file bandl-0.0.1.tar.gz.

File metadata

  • Download URL: bandl-0.0.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for bandl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5398b11bd4fc1937f6d7eb6dd6bad416b547c59a018de1a5ff804acefa81ba5d
MD5 27ec6d818bd37636461b841e2b4e4d08
BLAKE2b-256 85e0952a680a077d051086ff32cd94a290a246a9bd8dd39b9eb1b0ecb7d8ddab

See more details on using hashes here.

Provenance

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