
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@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 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('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('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
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.