# Greeks

## **Definition**

Option greeks represent the sensitivity of the price of an options contract with respect to changes in its underlying parameters. Greeks are used in risk management and hedging so that market participants can achieve their desired exposure.

## **Details**

Exchanges report the following greeks:

* Vega: The first derivative of the option’s price to the volatility of the underlying asset’s price.
* Theta: The first derivative of the option’s price to the passage of time.
* Rho: The first derivative of the option’s price to the risk free interest rate.
* Delta: The first derivative of the option’s price to the underlying asset’s price.
* Gamma: The second derivative of the option’s price to the underlying asset’s price.

## **API Endpoints**

Market Greeks can be accessed using the `timeseries/market-greeks` endpoint.

{% openapi src="<https://2398817338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO23j33wWGzm0NrZseN%2Fuploads%2Fgit-blob-1522f16027d90845f8750dd9c51c03b8e7aab67f%2Fopenapi.yaml?alt=media>" path="/timeseries/market-greeks" method="get" %}
[openapi.yaml](https://2398817338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO23j33wWGzm0NrZseN%2Fuploads%2Fgit-blob-1522f16027d90845f8750dd9c51c03b8e7aab67f%2Fopenapi.yaml?alt=media)
{% endopenapi %}

{% tabs %}
{% tab title="Shell" %}

```shell
curl --compressed "https://api.coinmetrics.io/v4/timeseries/market-greeks?markets=binance-BTCUSDT-future&limit_per_market=1&api_key=<your_key>"
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
response = requests.get('https://api.coinmetrics.io/v4/timeseries/market-greeks?markets=binance-BTCUSDT-future&limit_per_market=1&api_key=<your_key>').json()
print(response)
```

{% endtab %}

{% tab title="Python Client" %}

```python
from coinmetrics.api_client import CoinMetricsClient

api_key = "<API_KEY>"
client = CoinMetricsClient(api_key)

print(
    client.get_market_greeks(
        markets=["binance-BTCUSDT-future"], limit_per_market=5
    ).to_dataframe()
)
```

{% endtab %}
{% endtabs %}

## Chart

<figure><img src="https://2398817338-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO23j33wWGzm0NrZseN%2Fuploads%2Fgit-blob-b9922abdac4106fcc0b1988fdb53a3c6d39cb7f6%2FATM-Option-Chain.png?alt=media" alt=""><figcaption><p>Source: CM <a href="https://coinmetrics.io/insights/state-of-the-market/">State of the Market</a></p></figcaption></figure>

## **Example**

A sample of the options greeks data from our [`/timeseries/market-greeks`](https://docs.coinmetrics.io/api/v4#operation/getTimeseriesMarketGreeks) API endpoint is shown below for the `deribit-ETH-25MAR22-1200-P-option` market.

```
{
  "data" : [ {
    "market" : "deribit-ETH-25MAR22-1200-P-option",
    "time" : "2021-09-01T13:24:00.000000000Z",
    "database_time" : "2021-09-01T13:24:41.266168000Z",
    "exchange_time" : "2021-09-01T13:24:00.000000000Z",
    "vega" : "2.47772",
    "theta" : "-0.70691",
    "rho" : "-1.31245",
    "delta" : "-0.04137",
    "gamma" : "0.00003"
  }, {
    "market" : "deribit-ETH-25MAR22-1200-P-option",
    "time" : "2021-09-01T13:25:00.000000000Z",
    "database_time" : "2021-09-01T13:25:48.270609000Z",
    "exchange_time" : "2021-09-01T13:25:00.000000000Z",
    "vega" : "2.48249",
    "theta" : "-0.70833",
    "rho" : "-1.31661",
    "delta" : "-0.04156",
    "gamma" : "0.00003"
  },
```

* **`market`**: The id of the market. Market ids use the following naming convention for options markets: `exchangeName-optionsSymbol-option`
* **`time`**: The time at which Coin Metrics queried the implied volatility data from an exchange in ISO 8601 date-time format. Always with nanoseconds precision.
* **`database_time`**: The timestamp when the data was saved in the database in ISO 8601 date-time format with nanoseconds precision. Always with nanoseconds precision.
* **`exchange_time`**: The timestamp reported by the exchange. Can be null if the exchange does not report a timestamp.
* **`vega`**: The first derivative of the option’s price to the volatility of the underlying asset’s price.
* **`theta`**: The first derivative of the option’s price to the passage of time.
* **`rho`**: The first derivative of the option’s price to the risk free interest rate.
* **`delta`**: The first derivative of the option’s price to the underlying asset’s price.
* **`gamma`**: The second derivative of the option’s price to the underlying asset’s price.

## Release History

* [**CM MDF v2.5 on November 22, 2021**](https://coinmetrics.io/cm-market-data-feed-v2-5-release-notes/): We expanded our options coverage to include several new data types, including market implied volatility, from Deribit and added several new API endpoints to serve this data.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook-docs.coinmetrics.io/market-data/market-data-overview/market-greeks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
