Futures Options Expirations API
getFuturesOptionsExpirations
The getFuturesOptionsExpiration API provides last trade dates for options on futures contracts.
View All APIsContact Us to Get Access
Inputs
rootsoptional
A symbol or code that identifies a futures root. Multiple symbols separated by a comma may be used.
Type
list (A comma or semi-colon delimited string.)
Example
ZC,ZS
contractsoptional
A symbol or code that identifies a futures contract. Multiple symbols separated by a comma may be used.
Type
list (A comma or semi-colon delimited string.)
Example
ZCN14,ZCU14
symbolsoptional
A symbol or code that identifies a futures option. Multiple symbols separated by a comma may be used.
Type
list (A comma or semi-colon delimited string.)
Example
ZCK210C,ZCK210P
Outputs
symbol
always returned
always returned
A symbol or code that identifies the futures symbol.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
exchange
always returned
always returned
The name of the exchange the instrument belongs to.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
underlyingContract
always returned
always returned
The contract the option belongs to.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
expirationDate
always returned
always returned
The expiration date.
date
A date in the format of YYYY-MM-DD.
A date in the format of YYYY-MM-DD.
Status Code Responses
200
OK
Success
400
Bad Request
The request was invalid, please see the message for more information.
500
Internal Server Error
Something is not working correctly, please contact support.
JSON
GET
GET https://ondemand.websol.barchart.com/getFuturesOptionsExpirations.json?apikey=YOUR_API_KEY&roots=ZC%2CZS&contracts=ZCN14%2CZCU14&symbols=ZCK210C%2CZCK210P
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getFuturesOptionsExpirations.json
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&roots=ZC%2CZS&contracts=ZCN14%2CZCU14&symbols=ZCK210C%2CZCK210P
Response
{
"status": {
"code": 200,
"message": "Success."
},
"results": [
{
"symbol": "BC2J21",
"exchange": "CBOT",
"underlyingContract": "ZCK21",
"expirationDate": "2021-04-23"
},
{
"symbol": "BC3J21",
"exchange": "CBOT",
"underlyingContract": "ZCK21",
"expirationDate": "2021-04-23"
},
{
"symbol": "BC5J21",
"exchange": "CBOT",
"underlyingContract": "ZCN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "BCDK21",
"exchange": "CBOT",
"underlyingContract": "ZCZ21",
"expirationDate": "2021-11-26"
},
{
"symbol": "BCDM21",
"exchange": "CBOT",
"underlyingContract": "ZCZ21",
"expirationDate": "2021-11-26"
},
{
"symbol": "BCDN21",
"exchange": "CBOT",
"underlyingContract": "ZCZ21",
"expirationDate": "2021-11-26"
},
{
"symbol": "BCDQ21",
"exchange": "CBOT",
"underlyingContract": "ZCZ21",
"expirationDate": "2021-11-26"
},
{
"symbol": "BCDU21",
"exchange": "CBOT",
"underlyingContract": "ZCZ21",
"expirationDate": "2021-11-26"
},
{
"symbol": "BCDV21",
"exchange": "CBOT",
"underlyingContract": "ZCZ22",
"expirationDate": "2022-11-25"
},
{
"symbol": "BCDX21",
"exchange": "CBOT",
"underlyingContract": "ZCZ22",
"expirationDate": "2022-11-25"
},
{
"symbol": "BCDZ21",
"exchange": "CBOT",
"underlyingContract": "ZCZ22",
"expirationDate": "2022-11-25"
},
{
"symbol": "BZ6N21",
"exchange": "CBOT",
"underlyingContract": "ZCN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "BZCK21",
"exchange": "CBOT",
"underlyingContract": "ZCK21",
"expirationDate": "2021-04-23"
},
{
"symbol": "BZCN21",
"exchange": "CBOT",
"underlyingContract": "ZCN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "BZCZ21",
"exchange": "CBOT",
"underlyingContract": "ZCZ21",
"expirationDate": "2021-11-26"
},
{
"symbol": "ZCH22",
"exchange": "CBOT",
"underlyingContract": "ZCH22",
"expirationDate": "2022-02-18"
},
{
"symbol": "ZCK21",
"exchange": "CBOT",
"underlyingContract": "ZCK21",
"expirationDate": "2021-04-23"
},
{
"symbol": "ZCK22",
"exchange": "CBOT",
"underlyingContract": "ZCK22",
"expirationDate": "2022-04-22"
},
{
"symbol": "ZCM21",
"exchange": "CBOT",
"underlyingContract": "ZCN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "ZCN21",
"exchange": "CBOT",
"underlyingContract": "ZCN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "ZCN22",
"exchange": "CBOT",
"underlyingContract": "ZCN22",
"expirationDate": "2022-06-24"
},
{
"symbol": "ZCN23",
"exchange": "CBOT",
"underlyingContract": "ZCN23",
"expirationDate": "2023-06-23"
},
{
"symbol": "ZCU21",
"exchange": "CBOT",
"underlyingContract": "ZCU21",
"expirationDate": "2021-08-27"
},
{
"symbol": "ZCU22",
"exchange": "CBOT",
"underlyingContract": "ZCU22",
"expirationDate": "2022-08-26"
},
{
"symbol": "ZCZ21",
"exchange": "CBOT",
"underlyingContract": "ZCZ21",
"expirationDate": "2021-11-26"
},
{
"symbol": "ZCZ22",
"exchange": "CBOT",
"underlyingContract": "ZCZ22",
"expirationDate": "2022-11-25"
},
{
"symbol": "ZCZ23",
"exchange": "CBOT",
"underlyingContract": "ZCZ23",
"expirationDate": "2023-11-24"
},
{
"symbol": "BS6N21",
"exchange": "CBOT",
"underlyingContract": "ZSN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "BSZK21",
"exchange": "CBOT",
"underlyingContract": "ZSK21",
"expirationDate": "2021-04-23"
},
{
"symbol": "BY2J21",
"exchange": "CBOT",
"underlyingContract": "ZSK21",
"expirationDate": "2021-04-23"
},
{
"symbol": "BY3J21",
"exchange": "CBOT",
"underlyingContract": "ZSK21",
"expirationDate": "2021-04-23"
},
{
"symbol": "BY5J21",
"exchange": "CBOT",
"underlyingContract": "ZSN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "BYDK21",
"exchange": "CBOT",
"underlyingContract": "ZSX21",
"expirationDate": "2021-10-22"
},
{
"symbol": "BYDM21",
"exchange": "CBOT",
"underlyingContract": "ZSX21",
"expirationDate": "2021-10-22"
},
{
"symbol": "BYDN21",
"exchange": "CBOT",
"underlyingContract": "ZSX21",
"expirationDate": "2021-10-22"
},
{
"symbol": "BYDQ21",
"exchange": "CBOT",
"underlyingContract": "ZSX21",
"expirationDate": "2021-10-22"
},
{
"symbol": "BYDU21",
"exchange": "CBOT",
"underlyingContract": "ZSX21",
"expirationDate": "2021-10-22"
},
{
"symbol": "BYDV21",
"exchange": "CBOT",
"underlyingContract": "ZSX22",
"expirationDate": "2022-10-21"
},
{
"symbol": "BYDX21",
"exchange": "CBOT",
"underlyingContract": "ZSX22",
"expirationDate": "2022-10-21"
},
{
"symbol": "BYSF22",
"exchange": "CBOT",
"underlyingContract": "ZSF22",
"expirationDate": "2021-12-23"
},
{
"symbol": "BYSH22",
"exchange": "CBOT",
"underlyingContract": "ZSH22",
"expirationDate": "2022-02-18"
},
{
"symbol": "BYSN21",
"exchange": "CBOT",
"underlyingContract": "ZSN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "BYSU21",
"exchange": "CBOT",
"underlyingContract": "ZSU21",
"expirationDate": "2021-08-27"
},
{
"symbol": "BYSX21",
"exchange": "CBOT",
"underlyingContract": "ZSX21",
"expirationDate": "2021-10-22"
},
{
"symbol": "ZSF22",
"exchange": "CBOT",
"underlyingContract": "ZSF22",
"expirationDate": "2021-12-23"
},
{
"symbol": "ZSH22",
"exchange": "CBOT",
"underlyingContract": "ZSH22",
"expirationDate": "2022-02-18"
},
{
"symbol": "ZSK21",
"exchange": "CBOT",
"underlyingContract": "ZSK21",
"expirationDate": "2021-04-23"
},
{
"symbol": "ZSK22",
"exchange": "CBOT",
"underlyingContract": "ZSK22",
"expirationDate": "2022-04-22"
},
{
"symbol": "ZSM21",
"exchange": "CBOT",
"underlyingContract": "ZSN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "ZSN21",
"exchange": "CBOT",
"underlyingContract": "ZSN21",
"expirationDate": "2021-06-25"
},
{
"symbol": "ZSN22",
"exchange": "CBOT",
"underlyingContract": "ZSN22",
"expirationDate": "2022-06-24"
},
{
"symbol": "ZSQ21",
"exchange": "CBOT",
"underlyingContract": "ZSQ21",
"expirationDate": "2021-07-23"
},
{
"symbol": "ZSU21",
"exchange": "CBOT",
"underlyingContract": "ZSU21",
"expirationDate": "2021-08-27"
},
{
"symbol": "ZSX21",
"exchange": "CBOT",
"underlyingContract": "ZSX21",
"expirationDate": "2021-10-22"
},
{
"symbol": "ZSX22",
"exchange": "CBOT",
"underlyingContract": "ZSX22",
"expirationDate": "2022-10-21"
}
]
}
XML
GET
GET https://ondemand.websol.barchart.com/getFuturesOptionsExpirations.xml?apikey=YOUR_API_KEY&roots=ZC%2CZS&contracts=ZCN14%2CZCU14&symbols=ZCK210C%2CZCK210P
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getFuturesOptionsExpirations.xml
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&roots=ZC%2CZS&contracts=ZCN14%2CZCU14&symbols=ZCK210C%2CZCK210P
Response
<?xml version="1.0" encoding="utf-8"?>
<getFuturesOptionsExpirations>
<status>
<code>200</code>
<message>Success.</message>
</status>
<item>
<symbol>BC2J21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCK21</underlyingContract>
<expirationDate>2021-04-23</expirationDate>
</item>
<item>
<symbol>BC3J21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCK21</underlyingContract>
<expirationDate>2021-04-23</expirationDate>
</item>
<item>
<symbol>BC5J21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>BCDK21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ21</underlyingContract>
<expirationDate>2021-11-26</expirationDate>
</item>
<item>
<symbol>BCDM21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ21</underlyingContract>
<expirationDate>2021-11-26</expirationDate>
</item>
<item>
<symbol>BCDN21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ21</underlyingContract>
<expirationDate>2021-11-26</expirationDate>
</item>
<item>
<symbol>BCDQ21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ21</underlyingContract>
<expirationDate>2021-11-26</expirationDate>
</item>
<item>
<symbol>BCDU21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ21</underlyingContract>
<expirationDate>2021-11-26</expirationDate>
</item>
<item>
<symbol>BCDV21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ22</underlyingContract>
<expirationDate>2022-11-25</expirationDate>
</item>
<item>
<symbol>BCDX21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ22</underlyingContract>
<expirationDate>2022-11-25</expirationDate>
</item>
<item>
<symbol>BCDZ21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ22</underlyingContract>
<expirationDate>2022-11-25</expirationDate>
</item>
<item>
<symbol>BZ6N21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>BZCK21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCK21</underlyingContract>
<expirationDate>2021-04-23</expirationDate>
</item>
<item>
<symbol>BZCN21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>BZCZ21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ21</underlyingContract>
<expirationDate>2021-11-26</expirationDate>
</item>
<item>
<symbol>ZCH22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCH22</underlyingContract>
<expirationDate>2022-02-18</expirationDate>
</item>
<item>
<symbol>ZCK21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCK21</underlyingContract>
<expirationDate>2021-04-23</expirationDate>
</item>
<item>
<symbol>ZCK22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCK22</underlyingContract>
<expirationDate>2022-04-22</expirationDate>
</item>
<item>
<symbol>ZCM21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>ZCN21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>ZCN22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCN22</underlyingContract>
<expirationDate>2022-06-24</expirationDate>
</item>
<item>
<symbol>ZCN23</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCN23</underlyingContract>
<expirationDate>2023-06-23</expirationDate>
</item>
<item>
<symbol>ZCU21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCU21</underlyingContract>
<expirationDate>2021-08-27</expirationDate>
</item>
<item>
<symbol>ZCU22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCU22</underlyingContract>
<expirationDate>2022-08-26</expirationDate>
</item>
<item>
<symbol>ZCZ21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ21</underlyingContract>
<expirationDate>2021-11-26</expirationDate>
</item>
<item>
<symbol>ZCZ22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ22</underlyingContract>
<expirationDate>2022-11-25</expirationDate>
</item>
<item>
<symbol>ZCZ23</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZCZ23</underlyingContract>
<expirationDate>2023-11-24</expirationDate>
</item>
<item>
<symbol>BS6N21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>BSZK21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSK21</underlyingContract>
<expirationDate>2021-04-23</expirationDate>
</item>
<item>
<symbol>BY2J21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSK21</underlyingContract>
<expirationDate>2021-04-23</expirationDate>
</item>
<item>
<symbol>BY3J21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSK21</underlyingContract>
<expirationDate>2021-04-23</expirationDate>
</item>
<item>
<symbol>BY5J21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>BYDK21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX21</underlyingContract>
<expirationDate>2021-10-22</expirationDate>
</item>
<item>
<symbol>BYDM21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX21</underlyingContract>
<expirationDate>2021-10-22</expirationDate>
</item>
<item>
<symbol>BYDN21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX21</underlyingContract>
<expirationDate>2021-10-22</expirationDate>
</item>
<item>
<symbol>BYDQ21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX21</underlyingContract>
<expirationDate>2021-10-22</expirationDate>
</item>
<item>
<symbol>BYDU21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX21</underlyingContract>
<expirationDate>2021-10-22</expirationDate>
</item>
<item>
<symbol>BYDV21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX22</underlyingContract>
<expirationDate>2022-10-21</expirationDate>
</item>
<item>
<symbol>BYDX21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX22</underlyingContract>
<expirationDate>2022-10-21</expirationDate>
</item>
<item>
<symbol>BYSF22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSF22</underlyingContract>
<expirationDate>2021-12-23</expirationDate>
</item>
<item>
<symbol>BYSH22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSH22</underlyingContract>
<expirationDate>2022-02-18</expirationDate>
</item>
<item>
<symbol>BYSN21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>BYSU21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSU21</underlyingContract>
<expirationDate>2021-08-27</expirationDate>
</item>
<item>
<symbol>BYSX21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX21</underlyingContract>
<expirationDate>2021-10-22</expirationDate>
</item>
<item>
<symbol>ZSF22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSF22</underlyingContract>
<expirationDate>2021-12-23</expirationDate>
</item>
<item>
<symbol>ZSH22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSH22</underlyingContract>
<expirationDate>2022-02-18</expirationDate>
</item>
<item>
<symbol>ZSK21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSK21</underlyingContract>
<expirationDate>2021-04-23</expirationDate>
</item>
<item>
<symbol>ZSK22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSK22</underlyingContract>
<expirationDate>2022-04-22</expirationDate>
</item>
<item>
<symbol>ZSM21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>ZSN21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSN21</underlyingContract>
<expirationDate>2021-06-25</expirationDate>
</item>
<item>
<symbol>ZSN22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSN22</underlyingContract>
<expirationDate>2022-06-24</expirationDate>
</item>
<item>
<symbol>ZSQ21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSQ21</underlyingContract>
<expirationDate>2021-07-23</expirationDate>
</item>
<item>
<symbol>ZSU21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSU21</underlyingContract>
<expirationDate>2021-08-27</expirationDate>
</item>
<item>
<symbol>ZSX21</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX21</underlyingContract>
<expirationDate>2021-10-22</expirationDate>
</item>
<item>
<symbol>ZSX22</symbol>
<exchange>CBOT</exchange>
<underlyingContract>ZSX22</underlyingContract>
<expirationDate>2022-10-21</expirationDate>
</item>
</getFuturesOptionsExpirations>
CSV
GET
GET https://ondemand.websol.barchart.com/getFuturesOptionsExpirations.csv?apikey=YOUR_API_KEY&roots=ZC%2CZS&contracts=ZCN14%2CZCU14&symbols=ZCK210C%2CZCK210P
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getFuturesOptionsExpirations.csv
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&roots=ZC%2CZS&contracts=ZCN14%2CZCU14&symbols=ZCK210C%2CZCK210P
Response
symbol,exchange,underlyingContract,expirationDate
"BC2J21","CBOT","ZCK21","2021-04-23"
"BC3J21","CBOT","ZCK21","2021-04-23"
"BC5J21","CBOT","ZCN21","2021-06-25"
"BCDK21","CBOT","ZCZ21","2021-11-26"
"BCDM21","CBOT","ZCZ21","2021-11-26"
"BCDN21","CBOT","ZCZ21","2021-11-26"
"BCDQ21","CBOT","ZCZ21","2021-11-26"
"BCDU21","CBOT","ZCZ21","2021-11-26"
"BCDV21","CBOT","ZCZ22","2022-11-25"
"BCDX21","CBOT","ZCZ22","2022-11-25"
"BCDZ21","CBOT","ZCZ22","2022-11-25"
"BZ6N21","CBOT","ZCN21","2021-06-25"
"BZCK21","CBOT","ZCK21","2021-04-23"
"BZCN21","CBOT","ZCN21","2021-06-25"
"BZCZ21","CBOT","ZCZ21","2021-11-26"
"ZCH22","CBOT","ZCH22","2022-02-18"
"ZCK21","CBOT","ZCK21","2021-04-23"
"ZCK22","CBOT","ZCK22","2022-04-22"
"ZCM21","CBOT","ZCN21","2021-06-25"
"ZCN21","CBOT","ZCN21","2021-06-25"
"ZCN22","CBOT","ZCN22","2022-06-24"
"ZCN23","CBOT","ZCN23","2023-06-23"
"ZCU21","CBOT","ZCU21","2021-08-27"
"ZCU22","CBOT","ZCU22","2022-08-26"
"ZCZ21","CBOT","ZCZ21","2021-11-26"
"ZCZ22","CBOT","ZCZ22","2022-11-25"
"ZCZ23","CBOT","ZCZ23","2023-11-24"
"BS6N21","CBOT","ZSN21","2021-06-25"
"BSZK21","CBOT","ZSK21","2021-04-23"
"BY2J21","CBOT","ZSK21","2021-04-23"
"BY3J21","CBOT","ZSK21","2021-04-23"
"BY5J21","CBOT","ZSN21","2021-06-25"
"BYDK21","CBOT","ZSX21","2021-10-22"
"BYDM21","CBOT","ZSX21","2021-10-22"
"BYDN21","CBOT","ZSX21","2021-10-22"
"BYDQ21","CBOT","ZSX21","2021-10-22"
"BYDU21","CBOT","ZSX21","2021-10-22"
"BYDV21","CBOT","ZSX22","2022-10-21"
"BYDX21","CBOT","ZSX22","2022-10-21"
"BYSF22","CBOT","ZSF22","2021-12-23"
"BYSH22","CBOT","ZSH22","2022-02-18"
"BYSN21","CBOT","ZSN21","2021-06-25"
"BYSU21","CBOT","ZSU21","2021-08-27"
"BYSX21","CBOT","ZSX21","2021-10-22"
"ZSF22","CBOT","ZSF22","2021-12-23"
"ZSH22","CBOT","ZSH22","2022-02-18"
"ZSK21","CBOT","ZSK21","2021-04-23"
"ZSK22","CBOT","ZSK22","2022-04-22"
"ZSM21","CBOT","ZSN21","2021-06-25"
"ZSN21","CBOT","ZSN21","2021-06-25"
"ZSN22","CBOT","ZSN22","2022-06-24"
"ZSQ21","CBOT","ZSQ21","2021-07-23"
"ZSU21","CBOT","ZSU21","2021-08-27"
"ZSX21","CBOT","ZSX21","2021-10-22"
"ZSX22","CBOT","ZSX22","2022-10-21"
PHP
<?php
$ondemand = new SoapClient('https://ondemand.websol.barchart.com/service?wsdl');
$params = [
'apikey' => 'YOUR_API_KEY',
'roots' => 'ZC,ZS',
'contracts' => 'ZCN14,ZCU14',
'symbols' => 'ZCK210C,ZCK210P',
];
$result = $ondemand->getFuturesOptionsExpirations($params);
var_dump($result);
Classic ASP
Dim ondemand
Dim result
Set ondemand = Server.CreateObject("MSSOAP.SoapClient30")
ondemand.ClientProperty("ServerHTTPRequest") = True
ondemand.MSSoapInit("https://ondemand.websol.barchart.com/service?wsdl")
Set result = ondemand.getFuturesOptionsExpirations("YOUR_API_KEY", "ZC,ZS", "ZCN14,ZCU14", "ZCK210C,ZCK210P")
Perl
use SOAP::Lite;
use SOAP::WSDL;
my $ondemand = SOAP::Lite
-> service('https://ondemand.websol.barchart.com/service?wsdl');
my $result = $ondemand->getFuturesOptionsExpirations('YOUR_API_KEY', 'ZC,ZS', 'ZCN14,ZCU14', 'ZCK210C,ZCK210P');
print $result;
Python
from suds.client import Client
ondemand = Client('https://ondemand.websol.barchart.com/service?wsdl')
result = client.service.getFuturesOptionsExpirations('YOUR_API_KEY', 'ZC,ZS', 'ZCN14,ZCU14', 'ZCK210C,ZCK210P')
print result
Ruby
require 'savon'
ondemand = Savon.client(wsdl: 'https://ondemand.websol.barchart.com/service?wsdl')
response = ondemand.call(
:getFuturesOptionsExpirations,
message: {
apikey: 'YOUR_API_KEY',
roots: 'ZC,ZS',
contracts: 'ZCN14,ZCU14',
symbols: 'ZCK210C,ZCK210P',
}
)
response.body