Integrating Mach
More integration examples are coming! Feel free to ping us on Telegram and we will work with you directly to fast track your integration.
Integrating Mach into Client Apps
Fundamentally, there are three steps:
Load the token contract addresses that the user wants to transact between & the swap Mach contract on the sell-side network (and make sure that token spend is approved). You can get all of our supported tokens and networks here
Build and issue a transaction that execute the
placeTrade
function on the Mach contract, which places an order onto the order bookBuild and issue an API call to a backend server that fills the order (check out ours in our API doc here)
Last updated