Note
This project is a modern Python 3 fork of the original Mika Lending Bot, enhanced with new features and improved stability.
This project has been extensively refactored and improved from the original codebase:
- Python 3 Migration: Fully ported to Python 3, establishing a more modern and secure runtime environment.
- Configuration Overhaul: Migrated from old
.cfgformat to a modern TOML structure with strict Pydantic validation. This offers better error reporting and a more organized way to manage per-coin settings. - Enhanced Bitfinex Strategies:
- Dynamic FRR Delta: Instead of a fixed offset, you can now specify a range (
frr_delta_mintofrr_delta_max). The bot will dynamically utilize values within this range to optimize lending rates. - Advanced XDay Thresholds: Granular control over lending duration based on rates. Using the TOML array format, you can define sophisticated mappings (e.g.,
[{ rate = 0.05, days = 20 }, { rate = 0.058, days = 30 }]). - Smart Competitor Analysis: The bot checks the demand book to intelligently place offers just below competing rates.
- Dynamic FRR Delta: Instead of a fixed offset, you can now specify a range (
- Web UI Upgrades:
- Pause/Resume Control: A new button allows you to safely pause lending operations without shutting down the bot.
- Live Configuration: Update critical settings like FRR Delta ranges directly from the web interface.
- Quality Assurance: Significantly increased unit test coverage for core lending logic and API interactions.
Mika Lending Bot is an automatic lending bot for Poloniex and Bitfinex. It automatically lends all cryptocurrencies found in your lending account using advanced strategies to maximize returns.
It is inspired by MarginBot and BitfinexLendingBot.
- Automated Lending: Lends coins 24/7 at the best possible rates.
- Configurable Strategies: Choose between aggressive high-yield strategies or conservative constant-lending approaches.
- Spike Detection: Spreads offers to capture momentary spikes in lending rates.
- Hold Back Funds: Option to withhold coins until rates reach a certain threshold.
- Long-Term Locking: Lock in high daily rates for extended periods (up to 120 days on Bitfinex).
- Auto-Transfer: Automatically moves deposited funds to the lending wallet.
- Web Dashboard: Monitor profits, active loans, and bot status via a local web interface.
- Docker Support: Ready-to-run Docker configuration.
We recommend using uv for dependency management:
# Install dependencies
uv sync
# Run the bot
uv run python lendingbot.pyNote: These links refer to the original project community.
- New Documentation: carton.github.io/MikaLendingBot (Recommended)
- Original Documentation: readthedocs.io
Important
This version introduces a major configuration overhaul. The bot now uses TOML format. Please refer to docs/configuration.rst for detailed setup instructions and see config_sample.toml for the latest available options.