Protocols

Get protocol TVL

GET
/v1/protocols/{id}/tvl

Path Parameters

id*string

Protocol id

Value in

  • "blend"
  • "aquarius"
  • "soroswap"
  • "fxdao"

Query Parameters

from?string

Inclusive range start (RFC 3339).

Formatdate-time
to?string

Inclusive range end (RFC 3339).

Formatdate-time
resolution?string

Bucket size. Currently only "1d" is supported; "1h" and "1w" are reserved and return 400 until the read model is backfilled for those resolutions.

Value in

  • "1h"
  • "1d"
  • "1w"
as_of_ledger?integer

Return data as of this ledger sequence number. Omit for latest state.

Formatint64
Range0 <= value

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/protocols/blend/tvl"
{  "data": {    "points": [      {        "timestamp": "2019-08-24T14:15:22Z",        "tvl_usd": "string"      }    ],    "protocol_id": "string",    "resolution": "1h"  },  "enrichment": {    "assets": {      "property1": {        "decimals": 0,        "price_source": null,        "price_usd": "string",        "symbol": "string",        "tags": [          "string"        ]      },      "property2": {        "decimals": 0,        "price_source": null,        "price_usd": "string",        "symbol": "string",        "tags": [          "string"        ]      }    },    "contracts": {      "property1": {        "name": "string",        "position_types": [          "collateral"        ],        "protocol": "string",        "status": "active",        "version": "string"      },      "property2": {        "name": "string",        "position_types": [          "collateral"        ],        "protocol": "string",        "status": "active",        "version": "string"      }    }  },  "meta": {    "attribution_confidence": 0.1,    "data_staleness_seconds": 0,    "last_indexed_ledger": 0,    "oracle_staleness_seconds": 0,    "partial_result": true,    "response_time_ms": 0,    "sources": [      "soroban_rpc"    ]  }}