API Docs

The base URL for a hosted version of Optio APIs is:


Protocol TVL

Returns data about Optio TVL. Allows you to query for specific subsets of types as well. Leaving parameters empty returns total TVL. Examples are calls, puts.

GET /tvl?include=[:types]

URL params (optional): include=string,string,...

Example request

$ curl https://api.optio.finance/v0/tvl?include=calls,puts \
  -u optio_key_4eC39HqLyjWDarjtT1zdp7dc: \
  -H "Idempotency-Key: NwJMbe1tZEMPD888" \
  -d include="calls,puts"

Example response:

{ "tvl": "385272088.86094545716095555338" }

Last updated