> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Options Max Pain

Get options max pain data by expiration date showing the price level where total option losses are minimized. Returns max pain price, call/put open interest quantities, market values, and notional values for each expiry. Ideal for: options expiration analysis, strike price targeting, hedging strategies, market maker positioning.

![Get Options Max Pain logo](https://ai-icon.b3.fun/logo/coinglass)
Catalog action Blockchain Data

Get options max pain data by expiration date showing the price level where total option losses are minimized. Returns max pain price, call/put open interest quantities, market values, and notional values for each expiry. Ideal for: options expiration analysis, strike price targeting, hedging strategies, market maker positioning.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `coinglass-options-get-max-pain` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `coinglass`, `options`, `max-pain`, `derivatives`, `expiration`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | `string` | Yes | Coin symbol \(e.g., 'BTC', 'ETH'\) |
| `exchange` | `string` | Yes | Exchange name \(e.g., 'Deribit', 'OKX', 'Binance', 'Bybit'\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | `string` | Yes | Coin symbol |
| `exchange` | `string` | Yes | Exchange name |
| `data` | `array` | Yes | Array of max pain data by expiration date |

## Examples

**Workflow node**

```json
{
  "type": "coinglass-options-get-max-pain",
  "payload": {
    "symbol": "ETH",
    "exchange": "example-exchange"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/coinglass-options-get-max-pain/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "symbol": "ETH",
    "exchange": "example-exchange"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.