
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@ercdex/mm
Advanced tools
Deprecation Notice:
The previous Electron based Automation Toolkit is no longer supported. We apologize for any inconvenience.
The ERC dEX Automation Toolkit allows traders to create custom trading strategies that will be executed autonomously. Using the dashboard (or a scripting language of your choice, described below), the user creates Markets (e.g. ZRX/WETH), then adds Bands to that market that specify desired price spreads. When a Market is active, Bands will deploy and cancel ERC dEX Orders in accordance with the user defined strategy.
yarn global add @ercdex/mmnpm install @ercdex/mm -g` ercdex-mm import
Options: --passphrase, -p Passphrase to protect private key [required] --privateKey, -k Wallet private key [required] --out, -o Full path (including file name) to output key store JSON [default: "./store.json"] `
ercdex-mm start
Start the bot
Options:
--network, -n ERC dEX Network
[choices: "app.ercdex.com", "kovan.ercdex.com", "staging.ercdex.com",
"kovan-staging.ercdex.com", "localhost:8443"] [default: "app.ercdex.com"]
--passphrase, -p Passphrase [required]
--workDir, -w Working directory (where persistent data/configuration files
are stored) [default: "."]
--storePath, -s Location of key store file [default: "./store.json"]
A Market describes a persistent configuration that facilates the buying and selling of a token pair. An example of a market is "ZRX/WETH", which means that ZRX is being bought and sold in exchange for WETH. A market is created with parameters that describe the range and amount of assets that are available for trading. At a high level, a Market is responsible for maintaining a trader's overall desired position in the market as prices change.
A Band belongs to a Market - a Market can have multiple bands. A band specifies a price spread and some constraints on how much of an asset should be traded within that band. Bands are responsible for deploying Orders, and a Band can contain multiple Orders at a given time.
An Order represents a signed and deployed ERC dEX order. Orders can move between bands in response to price action. If an Order moves out of the specified price range of any band, it may be canceled.
Automated trading for decentralized platforms presents unique challenges not seen in traditional, centralized changes. Trading tools for decentralized applications have to be designed in a way that acknowledges these challenges and optimizes around them. Below, we'll describe some of the challenges of decentralized platforms and how we handle those issues with the toolkit.
Unlike centralized exchanges, which expose simple, centralized endpoints for order creation and cancelation, decentralized exchanges depend on off-chain signing and sending transactions to the Ethereum blockchain as the primary way to authorize actions. As a result, any decentralized trading system requires a local wallet implementation that supports signing. The toolkit includes a minimal light client, enabling 'headless' operation.
When you first begin, you'll need to create a new market.

By default, a market will have no bands; the first step in actually deploying a market is to create bands that specify desirable positions.

By default, a market is in the "stopped" state, meaning that orders are not being deployed. To begin order deployment and automated position maintenance, click the "Start" button. Verify that the orders have been created by viewing the market in ERC dEX or by viewing band logs.
To stop a market, click the "Stop Market" button.
Markets can be deleted with the "Delete" button; the Market must be stopped before deletion is possible.
Windows users may run into various issues around node-gyp, Python (if Python is not installed), and more. Install MS build tools to fix these issues:
npm install --global --production windows-build-tools
Then:
(Yarn users) yarn config set msvs_version 2015 --global
(NPM users) npm config set msvs_version 2015 --global
FAQs
ERC dEX Automation Toolkit
The npm package @ercdex/mm receives a total of 45 weekly downloads. As such, @ercdex/mm popularity was classified as not popular.
We found that @ercdex/mm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.