Subscribe to the changelog to stay up to date on recent changes to 0x APIs, as well as preview upcoming features.
2024-12-23β
π£ Announcementsβ
- Reminder: version 1.0 of the API will be sunset on April 11, 2025. Please migrate to Version 2.0 before this date to avoid service disruptions. For more information, see the Migration Guide.
New Liquidity Sourcesβ
- Swaap v2 Integration: Initial MVP integration of Swaap v2.
- Improved pricing for Virtuals Protocol (VIRTUAL) tokens.
New Chainsβ
- Worldchain: Added support for the Worldchain network for Swap API.
Choresβ
- Improved routing for small trades in high gas environments
Bug Fixesβ
- Fixed a bug related to gasless fee calculation.
Documentation & Demosβ
0x Gasless Trading Bot: This demo showcases a TypeScript-based CLI trading bot that automates ERC20 token trades using the 0x Gasless API on the Base network. The bot is executes gasless trades with Stop Loss and Take Profit strategies. View the code
Use Swap API in Your Smart Contract with Foundry: A toy example of the
SimpleTokenSwap
contract for ERC20 token swaps using the 0x Swap API v2. The example is built and tested using Foundry. View the code
2024-11-27β
New Featuresβ
- Trade Analytics API is now live and available to all integrators.
- Introduced the
/getChains
endpoint for Swap and Gasless APIs, allowing you to retrieve the supported chains for each API.
New Chainsβ
- Mantle support is now live both Swap and Gasless APIs.
Note: Interested to build on Mantle? Reach out via our contact form!
New Liquidity Sourcesβ
- BSC: Added Baby Doge Swap, Nomiswap stable, Orion v2, and PancakeSwap stable.
- Ethereum: Added Fluid, Ring v2.
- Polygon: Added Meshswap, Polycat, Stepn, and Synapse.
2024-10-31β
New Featuresβ
- Trade Analytics API is now available in limited access. Contact us for early access inquiries.
- Multi-user Access for the 0x Dashboard is now live, allowing multiple users to manage account analytics and insights.
- Detailed API Error Codes are now displayed in the 0x Dashboard Analytics to streamline error troubleshooting.
- Sell Entire Balance option is now supported in Swap API v2. To enable, set
sellEntireBalance
totrue
. Supported for both allowance-holder and permit2 endpoints. Learn more about implenting this feature.
New Liquidity Sourcesβ
- Arbitrum: Added Angle.
- Base: Added Angle and Clober V2.
- BSC: Added Maverick V2.
- Ethereum: Added Angle, DeFi Swap, Sky Migration (SKY, USDS), and Stepn.
- Linea: Added SyncSwap V2.
- Mantle: Added Cleopatra V1, Dodo V2, and Stratum Exchange.
- Mode: Added Balancer V2, iZiSwap, Kim V2, Kim V4, Morphex, SwapMode V2, SwapMode V3, Supswap V2, and Supswap V3.
- Scroll: Added Uni V3 and Wombat.
Note: Want to add your liquidity source? Please fill out this request form.
New Chainsβ
- Mantle (Beta) is now live.
- Gasless API support added for BSC, Avalanche, Mantle, and Mode chains.
Note: Interested to build on Mantle or with Gasless API? Reach out via our contact form!
Choresβ
- Latency Optimization: Shipped a technical rewrite reducing /price endpoint response timesβp95 latency dropped from ~1s to ~500ms, and p50 latency decreased from ~550ms to ~340msβwith no impact on pricing performance.
Bug Fixesβ
- MNT and POL Compliance: Improved support for MNT and POL tokens, which do not fully adhere to the ERC20 standard.
- Slippage Handling: Slippage now correctly caps at the maximum specified basis points (bps).
- Meta-transaction Settler: Fixed an RFQ handling issue in the meta-transaction flow.
Documentationβ
- New guide for integrating Smart Contract Wallets and Multi-Sig Wallets with the Permit2 Swap API.
- New guide on best practices for swapping native tokens (e.g., ETH).
2024-10-01β
New Featuresβ
- 0x API v2 is now live! Follow our migration guide to upgrade your app from v1 to v2.
- Gasless API support is now available on Blast and Scroll.
- Swap API support is also live on Blast, Linea, and Scroll.
- New
slippageBps
parameter for the Gasless API: This parameter allows you to define the maximum acceptable slippage forbuyToken
, in basis points (Bps). Learn more in the Gasless API documentation. - TypeScript SDK: Our new TypeScript SDK streamlines integration with the 0x v2 Swap and Gasless APIs. It offers full type safety and easy integration with Node.js, Next.js, and React Query.
- Trade Analytics API: Coming soon! Stay tuned for more information about how this API will provide key trading metrics and insights for better decision-making.
Note: Interested to integrate Trade Analytics API when it's live? Contact us out via our form!
New Chainsβ
- Mantle support is coming soon!
Note: Interested in building on Mantle? Contact us via form!
2024-08-28β
New Featuresβ
- Buy/Sell Tax Support: Added support for Fee-on-Transfer tokens, which are subject to buy/sell taxes. Previously, users needed to adjust slippage tolerance manually to account for these taxes, often leading to errors. With the new fee-on-transfer accounting, slippage tolerance adjustments are no longer necessary. Additionally, the buy and sell tax are now returned, allowing users to utilize this information as needed.
- Smart Contract Wallet Support: Added support for Smart Contract Wallets in Swap API v2βs Permit2 flow.
- Gas Optimization: Implemented gas optimizations for Solidly V3 integration.
- Routing Improvements: Significantly improved routing for
amphrETH
andsDOLA
.
New Liquidity Sourcesβ
- Arbitrum: Enabled RFQ on Arbitrum in Swap API v2.
- Base: Added
SoSwap
andKinetix
as new liquidity sources on Base. Also enabled RFQ on Base in Swap API v2. - Ethereum: Added support for
sDAI
coverage. - Optimism Integration: Added
WOOFi
as a new liquidity source on Optimism.
Note: Want to add your liquidity source? Please fill out this request form.
New Chainsβ
- Preparation for Linea and Scroll support.
Note: Interested to build on Scroll and/or Linea? Reach out via our contact form!