API Reference

Introduction

Derive is a self-custodial, high performance crypto trading platform for options, perpetuals and spot trading.

The trading platform is made up of three components:

  1. Derive Chain: A settlement layer for transactions. This is an Optimistic rollup built on the OP Stack, secured by Ethereum mainnet. Governed by the Derive DAO.
  2. Derive Protocol: A settlement protocol that enables permissionless, self-custodial margin trading of perpetuals, options and spot, deployed to the Derive Chain (formerly Lyra Chain). Governed by the Derive DAO.
  3. Derive Exchange: An orderbook that efficiently matches orders and settles them to the Derive Protocol. Operated by Lyra Trading Co.

The following docs describe Derive technical concepts relating to the Protocol and Exchange. For a deep dive into the Derive Chain, consult the OP Stack Docs. For a deep dive into the Derive DAO and Derive's governance framework, consult the Governance Docs. Note that Derive operates independently of the Lyra V1 AMM.

📘

The Derive Exchange uses a centralized limit order book, but remains self-custodial, and settles trades and liquidations in a trustless manner.

Documentation

Visit Documentation for Onboarding Guides and a deep dive into the Derive Protocol's standard margin and portfolio margin rules, as well as an overview of supported products, liquidations and oracles:

Derive API

The Derive API provides access to the Derive Exchange orderbook which matches orders and settles trades. Derive provides two interfaces to access the API:

Mainnet

Testnet

The API v2.0-alpha is available in our testing environment which settles to Derive Chain / Protocol testnet. All examples in this documentation refer to the test environment.