> For the complete documentation index, see [llms.txt](https://docs.clickoptions.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clickoptions.ai/api/coin-market-cap.md).

# Coin Market Cap

CoinMarketCap-compatible market data endpoints

## Get option order book

> Returns the order book depth for the given option ticker, in CoinMarketCap format.

```json
{"openapi":"3.1.0","info":{"title":"fintp-public-api","version":"0.0.1"},"tags":[{"name":"CoinMarketCap","description":"CoinMarketCap-compatible market data endpoints"}],"servers":[{"url":"https://api.clickoptions.ai/api","description":"Generated server url"}],"paths":{"/v1/orderbook/{ticker_id}":{"get":{"tags":["CoinMarketCap"],"summary":"Get option order book","description":"Returns the order book depth for the given option ticker, in CoinMarketCap format.","operationId":"getOrderBook","parameters":[{"name":"ticker_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved order book data","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CmcOrderBookDto"}}}},"404":{"description":"Order book not found"},"500":{"description":"Internal server error"}}}}},"components":{"schemas":{"CmcOrderBookDto":{"type":"object","description":"CoinMarketCap order book data transfer object","properties":{"ticker_id":{"type":"string","description":"Option contract symbol"},"timestamp":{"type":"integer","format":"int64","description":"Order book timestamp as epoch millis"},"bids":{"type":"array","description":"Bid levels as [price, qty] pairs","items":{"type":"array","items":{"type":"string"}}},"asks":{"type":"array","description":"Ask levels as [price, qty] pairs","items":{"type":"array","items":{"type":"string"}}}}}}}}
```

## Get all option contracts

> Returns every live (non-deleted, unexpired) option contract across all underlyings, in CoinMarketCap format.

```json
{"openapi":"3.1.0","info":{"title":"fintp-public-api","version":"0.0.1"},"tags":[{"name":"CoinMarketCap","description":"CoinMarketCap-compatible market data endpoints"}],"servers":[{"url":"https://api.clickoptions.ai/api","description":"Generated server url"}],"paths":{"/v1/contracts":{"get":{"tags":["CoinMarketCap"],"summary":"Get all option contracts","description":"Returns every live (non-deleted, unexpired) option contract across all underlyings, in CoinMarketCap format.","operationId":"getContracts","responses":{"200":{"description":"Successfully retrieved result","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CmcContractDto"}}}}},"500":{"description":"Internal server error"}}}}},"components":{"schemas":{"CmcContractDto":{"type":"object","description":"CoinMarketCap option contract data transfer object","properties":{"ticker_id":{"type":"string","description":"Option contract symbol"},"base_currency":{"type":"string","description":"Base currency of the underlying"},"quote_currency":{"type":"string","description":"Quote currency"},"product_type":{"type":"string","description":"Product type"},"contract_type":{"type":"string","description":"Contract type"},"contract_price":{"type":"number","description":"Contract price = contract amount x last premium"},"contract_price_currency":{"type":"string","description":"Currency of the contract price"},"last_price":{"type":"number","description":"Last traded premium price"},"base_volume":{"type":"number","description":"24h traded volume in base currency"},"quote_volume":{"type":"number","description":"24h traded volume in quote currency"},"high":{"type":"number","description":"24h high premium price"},"low":{"type":"number","description":"24h low premium price"},"bid":{"type":"number","description":"Best bid premium price"},"ask":{"type":"number","description":"Best ask premium price"},"index_price":{"type":"number","description":"Current index price of the underlying"},"open_interest":{"type":"number","description":"Open interest in contracts"},"open_interest_usd":{"type":"number","description":"Open interest value in USD"},"creation_timestamp":{"type":"integer","format":"int64","description":"Contract creation date as epoch millis"},"expiry_timestamp":{"type":"integer","format":"int64","description":"Contract expiry date as epoch millis"}}}}}}
```
