New to Rubicon? Visit our Frequently Asked Questions
Learn to Swap, Trade, and Earn on Rubicon!
Overview of the order book contract
SDKs and Subgraphs
Rubicon is an order book protocol for trading ERC-20 (opens in a new tab) tokens. It's built on leading Ethereum layer 2 (opens in a new tab) (L2) networks like Arbitrum and Optimism, so traders have instant confirmations and low transaction fees.
Trade tokens on the Rubicon App (opens in a new tab) with Swaps, Limit Orders, and Market Orders.
RubiconMarket.sol is the core order book contract. It implements order books and a matching engine for peer-to-peer trading of ERC-20 tokens.
RubiconRouter.sol routes token swaps and enables multi-hop swaps if two tokens do not have an underlying order book. It also has helpful view functions for reading data from RubiconMarket.sol and contains wrapper functions for handling native ETH throughout the protocol.
An order book (opens in a new tab) is a list of buy and sell orders for an asset, sorted by price level. It's the best way to reflect supply and demand between two assets.
To learn more about Rubicon's order book, visit the RubiconMarket docs.
One of crypto's many promises is a decentralized financial system, but today the majority of crypto trading volumes are on centralized exchanges (CEXs). These exchanges have custody of user funds, charge predatory fees, and their incentives are not aligned with their users.
Rubicon is an order book protocol built to bring price discovery on-chain. For this space to fulfill its promise, trading needs to be on open protocols, not centralized blackboxes.