Run market maker bot guide
How to run a liquidity node
Anyone can run a market maker bot to fill incoming orders. The market maker bot can be found in GitHub: https://github.com/ZigZagExchange/market-maker. Explanations and details on how to run the bot are in the README.
If you need a more simplified step-to-step explanation, please continue reading. If you still run into issues after this guide, join our Discord (discord.gg/zigzag). We're also giving out Discord roles ('MM bot') to anyone that is running a market maker. Join Discord to claim your role!
Note: every now and then you will need to update your market maker. Be sure to check up on the GitHub repo (https://github.com/ZigZagExchange/market-maker) and claim your 'MM bot' role on Discord to receive announcements.

Requirements

  • Activated zkSync account
  • Ethereum private key of that account
  • Funds in that account corresponding to the pairs you want to market make
  • CryptoWatch API public key (free for limited time)
  • Node.js
  • Optional: VPS when you have high ping running the bot

macOS/Windows/Linux

  1. 2.
    a) Open terminal on macOS or Linux b) Open cmd on Windows or install terminal from the Windows App Store
    1. 1.
      Run cd <drag the folder from finder>
    2. 2.
      Run npm install
  2. 3.
    Duplicate the config.json.EXAMPLE file from the market maker folder and rename it to config.json
  3. 4.
    Open config.json with TextEdit
    1. 1.
      Paste the CryptoWatch API public key
    2. 2.
      Paste the Ethereum private key
    3. 3.
      Set the pairs to true (active) if you want to market make them and to false (inactive) if you don't want to run them
    4. 4.
      Adjust Size (in base asset) and Spread (in percentage)
    5. 5.
      Save and close
  4. 5.
    Open terminal/cmd and run the bot node marketmaker.js
  5. 6.
    Optional: Stop the bot with control+c
Copy link
On this page
Requirements
macOS/Windows/Linux