A sophisticated multi-phase cryptocurrency trading bot designed for Kraken and Binance US exchanges.
MADE FOR US TRADERS - FULLY COMPLIANT WITH US REGULATIONS
This bot is specifically designed to meet US regulatory requirements:
- โ SPOT TRADING ONLY (no futures, no derivatives)
- โ LONG POSITIONS ONLY (no shorting)
- โ NO LEVERAGE (100% compliant with US regulations)
- โ US EXCHANGES ONLY (Binance US, Kraken US)
- โ Regulatory Compliant for US retail traders
Hard to find USA-compliant trading bots? This is one of the few automated bots built specifically for US regulatory compliance.
MidasBot operates with multiple trading phases controlled by a single intelligent system:
- SCOUT - Market analysis and entry detection
- LUNCHBOX - Mean-reversion strategy
- REGULAR - Grid trading
- AFTERBURNER - Momentum trading
- DIP - Pullback DCA (Dollar Cost Averaging)
- Multi-Exchange Support: Kraken and Binance US via ccxt
- Paper Trading Mode: Safe simulation mode (default)
- Live Trading: Optional live trading with safety confirmations
- Budget Management: Budget, fee, and minimum notional aware
- Post-Only Orders: Price padding to avoid taker fees
- Trade Logging: Automatic CSV logging to
family_trades.csv - Technical Indicators: EMA and RSI calculations built-in
- YAML Configuration: Flexible configuration via YAML files
pip install ccxt python-dotenv pyyamlpython MidasBot_Full.py --exchange kraken --pair BTC/USD --budget 50python MidasBot_Full.py --exchange kraken --pair BTC/USD --budget 50 --live --confirm I-UNDERSTANDWarning: Live trading requires API keys and confirmation flag.
BINANCEUS_API_KEY=your_key_here
BINANCEUS_SECRET=your_secret_here
KRAKEN_API_KEY=your_key_here
KRAKEN_SECRET=your_secret_here
MIDAS_LOG=family_trades.csv| Flag | Description | Default |
|---|---|---|
--exchange |
kraken or binanceus | - |
--pair |
Trading pair (e.g., BTC/USD) | BTC/USD |
--budget |
USD budget cap | 50 |
--grids |
Grid levels | 8 |
--spacing |
Spacing between levels (fraction) | 0.005 (0.5%) |
--min-net |
Minimum net step after fees | 0.002 (0.20%) |
--tick |
Loop interval in seconds | 15 |
--paper |
Paper trading mode | true |
--live |
Live trading mode | false |
--confirm |
Required with --live | - |
--config |
Path to YAML config file | - |
--dryrun |
Simulate one cycle and exit | false |
Create a YAML file to override defaults:
exchange: kraken
pair: BTC/USD
budget: 100
grids: 10
spacing: 0.005
min_net: 0.002
tick: 15
mode: paper
fees:
manual_maker: 0.0016
manual_taker: 0.0026Then run:
python MidasBot_Full.py --config config.yamlAnalyzes market conditions and identifies optimal entry points.
Capitalizes on price returning to mean after deviation.
Places multiple buy/sell orders at defined price intervals.
Exploits strong trending moves with momentum-based entries.
Dollar-cost averaging during price pullbacks.
All trades are automatically logged to CSV with:
- Timestamp
- Exchange
- Pair
- Side (buy/sell)
- Amount
- Price
- Phase
- Mode (paper/live)
- Paper Mode Default: All trading is simulated unless explicitly enabled
- Confirmation Required: Live trading requires
--confirm I-UNDERSTANDflag - Budget Caps: Enforced spending limits
- Post-Only Orders: Attempts to avoid taker fees
- Fee Awareness: Calculates profitability after fees
- Minimum Notional: Respects exchange minimums
Dry run mode for testing configuration:
python MidasBot_Full.py --config config.yaml --dryrunpython MidasBot_Full.py \
--exchange kraken \
--pair BTC/USD \
--budget 100 \
--grids 12 \
--spacing 0.003 \
--paperpython MidasBot_Full.py \
--exchange binanceus \
--pair BTC/USDT \
--budget 500 \
--live \
--confirm I-UNDERSTANDBuilt-in technical analysis:
- EMA (Exponential Moving Average): Trend detection
- RSI (Relative Strength Index): Overbought/oversold conditions
- Python 3.7+
- ccxt
- python-dotenv
- pyyaml
Cryptocurrency trading carries significant risk. This bot is provided for educational purposes. Always:
- Test in paper mode first
- Start with small amounts
- Understand the strategies
- Never invest more than you can afford to lose
- Monitor the bot regularly
- Keep API keys secure
Provided as-is for personal use and learning.
Built for mobile-first development with Pydroid3