Skip to content

Instantly share code, notes, and snippets.

View sagamantus's full-sized avatar
🐼
panda.

Sagar Mankoti sagamantus

🐼
panda.
View GitHub Profile
@sagamantus
sagamantus / zerodha_request_token.py
Last active November 1, 2025 16:13
Automating the process of obtaining a request token for the Kite Connect API using the provided credentials and the KiteConnect library.
import requests
import re
import onetimepass as otp
from urllib.parse import urlparse, parse_qs
from kiteconnect import KiteConnect
def get_request_token(credentials: dict) -> str:
"""Use provided credentials and return request token.