Announcing Option Greeks API for SmartAPI Users
-
I'm getting the error response for this api as below:
{"status":false,"message":"No Data Available","errorcode":"AB9019","data":null}
for body={
"name":"NIFTY",
"expirydate":"01FEB2024"
}Also tried the with request
{"name":"TCS", // Here Name represents the Underlying stock
"expirydate":"29FEB2024"}got the same error response as
{"status":false,"message":"No Data Available","errorcode":"AB9019","data":null}Please help.
-
Hi @navanecs
Apologies for delayed response.
We have verified on both requests(TCS & Nifty) from our end. And we are able to retrieve the data for the same.
Kindly recheck and let us know if the issue still occurs.Thanks & Regards,
SmartAPI team -
Hi @PareshBhatiya,
This data is not available on socket yet. Apologies of inconvenience.
Thank you.
Regards
SmartAPI Team -
@Moderator_1 BRO THIS THING DOES NOT WORK
import axios from 'axios';
const requestData = {
"name": "TCS",
"expirydate": "28MAR2024"
};var config = {
method: 'post',
url: 'https://apiconnect.angelbroking.com/rest/secure/angelbroking/marketData/v1/optionGreek',
data: requestData
};axios(config)
.then(function(response) {
console.log(JSON.stringify(response.data));
})
.catch(function(error) {
console.log(error);
});{"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""}
-
Hello @manojtripathi96,
The updated SDKs have been recently released. Please update your SDK to the latest version and try once again and let us know if it is working for you.
Thank you.
Regards
SmartAPI Team -
@Moderator_1 When the data is going to be available.?
-
Hello @piyush24kp,
Data is already available for Greeks and Implied Volatility. Is there anything specific data point you want? Please let us know.
Thank you.
Regards
SmartAPI Team -
@Moderator_1 The option greeks provided by angel one does not match with that of sensibull. Do you know why is that happening and which one would be correct?
-
There is no data returned for optionGreek
OptionGreeks POST Request Url :: https://apiconnect.angelbroking.com/rest/secure/angelbroking/marketData/v1/optionGreek OptionGreeks POST Request :: {"name":"TCS","expirydate":"25APR2024"} OptionGreeks POST Response :: {"status":false,"message":"No Data Available","errorcode":"AB9019","data":null}
-
@Moderator_1 @Moderator_2 Can you share the logic or code you are using to calculate the option greek. I need options greeks for past expiries but it is not provided by api.
-
@Moderator_1
It is available only in live market? -
Hello @piyush24kp,
It is available for live contracts only. We do not provide data for expired options contracts as of now.
You can check which contracts are available from the Scrip master file.
Thank you.
Regards
SmartAPI Team -
-
@piyush24kp Hey does it work only during live market hours, or does it work after the market has closed?
-
@Moderator_1 I am not able to get the data yet.
getting below response. Is there any issue from your side?Request: {'name': 'TCS', 'expirydate': '25JUL2024'}, Response: {'status': False, 'message': 'No Data Available', 'errorcode': 'AB9019', 'data': None}
{'status': False, 'message': 'No Data Available', 'errorcode': 'AB9019', 'data': None} -
Hi @viralpatel We have verified the requests (TCS) from our end and are able to retrieve the data successfully. Kindly recheck and let us know if the issue still occurs.
Thanks & Regards,
SmartAPI team -
@viralpatel Check in market hour, it will work.
-
Why is theta value different from Sensibull and other similar platforms? Do we have to do some other calculations like divide by lot size or something to get the correct value?