/tomox-market-maker

Simple market maker to create liquidity for TomoX

Primary LanguageJavaScript

tomox-market-maker

Simple market maker to create liquidity/volume for TomoX

NOTE: we only use this script in the development environment, use it with your own risk

Install

npm install

Create config/local.json file

cp config/default.json config/local.json

Update local.json file with your parameters

There are some parameters you need to update:

  • ETH-TOMO: Pair name
  • pkey: Private key of wallet that has enough balance for trades
  • baseToken and quoteToken: Addresses of pair
  • relayerUrl: The url of DEX, e.g https://dex.testnet.tomochain.com
  • orderbookLength: Number of BUY/SELL orders in Orderbook
  • speed: [miliseconds] Speed of the creating orders of the bot. Recommend > 10 seconds
  • step: The price step of the orders in orderbook (L217)
  • volume: Side of an orders (in USD)

You can get pairs information via DEX API, e.g: DEX testnet https://dex.testnet.tomochain.com/api/pairs/data

Usage

The bot supports any pairs with proper config

node cmd.js bot BTC-TOMO