
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@adrienv1520/mmbot
Advanced tools
A simple market making bot.
A simple market making bot using DeversiFi to get orderbook data and place n
bid/ask orders every x
seconds regarding best bid/ask within a certain price range and balance size percentages. It will automatically cancel orders out of a maximum price range percentage.
This code is dynamic enough to add trading pairs right now. At the moment only ETH:USD is supported.
Work to do:
npm i -S @adrienv1520/mmbot
Command to run all tests:
npm test
ESLint with Airbnb base rules. See Airbnb JavaScript Style Guide.
npm run test:lint
Mocha and Chai.
npm run test:unit
name | type | description | default | example |
---|---|---|---|---|
DEBUG | Debug | Debug mode. See bugbug. | none | mmbot:* |
*required
const MMBot = require('@adrienv1520/mmbot');
No errors are thrown when running the bot. If any error occurred it will be caught and logged by the bot and then the script will be stopped.
//your-script.js
const MMBot = require('@adrienv1520/mmbot');
const bot = new MMBot({ balances: { eth: 10, usd: 2000 } });
bot.run();
DEBUG=mmbot:* node your-script.js
# you can also test the bot locally once the repository being cloned
# at the mmbot project root run:
DEBUG=mmbot:* node test/run-the-bot-locally.js
Errors emitted by mmbot inherit the native Error prototype with an additional code
property and toString
method.
{
name,
code,
message,
stack,
toString(),
}
name | code | description | module |
---|---|---|---|
BotError | |||
TOO_MUCH_CURRENCIES | Too much currencies specified at bot creation. | lib/index | |
UNSUPPORTED_CURRENCY | The specified currency at bot creation is not supported. | lib/index | |
UNSUPPORTED_PAIR | The trading pair is not supported. | lib/index | |
MARKET_API_ERROR | Requesting market API data led to an error. | lib/index | |
LibError | |||
UNKNOWN_ERROR | An unknown error was caugth. | lib/index |
This project has a Code of Conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
Please take also a moment to read our Contributing Guidelines if you haven't yet done so.
Please see our Support page if you have any questions or for any help needed.
For any security concerns or issues, please visit our Security Policy page.
MIT.
FAQs
A simple market making bot
The npm package @adrienv1520/mmbot receives a total of 0 weekly downloads. As such, @adrienv1520/mmbot popularity was classified as not popular.
We found that @adrienv1520/mmbot 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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.