Closed pv-ajay-thota closed 2 years ago
@pv-ajay-thota a better way to get the latest instrument.
import requests from requests.structures import CaseInsensitiveDict url = "https://ctradeapi.kotaksecurities.com/apim/scripmaster/1.1/filename" headers = CaseInsensitiveDict() headers["accept"] = "application/json" headers["consumerKey"] = client.consumer_key headers["Authorization"] = "Bearer " + client.access_token scriptMaster=requests.get(url, headers=headers) print(scriptMaster.json())
Unable to locate the instrument token list.. please share the references if any..