Giter Club home page Giter Club logo

nsetools's Introduction

Changes

  • ETF live data fetching

Installation

Example Script

import json
from nsetools import Nse

nse = Nse()

indexesQ = ['NIFTY 50', 'NIFTY NEXT 50', 'INDIA VIX']
etfQ = ["NIFTYBEES", "JUNIORBEES"]

outputETFs = []
outputIndexes = []

for q in etfQ:
    jd = json.loads(nse.get_etf_quote(q, as_json=True))
    items = [q, jd.get("pChange"), jd.get("change"), jd.get("lastPrice")]
    outputETFs.append(items)

for q in indexesQ:
    jd = json.loads(nse.get_index_quote(q, as_json=True))
    items = [q, jd.get("pChange"), jd.get("change"), jd.get("lastPrice")]
    outputIndexes.append(items)

print(*outputIndexes, "*"*100, *outputETFs, sep="\n")

Project Page

http://nsetools.readthedocs.io

Updates

To stay updated please subscribe to google group https://groups.google.com/forum/#!forum/nsetools

nsetools

Python library for extracting realtime data from National Stock Exchange (India)

Introduction.

nsetools is a library for collecting real time data from National Stock Exchange (India). It can be used in various types of projects which requires getting live quotes for a given stock or index or build large data sets for further data analytics. You can also build cli applications which can provide you live market details at a blazing fast speeds, much faster that the browsers. The accuracy of data is only as correct as provided on www.nseindia.com.

Main Features:

  • Getting live quotes for stocks using stock codes.
  • Return data in both json and python dict and list formats.
  • Getting quotes for all the indices traded in NSE, e.g CNX NIFTY, BANKNIFTY etc.
  • Getting list of top losers.
  • Getting list of top gainers.
  • Helper APIs to check whether a given stock code or index code is correct.
  • Getting list of all indices and stocks.
  • Cent percent unittest coverage.

Dependencies

To keep it simple and supported on most of the platforms, it uses only core python libraries, hence there are no external dependencies. It can be used out of box and absolutely not set up is required except an internet connection.

Detailed Documenation

For complete documenation, please refer http://nsetools.readthedocs.io

nsetools's People

Contributors

abhijitmamarde avatar altendky avatar arkits avatar ask1234560 avatar howdyauthors avatar skyrocknroll avatar swapniel99 avatar vsjha18 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.