Skip to content

alfredalpino/MarketMakingMegaMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMMM — Market Making Mega Machine

Python 3.10+ License: Apache 2.0 HyperLiquid CI

Production use: Research Analyst @ 3poch Labs — automated market making on Hyperliquid, $58.9K live volume, 24/7 execution. Architecture →

Hyperliquid market-making platform: connect → quote around mid → refresh/cancel → emergency kill switch.

Quick start (testnet)

git clone https://github.com/alfredalpino/MarketMakingMegaMachine.git
cd MarketMakingMegaMachine
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp example.env .env   # add testnet WALLET_ADDRESS and WALLET_SECRET
python main.py -s pure_mm -t -v

Safety

Command Action
python main.py -ca -t Emergency cancel all open orders
Ctrl+C Stop running strategy

All market-making strategies auto-cancel on insufficient balance errors.

List strategies

python main.py --list-strategies
Module Asset Market
pure_mm Configurable (default UBTC/USDC) spot
ubtc_mm UBTC/USDC spot
ueth_mm UETH/USDC spot
buddy_mm BUDDY/USDC spot
usol_mm USOL/USDC spot
ufart_mm UFART/USDC spot
pip_mm PIP/USDC spot
usdhl_mm USDHL/USDC spot
dyna_vola Configurable (default UBTC/USDC) spot
ema_strategy Configurable perp (default UBTC/USDC) perp

CLI mode

python main.py -t

Interactive commands: connect testnet, balance, select_strategy pure_mm, strategy_status, stop_strategy, cancel_all.

Development

pip install -r requirements-dev.txt
pytest
ruff check .

Architecture

See ARCHITECTURE.md for components, order lifecycle, and failure modes.

Related

Market data layer: Candlecraft (PyPI) — unified OHLCV for crypto, forex, equities.

Example: examples/candlecraft_mid_price.py

Production deployment

Optional systemd install and monitoring: docs/deployment/systemd.md

Demo

Record a testnet walkthrough with scripts/demo_testnet.sh.
See docs/demo.md for steps.

Risk disclaimer

This software trades real assets. Use testnet first. No warranty. You are responsible for losses, API keys, and compliance in your jurisdiction. Emergency cancel: python main.py -ca.

License

Apache 2.0 — see LICENSE.

About

This is the All in one stop for market makers.

Resources

License

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors