skip to navigation
skip to content

kitehistory 1.4

Kite History API wrapper


|GitHub license| |saythanks|

``kitehistory`` is a wrapper around `Kite Historical
API <https:"" docs="" connect="" v1="" #historical-data="">`__

Installation :


pip install kitehistory


Options :


--symbol Stock symbol of the instrument.
--interval Time interval for the tick data.
--from_date Start date indicating the start of records.
--to_date End date indicating the end of records.
--exchange Exchange Name. (MCX/NSE/BSE/NFO/CDS/BFO/MCXSX)
--output Output filename to save `csv`
--path Specify path to directory to store instruments master
along with access token keys
--verbose Enable verbose logging

Example Usage :


kitehistory -s TCS -i day -f 2017-05-15 -t 2017-06-05 -e NSE -o TCS.csv --verbose

.. figure:: screens/tcs.png
:alt: img

First Time Setup

``kitehistory`` depends on Kite API to fetch instruments master file in
``.csv``. You need to create an appllication at and export the following keys in your


export KITE_API_KEY='your-kite-api-key'
export KITE_SECRET='your-kite-secret-key'
export KITE_REQUEST_TOKEN='your-kite-request-token'

How it works ?

Kite API requires instrument-token to fetch the historical data. The
idea behind this wrapper is to fetch the instruments master file and
query it for the required symbol to fetch instrument token. Once the
token is fetched, it uses Kite's API to get the historical data and
saves the output in a ``.csv`` ready for analysis etc.


- `pandas <http:""/>`__
- `Kite API <https:"" apps=""/>`__
- `pykiteconnect <pykiteconnect>`__
- `requests <http:"" en="" master=""/>`__


Feel free to report any issues and/or send PRs for additional features.


MIT © Karan Sharma `LICENSE included here <license>`__

.. |GitHub license| image::
.. |saythanks| image::
.. |asciicast| image::

File Type Py Version Uploaded on Size
kitehistory-1.4-py3-none-any.whl (md5) Python Wheel py3 2017-06-11 8KB
kitehistory-1.4.tar.gz (md5) Source 2017-06-11 6KB