Option markets

Option markets and information about them can be queried from the following endpoints:

Get option markets on a chain

get
Query parameters
chainIdnumber · enumRequired

Chain ID of the network

Possible values:
Responses
200
List of option markets on specified chain
application/json
get
GET /clamm/option-markets HTTP/1.1
Host: api.stryke.xyz
Accept: */*
200

List of option markets on specified chain

[
  {
    "deprecated": true,
    "address": "text",
    "callToken": {
      "address": "text",
      "decimals": "text",
      "symbol": "text"
    },
    "putToken": {
      "address": "text",
      "decimals": "text",
      "symbol": "text"
    },
    "primePool": "text",
    "dpFee": "text",
    "optionsPricing": "text",
    "tokenURIFetcher": "text",
    "totalPremium": "text",
    "totalVolume": "text",
    "totalFees": "text",
    "pairName": "text",
    "ticker": "text"
  }
]

V1.1 change log:

  1. new chains query parameter replacing chainId that accepts a comma separated array of chain ids i.e "42161,5000" providing the ability to query option markets of multiple chains.

  2. More market stats of the options market are included in the response i.e: Total liquidity USD, available liquidity USD, open Interest USD. Check example schema for full list of response data.

Get option markets on chains specified

get
Query parameters
chainsstring[]Required

Chain IDs of networks to query option markets for

Responses
200
List of option markets on specified chain
application/json
get
GET /v1.1/clamm/option-markets HTTP/1.1
Host: api.stryke.xyz
Accept: */*
200

List of option markets on specified chain

[
  {
    "deprecated": true,
    "address": "text",
    "callToken": {
      "address": "text",
      "decimals": "text",
      "symbol": "text"
    },
    "putToken": {
      "address": "text",
      "decimals": "text",
      "symbol": "text"
    },
    "primePool": "text",
    "optionsPricing": "text",
    "tokenURIFetcher": "text",
    "pairName": "text",
    "ticker": "text",
    "chainId": 1,
    "pools": [
      {}
    ],
    "feeStrategy": {},
    "premiums24h": 1,
    "volume24h": 1,
    "protocolFees24h": 1,
    "totalLiquidity": 1,
    "availableLiquidity": 1,
    "openInterest": 1
  }
]

Last updated

Was this helpful?