Giter Site home page Giter Site logo

nse_eod's Introduction

NSE_EOD

Installing on Linux

git clone 'https://github.com/opmashin/nse_eod'
cd nse_eod
python setup.py install

Usage

Note : Date has to be in dd-mm-yyyy format.

>>> import nse_eod
>>> nse_eod.get_historical_data('ACC','01-01-2015','01-01-2020')
     "Symbol" "Series"         "Date" "PrevClose" "OpenPrice"  ... "TotalTradedQuantity"      "Turnover" "No.ofTrades" "DeliverableQty" "%DlyQttoTradedQty"
0       "ACC"     "EQ"  "01-Jan-2015"   "1400.15"   "1400.15"  ...              "101070"  "141976410.55"        "3846"          "33645"             "33.29"
1       "ACC"     "EQ"  "02-Jan-2015"   "1403.55"   "1406.40"  ...              "153349"  "217835777.25"        "6880"          "52032"             "33.93"
2       "ACC"     "EQ"  "05-Jan-2015"   "1425.90"   "1425.00"  ...              "207979"  "298167418.35"        "8064"         "115027"             "55.31"
3       "ACC"     "EQ"  "06-Jan-2015"   "1433.65"   "1425.00"  ...              "368755"  "513335774.90"       "13016"         "245627"             "66.61"
4       "ACC"     "EQ"  "07-Jan-2015"   "1383.55"   "1382.00"  ...              "301895"  "412004301.50"       "13766"         "126159"             "41.79"
...       ...      ...            ...         ...         ...  ...                   ...             ...           ...              ...                 ...
1230    "ACC"     "EQ"  "26-Dec-2019"   "1460.60"   "1464.40"  ...              "324912"  "474147911.55"       "10718"          "95658"             "29.44"
1231    "ACC"     "EQ"  "27-Dec-2019"   "1451.70"   "1456.00"  ...              "395778"  "577829206.30"       "16946"         "117526"             "29.69"
1232    "ACC"     "EQ"  "30-Dec-2019"   "1451.30"   "1455.60"  ...              "433982"  "634206265.95"       "12782"          "47484"             "10.94"
1233    "ACC"     "EQ"  "31-Dec-2019"   "1453.05"   "1454.50"  ...              "581119"  "842339082.70"       "16553"         "237479"             "40.87"
1234    "ACC"     "EQ"  "01-Jan-2020"   "1445.65"   "1452.50"  ...              "321092"  "463817701.05"       "12889"          "82053"             "25.55"

[1235 rows x 15 columns]
>>> nse_eod.get_period_data('ACC','24month')
    "Symbol" "Series"         "Date" "PrevClose" "OpenPrice"  ... "TotalTradedQuantity"       "Turnover" "No.ofTrades" "DeliverableQty" "%DlyQttoTradedQty"
0      "ACC"     "EQ"  "02-Aug-2018"   "1531.35"   "1531.35"  ...              "456730"   "701369566.70"       "18692"         "110765"             "24.25"
1      "ACC"     "EQ"  "03-Aug-2018"   "1541.10"   "1546.00"  ...              "373196"   "571633971.10"       "15798"          "51751"             "13.87"
2      "ACC"     "EQ"  "06-Aug-2018"   "1518.65"   "1528.40"  ...              "384285"   "581311457.50"       "13545"         "152068"             "39.57"
3      "ACC"     "EQ"  "07-Aug-2018"   "1524.00"   "1529.00"  ...              "577506"   "893370618.75"       "20238"          "95670"             "16.57"
4      "ACC"     "EQ"  "08-Aug-2018"   "1538.65"   "1535.00"  ...              "498533"   "769059965.85"       "20872"          "94395"             "18.93"
..       ...      ...            ...         ...         ...  ...                   ...              ...           ...              ...                 ...
485    "ACC"     "EQ"  "27-Jul-2020"   "1343.80"   "1353.00"  ...             "1271972"  "1727167776.85"       "36854"         "377622"             "29.69"
486    "ACC"     "EQ"  "28-Jul-2020"   "1363.40"   "1367.95"  ...             "1198590"  "1667010166.05"       "43446"         "181664"             "15.16"
487    "ACC"     "EQ"  "29-Jul-2020"   "1400.60"   "1403.30"  ...             "1634300"  "2302193583.80"       "42284"         "416666"             "25.50"
488    "ACC"     "EQ"  "30-Jul-2020"   "1410.95"   "1416.60"  ...             "1624791"  "2336647848.55"       "57141"         "396057"             "24.38"
489    "ACC"     "EQ"  "31-Jul-2020"   "1447.20"   "1454.80"  ...              "940224"  "1345048618.00"       "32256"         "258212"             "27.46"

[490 rows x 15 columns]

TODO

  • Support Other instruments.
  • Support Fetching lists of stock in an index and exchange

nse_eod's People

Contributors

opmashin 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.