Introduction
Welcome to Anthic, an intent-based trading platform which settles trades on the Radix network.
Anthic connects DEXes, Market Makers, and Solvers into a cohesive ecosystem providing a low-fee, low-spread liquidity for DEXes, high capital efficiency for Market Makers, and profitable solving for Solvers.
How a Typical Trade on Anthic Looks Like
- A user goes to a DEX frontend and looks to swap for some amount of one token to another.
- The DEX gets pricing information from Anthic and decides how much of the trade it wants to run through its own pools or other sources of liquidity, and how much it wants to source from Anthic.
- The user sees the available deal on the DEX and confirms their interest.
- The DEX sets up a pre-authorization (subintent) which contains the steps of the desired trade and supplies the user's side of the assets and required outcomes.
- The user confirms and signs the pre-authorization in their Radix Wallet and sends it back to the DEX.
- The DEX submits the signed pre-authorization to Anthic.
- Anthic sends the market maker(s) with the best advertised price an order fill request.
- The market maker(s) send their own signed pre-authorizations to Anthic which supply the requested assets.
- Anthic publishes all signed pre-authorizations to Solvers.
- Solvers see these pre-authorizations and bundle them into a transaction and it as a transaction on the Radix network.
APIs
All functionality required by DEXes, Market Makers and Solvers to utilize Anthic are provided through three APIs:
API | Description | Requires Auth |
---|---|---|
Trade API | View supported tokens, order books, and accounts. Submit Limit Orders. | Some |
Flash Liquidity API | Allows Market Makers to provide Flash Liquidity. | Yes |
Solver API | Provides a stream of subintents which can be formed into transactions and submitted to the network. Each subintent provides a fee reward to the transaction submitter. | No |
Changes to the API can be expected as requirements are updated before production.
Rust SDK
A Rust SDK which wraps these APIs is being developed and available here.