Skip to main content

library to get NSE India data

Project description

NSElib 0.5

Python Library to get publicly available data on new NSE india website.

Release Notes

  • Compatible and Tested with Python 3.8 and above
  • Future release will be done on requirement basic

Libraries Required

  • requests
  • beautifulsoup
  • numpy
  • scipy
  • pandas
  • lxml

For Windows systems you can install Anaconda, this will cover many dependencies (You'll have to install requests and beautifulsoup additionally though)

Installation

Fresh installation

$pip install nselib

Upgrade

$pip install nselib --upgrade

Function list

nselib

  • trading_holiday_calendar

Example :

import nselib

data = nselib.trading_holiday_calendar()

Capital Market

  • price_volume_and_deliverable_position_data
  • price_volume_data
  • deliverable_position_data
  • bulk_deal_data
  • block_deals_data
  • short_selling_data
  • bhav_copy_with_delivery
  • bhav_copy_equities
  • equity_list
  • fno_equity_list
  • nifty50_equity_list
  • india_vix_data
  • index_data

Example :

from nselib import capital_market

data = capital_market.price_volume_and_deliverable_position_data(symbol='SBIN', from_date='01-06-2023', to_date='10-06-2023')

OR

data = capital_market.price_volume_and_deliverable_position_data(symbol='SBIN', period='1M')

More functions will be available in future releases...

Derivative

  • future_price_volume_data
  • option_price_volume_data
  • fno_bhav_copy
  • participant_wise_open_interest
  • participant_wise_trading_volume
  • expiry_dates_future
  • expiry_dates_option_index
  • nse_live_option_chain
  • fii_derivatives_statistics

Example :

from nselib import derivatives

data = derivatives.future_price_volume_data(symbol='SBIN', instrument='FUTSTK', from_date='01-06-2023', to_date='10-06-2023')

OR

data = derivatives.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')

More functions will be available in future releases...

Debt

More functions will be available in future releases...

How can I contribute?

There are multiple ways in which you can contribute-

Write about your project

There are working on to add many function to this library. NSElib at the moment is short of good documentation. There are lot of features in NSElib yet to come :( , so till we complete the documentation, I'll need support from the community.

Please write about your projects in blogs, quora answers and other forums, so that people find working examples to get started.

Raising issues, bugs, enhancement requests

For quick resolution please raise issues both here on issue page. I'll try my best to address the issues quickly on github as and when I get notified, but raising it on stackoverflow will provide you access to a larger group and someone else might solve your problem before I do.

Submit patches

If you have fixed an issue or added a new feature, please fork this repository, make your changes and submit a pull request. Here's good article on how to do this.

Looking forward for healthy participation from community.

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

nselib-0.5.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

nselib-0.5-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file nselib-0.5.tar.gz.

File metadata

  • Download URL: nselib-0.5.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for nselib-0.5.tar.gz
Algorithm Hash digest
SHA256 31b39937c4eb6465598360a8419113580db776951ae1c71e10faf734ba9e1968
MD5 5a8b0e5cf4d163312e7008faa4923d71
BLAKE2b-256 fa5d9199994abeeb93c476a69d780b52ce0fe9883d562615c42bbda8e7cd2351

See more details on using hashes here.

File details

Details for the file nselib-0.5-py3-none-any.whl.

File metadata

  • Download URL: nselib-0.5-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for nselib-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 693722cc1737a918600ea4cec9338ac319d7e0aca182e567ad3ea940881ee49f
MD5 335bede0ec4aa09acb49c05ccfa08950
BLAKE2b-256 a3d530aed19d771659b5dd592266d457ead1cedb922cc20b60a1ae443067ed29

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