GetHistory : Returns historical data (Tick / Minute / EOD)
Supported parameters
Exchange | String value like MCX | Name of supported exchange. How to get list of supported exchanges you can find here |
InstrumentIdentifier | String value of instrument identifier | How to get list of available instruments and identifiers you can find here |
Periodicity | [“TICK”]/[“MINUTE”]/[“HOUR”]/[“DAY”]/[“WEEK”]/[“MONTH”], default = [“TICK”] | String value of required periodicity. |
Period | Numerical value 1, 2, 3…, default = 1 | Optional parameter of required period for historical data. Can be applied for [MINUTE]/[HOUR]/[DAY] periodicity types |
From | Numerical value of UNIX Timestamp like ‘1388534400’ (01-01-2014 0:0:0) | Optional parameter. It means starting timestamp for called historical data. This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit Epoch Converter to get formulae to convert human readable time to Epoch and vice versa (scroll to end of their home page) |
To | Numerical value of UNIX Timestamp like ‘1412121600’ (10-01-2014 0:0:0) | Optional parameter. It means ending timestamp for called historical data. This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit Epoch Converter to get formulae to convert human readable time to Epoch and vice versa (scroll to end of their home page) |
Max | Numerical value. Default = 0 (means all available data) | Optional parameter. It limits returned data. |
UserTag | Any string value | Optional parameter. It will be returned with historical data. |
IsShortIdentifier | [true]/[false], default = [false] | Optional parameter. By default function will use long instrument identifier format. Functions will use short instrument identifier format if set as [true]. Example of ShortIdentifiers are NIFTY25MAR21FUT, RELIANCE25MAR21FUT, NIFTY25MAR2115000CE, etc. |
AdjustSplits | [true]/[false], default = [false] | Optional parameter. By default function will give you the data without Adjusted , if we need the Adjusted data then we need to pass [AdjustSplits=true] then data will return with adjusted values . |
What is returned ?
LastTradeTime, QuotationLot (LotSize), TradedQty, OpenInterest, Open, High, Low, Close |
LastTradeTime : This value is expressed as no. of seconds since Epoch time (i.e. 1st January 1970). Also known as Unix Time. Please Visit Epoch Converter to get formulae to convert human readable time to Epoch and vice versa (scroll to end of their home page) |
Sample request and response
JavaScript | View | Download PDF file - Click Here |
Python | View | Download PDF file - Click Here |
Java Source |