{"id":35031105,"url":"https://github.com/toniton/ml-crypto-trading","last_synced_at":"2026-02-15T21:14:38.865Z","repository":{"id":327842120,"uuid":"676463104","full_name":"toniton/ml-crypto-trading","owner":"toniton","description":"This is a free and open-source cryptocurrency trading bot written in Python.","archived":false,"fork":false,"pushed_at":"2026-02-01T00:45:52.000Z","size":4026,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-01T11:51:35.330Z","etag":null,"topics":["bot","cryptocurrency","docker","trading"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toniton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-09T08:57:17.000Z","updated_at":"2026-02-01T00:45:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/toniton/ml-crypto-trading","commit_stats":null,"previous_names":["toniton/ml-crypto-trading"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/toniton/ml-crypto-trading","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toniton%2Fml-crypto-trading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toniton%2Fml-crypto-trading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toniton%2Fml-crypto-trading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toniton%2Fml-crypto-trading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toniton","download_url":"https://codeload.github.com/toniton/ml-crypto-trading/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toniton%2Fml-crypto-trading/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29489713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","cryptocurrency","docker","trading"],"created_at":"2025-12-27T06:59:38.929Z","updated_at":"2026-02-15T21:14:38.860Z","avatar_url":"https://github.com/toniton.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCT Trading Bot\n\n[![CI](https://github.com/toniton/ml-crypto-trading/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/toniton/ml-crypto-trading/actions/workflows/ci.yml)\n[![linting: pylint](https://img.shields.io/badge/linting-pylint-yellowgreen)](https://github.com/pylint-dev/pylint)\n[![codecov](https://codecov.io/github/toniton/ml-crypto-trading/graph/badge.svg?token=N0VBWT87L7)](https://codecov.io/github/toniton/ml-crypto-trading)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n[![Docker pull](https://img.shields.io/docker/pulls/toniton/ml-crypto-trading)](https://hub.docker.com/r/toniton/ml-crypto-trading)\n[![Discord chat](https://img.shields.io/discord/1465111294880518248?logo=discord\u0026style=flat)](https://discord.gg/vZh8w3Sz)\n\nMCT (stands for ML-Crypto-Trading) is a high-performance trading engine that features a **Dynamic Expression Engine**\nallowing users to define position sizing and risk management logic using familiar, spreadsheet-like functions.\n\n\u003e [!TIP]\n\u003e **Financial Logic Without the Code.**\n\u003e If you can write an Excel-style formula, you can define trading logic in MCT. The engine provides access to real-time\n\u003e market data, balances, and technical indicators (RSI, EMA, SMA) directly in your configuration.\n\n\u003e Caveat Utilitor! For educational and research purposes only.\n\n---\n\n## Community\n\nJoin our Discord community to discuss strategies, report issues, and collaborate with other traders:\n\n[![Discord Banner](https://img.shields.io/discord/1465111294880518248?label=Discord\u0026logo=discord\u0026style=for-the-badge)](https://discord.gg/vZh8w3Sz)\n\n\n---\n\n## Quick Start\n\nThe easiest way to run the bot is using **Docker**.\n\n### Prerequisites\n\n- **Docker \u0026 Docker Compose**: Installed and running on your system.\n- **PostgreSQL**: A running instance (local or remote) to store trading history.\n\n### 1. Configuration\n\nCreate your asset configuration and environment variables.\n\n**assets.yaml**\n```yaml\nassets:\n  - name: \"Bitcoin (Safety First)\"\n    base_ticker_symbol: \"BTC\"\n    exchange: \"CRYPTO_DOT_COM\"\n    min_quantity: 0.00001\n    schedule: 4\n    # Dynamic logic: Use 2% of balance\n    dynamic_quantity: \"max(min_qty, (balance * 0.02) / close)\"\n\n  - name: \"Ethereum (Aggressive)\"\n    base_ticker_symbol: \"ETH\"\n    exchange: \"CRYPTO_DOT_COM\"\n    min_quantity: 0.01\n    schedule: 2\n    # Scaling logic: Scale up by 50% if RSI \u003c 30\n    dynamic_quantity: \"(balance * 0.05 / close) * (1.5 if rsi(14) \u003c 30 else 1.0)\"\n```\n\n**.env**\n\n```env\nAPP_ENV=production\nCRYPTO_DOT_COM__API_KEY=your_api_key\nCRYPTO_DOT_COM__SECRET_KEY=your_secret_key\nDATABASE_CONNECTION_HOST=localhost:5432\nPOSTGRES_USER=postgres\nPOSTGRES_PASSWORD=your_password\nPOSTGRES_DATABASE=trading_bot\n```\n\n### 2. Run Modes\n\n#### 📊 Backtesting (Historical Data)\n\nTest your strategy without risking real funds using historical CSV data.\n```bash\ndocker run -v $PWD:/workspace toniton/ml-crypto-trading \\\n  --assets-conf=/workspace/assets.yaml \\\n  --backtest-mode=true \\\n  --backtest-source=/workspace/history/\n```\n\n#### 🧪 Simulated Trading (Real-time Paper Trading)\n\nRun the bot with real-time market data but simulate order execution in memory.\n```bash\ndocker run --env-file .env -v $PWD:/workspace toniton/ml-crypto-trading \\\n  --assets-conf=/workspace/assets.yaml \\\n  --simulated=true\n```\n\n#### 🚀 Live Trading (Real Exchange)\n\nExecute real trades on the configured exchange.\n```bash\ndocker run --env-file .env -v $PWD:/workspace toniton/ml-crypto-trading \\\n  --assets-conf=/workspace/assets.yaml\n```\n\n*For multi-container setups (with Database), check the included `docker-compose.yml`.*\n\n---\n\n## Documentation\n\nFor more detailed information, please refer to the documentation in the `docs/` directory:\n\n- [Introduction \u0026 Features](docs/introduction.md)\n- [Core Concepts](docs/concepts.md)\n- [Configuration \u0026 System Properties](docs/configuration.md)\n- [Architecture \u0026 Diagrams](docs/architecture.md)\n- [Logging Architecture](docs/logging.md)\n- [Community \u0026 Contributing](docs/community.md)\n\n---\n\n## License\n\nThis source code is available on GitHub under\nthe [GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoniton%2Fml-crypto-trading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoniton%2Fml-crypto-trading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoniton%2Fml-crypto-trading/lists"}