Skip to main content

List All Protocols

GET /protocols Retrieve a list of all supported DeFi protocols.

Request

Query Parameters

Response

Response Fields


Get Single Protocol

GET /protocols/:id Retrieve details for a specific protocol.

Request

Path Parameters

Response

The single protocol endpoint returns the protocol object plus its related instruments array.

Get Protocol by Name and Chain

GET /protocols/by-name/:name/chain/:chainId Retrieve all versions of a protocol on a specific chain.

Request

Path Parameters

Response


Get Latest Protocol Version

GET /protocols/by-name/:name/chain/:chainId/latest Retrieve the latest version of a protocol on a specific chain.

Request

Path Parameters

Response

Returns a single protocol object with the same fields as an item in List All Protocols. Unlike GET /protocols/:id, this endpoint does not include the related instruments array.

Create Protocol

POST /protocols Add a new protocol version to the registry.

Request Body

Response

Returns the created protocol object.

Update Protocol

PUT /protocols/:id Update an existing protocol’s details.

Path Parameters

Request Body

Same fields as Create Protocol. All fields are optional.

Delete Protocol

DELETE /protocols/:id Remove a protocol from the registry.

Path Parameters


Deprecate Protocol

POST /protocols/:id/deprecate Mark a protocol as deprecated without deleting it.

Path Parameters

Request Body


TypeScript Example


Next Steps

Instruments API

Query DeFi instruments

Chains API

Get supported chains