Guides
This page lists the most popular guides to start building with 0x based on your use case
Swap Tokens with Swap API​
Easily add liquidity aggregation into your app with a single API. Access 100+ exchanges and thousands of tokens with the Swap API.
- How to Use Swap API - This guide will teach you how to programmatically execute a ERC20 token trade.
- How to Build a Token Swap dApp with 0x API - Written and video content on how to build a token swapping dapp (a simple Matcha.xyz) using the Swap API. This dApp aggregates liquidity across the greater DEX ecosystem surfaces the best price to the user.
- Use 0x API Liquidity in Your Smart Contracts - This guide will teach you how to consume 0x API swap quotes from inside a smart contract.
- Fill a 0x API quote - A runnable example of how to fill a 0x quote that can be run on Ropsten or Ganache.
- Working in the Testnet - Learn two ways to test swapping ERC20 tokens with the 0x API - either using the Goerli testnet or forking Ethereum mainnet into your own testnet. Includes a runnable example.
Orderbook API​
Enable limit orders in your app or take liquidity directly from the 0x Orderbook.
0x Starter Project includes with a number of scenarios using the 0x v4 protocol that can be run from the command-line:
- Create a Limit Order
- Cancel a Limit Order
- Fill a Limit Order
- Limit Order Status
- Cancel Several Limit Orders at Once
Professional Market Making​
Adding off-chain liquidity into the 0x RFQ System