{"id":15649323,"url":"https://github.com/revmischa/crypto-trader","last_synced_at":"2025-07-14T18:33:30.607Z","repository":{"id":44563278,"uuid":"405706902","full_name":"revmischa/crypto-trader","owner":"revmischa","description":"Automating crypto trading with python in a jupyter notebook","archived":false,"fork":false,"pushed_at":"2021-12-12T14:48:59.000Z","size":8097,"stargazers_count":43,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T16:16:21.923Z","etag":null,"topics":["bot","crypto","jupyter","notebook","trading"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revmischa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-12T17:22:27.000Z","updated_at":"2025-02-09T07:54:52.000Z","dependencies_parsed_at":"2022-09-20T22:55:47.355Z","dependency_job_id":null,"html_url":"https://github.com/revmischa/crypto-trader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revmischa%2Fcrypto-trader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revmischa%2Fcrypto-trader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revmischa%2Fcrypto-trader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revmischa%2Fcrypto-trader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revmischa","download_url":"https://codeload.github.com/revmischa/crypto-trader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251739650,"owners_count":21635892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","crypto","jupyter","notebook","trading"],"created_at":"2024-10-03T12:29:15.519Z","updated_at":"2025-04-30T16:16:29.562Z","avatar_url":"https://github.com/revmischa.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mischa's Crypto Trader\nAutomating crypto trading with python.\n\n## What is this?\nA jupyter notebook to demonstrate automating crypto trading. Includes defining a strategy with automated parameter tuning and backtesting.\n\nPlease [read my article describing how it works](https://spiegelmock.com/2021/11/09/how-to-trade-crypto-in-your-sleep-with-python/) for more details and how to use it yourself.\n\n## How does it work?\nAllows you to [pick a strategy](https://github.com/twopirllc/pandas-ta/blob/main/examples/PandasTA_Strategy_Examples.ipynb) and optimize the parameters to the trading bot and strategy automatically. Different parameters are tried and net profit calculated during backtesting.\n\n* Uses [pyjuque](https://github.com/tudorelu/pyjuque) to perform backtesting and trading and bot framework.\n* Technical analysis performed by [ta-lib](https://www.ta-lib.org/) and [pandas-ta](https://github.com/twopirllc/pandas-ta/) - generate buy and sell signals from time series exchange data.\n* Crypto exchange abstraction provided by [CCXT](https://ccxt.readthedocs.io/en/latest/) - connects to any crypto exchange.\n* Parameter tuning with [scikit-optimize](https://scikit-optimize.github.io/) - Minimizes objective function in trading bot and strategy parameter space.\n\n## How do I test strategies? \nLoad up [the notebook](strategize-skopt.ipynb) in [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/).\n\n## Screenshots\n\u003cimg width=\"886\" alt=\"Live trading\" src=\"https://user-images.githubusercontent.com/245131/139648359-22c86796-3064-4cd6-aa8e-455bf4951d8a.png\"\u003e\n\n![backtesting](backtest.png)\n\n## How do I run the bot?\nCreate a .env file with your exchange API key\n```env\nEXCHG_API_KEY=daJF91jf9soq01j9wwl\nEXCHG_SECRET=8ABC9130181DEB9131\n#EXCHG_SUBACCOUNT=trader\n```\n\nRun ./run-bot.py\n\nFor more details about building and running the bot see the Dockerfile.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevmischa%2Fcrypto-trader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevmischa%2Fcrypto-trader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevmischa%2Fcrypto-trader/lists"}