Skip to main content

Integration Guide

This section outlines the steps required to integrate Clober into your aggregator:

  1. Tracking the Open Event
  2. Querying Book Liquidity
  3. Querying Expected Output Amount
  4. Building a Transaction for a Market Order

Market Structure

A market in Clober is composed of two Book structs: the ask book and the bid book. Each Book is distinguished by a primary key called the BookKey, which is explained in detail on this page. Note that the term market here refers to an abstract concept, not an actual contract.

For example, in an ETH/USDC market:

  • The asset in the bid book is USDC.
  • The asset in the ask book is ETH.

Deployed Contracts