Skip to content

Instantly share code, notes, and snippets.

@saideep
saideep / India StockExchange Api.py
Created October 11, 2025 07:18 — forked from j-thepac/India StockExchange Api.py
Requests and Cookies with Example of NSE - Stock Exchange
# Session Management with API
import requests,httpx
def bse():
reqUrl = "https://api.bseindia.com/RealTimeBseIndiaAPI/api/GetSensexData/w"
headersList = {"Referer": "https://www.bseindia.com/" }
response = requests.GET(reqUrl, headers=headersList)
print(response.text)