GetExpiryDates : Returns array of Expiry Dates (e.g. 25JUN2020, 30JUL2020, etc.)
Supported parameters
accessKey | Access key according to your subscription | Required parameter. |
exchange | String value like MCX | Name of supported exchange. How to get list of supported exchanges you can find here |
instrumentType | String value like FUTIDX | Optional parameter. Name of supported Instrument Type. How to get list of supported values you can find here |
product | String value like BANKNIFTY | Optional parameter. Name of supported Product. How to get list of supported values you can find here |
xml | [true]/[false], default = [false] | Optional parameter. By default function will return JSON data. Functions will return XML data if set as [true] |
format | CSV | Optional parameter. When format=CSV, data in CSV format will be returned. Please make sure not to pass xml parameter (neither True nor False) when format=CSV is sent |
Example | http://endpoint:port/GetExpiryDates/?accessKey=0a0b0c&exchange=MCX&xml=true |
What is returned ?
ExpiryDates |
Example of returned data
JSON | XML |
{“EXPIRYDATES”: [“27Aug2015″,”30Jul2015″,”17Jul2015″,”24Sep2015″,”31Dec2015”]} |
<?xml version=”1.0″ encoding=”utf-16″ ?>
<StringArray xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
<Value>27Aug2015</Value>
<Value>30Jul2015</Value>
<Value>17Jul2015</Value>
</StringArray> |
CSV |
Value
25APR2024
02MAY2024
09MAY2024
16MAY2024
23MAY2024
30MAY2024
27JUN2024
26SEP2024
26DEC2024
|