Skip to content

Instantly share code, notes, and snippets.

## WARNING: This is not meant to be used, this is just for demonstration purpose. Get official kite API access from Zerodha.
## USAGE:
# from kiteext_pro_open import KiteExt
# kite = KiteExt()
# kite.login_with_credentials(user_id, password, twofa_secret)
# print(kite.profile())
# print(kite.ltp(['NSE:TCS']))
# print(kite.quote(['NSE:TCS']))
# known issue: history api not working.
@swapdha
swapdha / kiteconnect_extras.md
Created August 13, 2023 06:28
KiteConnectExt On Steroids

Features of kiteconnect_extras / KiteConnect Extras On Steriod Version

- IPC Enabled `KiteConnect` aka `KiteExt`
- IPC Enabled `KiteTicker` aka `KiteExtTicker`

Additional Features of the new KiteExt on Steriods.

1.  Offers Feature to be used in other brokers `Python SDk` for obtaining `historical_data` 
    from existing running master kite `KiteExt` instance on a different process. 1000's of 

seperate processes belonging to different/same sdk can get the historical data without any issue.

from __future__ import annotations
# -*- coding: utf-8 -*-
"""
:description: KiteConnect (Batteries Included) Asynchronous Version.
:license: MIT.
:author: Dr June Moone
:created: On Saturday July 29, 2023 19:56:53 GMT+05:30
"""
__author__ = "Dr June Moone"
__webpage__ = "https://github.com/MooneDrJune"
@swapdha
swapdha / bns.js
Created January 15, 2023 05:19 — forked from vishnus/bns.js
Black and Scholes formula in JS
function bns() {
// Sample input
spot = 8400;
strike = 8600;
expiry = "2016-12-01 23:59:00";
volt = 18;
int_rate = 7;
div_yld = 0;
//Validation
@swapdha
swapdha / app.py
Created September 11, 2022 05:42 — forked from ajinasokan/app.py
KiteConnect postback example
'''
Hi traders,
Here is a simple generic example for implementing a postback mechanism. You can host this in a remote server or in your local server itself.
Run Locally
===========
1. Install ngrok from https://ngrok.com/