All URIs are relative to https://tradeapi.kotaksecurities.com/apim
Method | Description |
---|---|
history | Get historical data |
object history(resource, input)
Get historical data based on given resource
Get Historical data
from ks_api_client import ks_api
client = ks_api.KSTradeApi(access_token = "access_token", userid = "userid", \
consumer_key = "consumer_key", ip = "IP", app_id = "app_id")
#First initialize session and generate session token
try:
# Get historical prices
client.history("historicalprices",{"exchange":"bse","cocode":"476","fromdate":"01-jan-2014","todate":"08-oct-2015"})
except Exception as e:
print("Exception when calling Historical API->details: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
resource | str | Type of resource historicalprices,historicalprices-unadjusted,NSEFNO_HistoricalContinuousChart,LiveorEODHistorical | |
input | str | Json as per resource selected |
object
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Historical Details | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]