pocketful logo light
pocketful logo light

Greek Data

The Greek Data API provides essential option Greeks and analytical metrics for options contracts. Option Greeks (Delta, Gamma, Theta, Vega, and Rho) measure the sensitivity of an option’s price to various market variables such as underlying price movement, time decay, volatility fluctuations, and interest rate changes.

Along with the Greeks, this endpoint returns implied volatility (IV), open interest metrics, trade volume, and latest trade information, allowing algorithmic traders and risk managers to evaluate option pricing and hedge positions effectively.

Endpoint: /api/v1/greekdata/:exchange/:token
Method-Type: GET

Headers

Header NameValueDescription
AuthorizationBearer <your_access_token>Valid Bearer access token for authentication
clientid<client_id>Unique client identifier
acceptapplication/jsonResponse content type format

Path Parameters

Field NameData TypeDescription
exchangeStringExchange segment (e.g. NFO, BFO)
tokenStringInstrument token of the option contract (e.g. 90197)

Example

response = pocket.greekdata('NFO', 90197)

Example CURL Request

curl -X 'GET' \
  'https://algo.pocketful.in/api/v1/greekdata/NFO/90197' \
  -H 'accept: application/json' \
  -H 'clientid: <client_id>' \
  -H 'Authorization: Bearer <your_access_token>'

Response

{
  "data": {
    "IV": 0,
    "current_open_interest": 0,
    "delta": 0,
    "exchange": "NFO",
    "exchange_timestamp": 0,
    "gamma": 0,
    "initial_open_interest": 0,
    "instrument_token": 90197,
    "last_trade_price": 0,
    "last_trade_quantity": 0,
    "last_trade_time": 0,
    "rho": 0,
    "theta": 0,
    "trade_volume": 0,
    "ul_token": 0,
    "vega": 0
  },
  "message": "",
  "status": "success"
}

Response Parameters

KeyData TypeDescription
dataObjectMain container holding Greek calculations and market statistics.
IVFloatImplied Volatility (IV) of the option contract (annualized measure of expected price movement).
current_open_interestIntegerCurrent total number of open/outstanding option contracts in the market.
deltaFloatDelta: Sensitivity of the option price relative to a 1-point change in the underlying price.
exchangeStringExchange where the option contract is listed (e.g. NFO).
exchange_timestampIntegerEpoch timestamp (in seconds) of the last update received from the exchange.
gammaFloatGamma: Rate of change in Delta for a 1-point move in the underlying asset’s price.
initial_open_interestIntegerOpen interest at the start of the trading session (day open).
instrument_tokenIntegerUnique identifier assigned to the option contract.
last_trade_priceFloatLast traded price (LTP) of the option contract.
last_trade_quantityIntegerQuantity traded in the most recent execution.
last_trade_timeIntegerEpoch timestamp (in seconds) of the last executed trade.
rhoFloatRho: Sensitivity of the option price relative to changes in the risk-free interest rate.
thetaFloatTheta: Rate of decay in the option value over time (time decay per day).
trade_volumeIntegerTotal cumulative traded quantity/volume during the current trading day.
ul_tokenIntegerInstrument token of the underlying security (e.g. index or underlying stock).
vegaFloatVega: Sensitivity of the option price relative to a 1% change in implied volatility.
messageStringInformational or error message returned by the server (empty string on success).
statusStringStatus of the API request (success or error).

Error Response

{
  "data": {},
  "message": "Invalid parameters",
  "status": "error"
}