Skip to main content

Web scraping api for the National Stock Exchange of India. Retrives quotes for equities and equity futures from the NSE website.

Project description

nsequoter Documentation


Author:

Aditya Keida

Version:

1.0.0

Date:

7th Jul, 2016

License:

MIT

Motivation


Python is fast becoming the programing language of choice for Quants

and Data Analysts, and an easy way to fetch data from the most

important sources is needed. The power and popularity of Python reside

in the ability to reuse code on through over 40000 libraries and modules.

That said, getting quotes from the National Stock Exchange of India (NSE)

is quite hard in python, and most other languages for that matter.

nsequoter is a module that aims to make it trivially easy to get these

quotes from the NSE, by simply reading the data off the exchange’s website

http://www.nseindia.com and importing it into python. The current version

Supports equity and equity futures. equity options and currency derivatives

will be added in the next version. Indexes will follow after that.

Usage


The simplest way to use the library is as follows:

>>import nsequoter #imports the module and all the functions in it



>>#to get a float value of the quote for '3M India'

>>nsequoter.get_equity_quote('3MINDIA') #use the listed symbol as argument



>>#to get a float value of the quote for '3M India' July futures

>>nsequoter.get_futures_quote('3MINDIA', 'JUL') #use symbol and month as argument

Note that the arguments are not case sensitive. However, the symbol/code

should be as listed. Months can be entered as three letter months (String)

or their calendar number (Jul = 7, Aug = 8, etc.)

Futures contracts expire on the Thursday of each month. Queries after

that date will result in an exception.

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

nsequoter-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file nsequoter-1.0.0.tar.gz.

File metadata

  • Download URL: nsequoter-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nsequoter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5865b1cb91a6a644c8d31e0921e5cef2153c1bf3194bda18709cfd3dc51aa9fb
MD5 b0d194f67462a1a3779c7a7d8b4504e0
BLAKE2b-256 e075387dabc2c4373e464a7052c9bdecbd609ac5161e89cfe4358a6e1e4642ed

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