Skip to main content

Option greek

Refer to a set of calculations you can use to measure different factors that might affect the price of an options contract.

Method: POST

https://connect.thefirstock.com/api/V3/optionGreek

Request details

ParameterDescriptionData typesExample
expiryDateExpiry DateString"01-DEC-2022"
strikePriceStrike PriceString"42000"
spotPriceSpot PriceString"39546"
initRateInit RateString"10"
volatilityVolatilityString"10"
optionTypeOption TypeString"PE"
curl -X POST 'https://connect.thefirstock.com/api/V3/optionGreek'
-H 'Content-Type: application/json'
-d '{
"expiryDate": "23-FEB-2023",
"strikePrice": "17000",
"spotPrice": "38850",
"initRate": "10",
"volatility": "20",
"optionType": "PE"
}'

Success response details

ParameterDescriptionData typesExamples
statusSuccess String"Success"
data.statsuccess or failure indication.String"ok"
data.request_timeThis will be present only in a successful responseString"14:00:49 20-02-2023"
data.cal_priceCal PriceString"11795.41"
data.put_pricePut PriceString"9564.03"
data.cal_deltaCal DeltaString"0.836474"
data.put_deltaPut DeltaString"-0.163526"
data.cal_gammaCal GammaString"0.000008"
data.put_gammaPut GammaString"0.000008"
data.cal_thetaCal ThetaString"-1421.069777"
data.put_thetaPut ThetaString"-992.066490"
data.cal_rhoCal RhoString "0.260474"
data.put_rhoPut RhoString"-1.026535"
data.cal_vegoCal VegoString"4.002735"
data.put_vegoPut VegoString"4.002735"

Failure response details

ParameterDescriptionData TypeExample
statusFailedString"Failed"
codeHTTP CodeString"404"
nameType of errorString"ORDERS_NOT_FOUND"
error.fieldError fieldString"orderDetails"
error.messageError messageString"No data on the orders was found"

Sample response

{
"status": "Success",
"data": {
"request_time": "14:00:49 20-02-2023",
"stat": "OK",
"cal_price": "11795.41",
"put_price": "9564.03",
"cal_delta": "0.836474",
"put_delta": "-0.163526",
"cal_gamma": "0.000008",
"put_gamma": "0.000008",
"cal_theta": "-1421.069777",
"put_theta": "-992.066490",
"cal_rho": "0.260474",
"put_rho": "-1.026535",
"cal_vega": "4.002735",
"put_vega": "4.002735"
}
}