{"id":35782901,"url":"https://github.com/camhahu/bybit-trading-bot","last_synced_at":"2026-01-07T06:27:27.432Z","repository":{"id":124805146,"uuid":"243937637","full_name":"camhahu/bybit-trading-bot","owner":"camhahu","description":"A trading bot for Bybit utilising APScheduler","archived":false,"fork":false,"pushed_at":"2020-04-16T23:21:30.000Z","size":176,"stargazers_count":17,"open_issues_count":0,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-12T21:04:12.166Z","etag":null,"topics":["backtester","bybit","trading-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/camhahu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-02-29T09:11:19.000Z","updated_at":"2025-01-06T13:14:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"345e5248-9081-4f3e-ab2b-d1d99a8c88e9","html_url":"https://github.com/camhahu/bybit-trading-bot","commit_stats":null,"previous_names":["camhahu/bybit-trading-bot","cameronhh/bybit-trading-bot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/camhahu/bybit-trading-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camhahu%2Fbybit-trading-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camhahu%2Fbybit-trading-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camhahu%2Fbybit-trading-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camhahu%2Fbybit-trading-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camhahu","download_url":"https://codeload.github.com/camhahu/bybit-trading-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camhahu%2Fbybit-trading-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28233340,"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","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["backtester","bybit","trading-bot"],"created_at":"2026-01-07T06:27:26.808Z","updated_at":"2026-01-07T06:27:27.416Z","avatar_url":"https://github.com/camhahu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Bybit Trading Bot\nStill in development!\n\nA trading bot that can be used with the [Bybit trading platform](https://www.bybit.com/app/exchange/BTCUSD).\n\nWorks out of the box with a simple (not profitable) strategy implementation.\n\nYou can implement your own stratwegies by inheriting from the BaseStrategy class. See strategies/__init__.py for more information.\n\n# Usage\nClone the repository and set up a python virtual environment.\nInstall the packages in requirements.txt with pip\n\nYou will need to [get an API key and secret](https://help.bybit.com/hc/en-us/articles/360039260974-How-to-add-a-new-API-key-) from Bybit.\nAdd the values to secret/bybit_keys.json\n\nRunning main.py will start the bot using APScheduler. It is effectively a cron job managed by a python program.\n\nBacktesting/Optimising strategies can be done by running testing.py.\n\nSee comments for more details.\n\n# Todo\n- Run as a service instead of using APScheduler\n- Properly implement the pandas/numpy math in strategies to utilise vector operations\n- Telegram bot to send messages when the bot takes actions + some sort of intermittent summaries\n- Write unit tests for the MockExchange and Backtester\n- Add features for Limit orders, stop loss/take profit in TradintBot\n- Give the bot an on-tick callback, as opposed to only querying the server when a new candle is ready\n\n# Things I've Learnt\n- cron jobs\n- How to make a basic Telegram bot\n- How to optimise hyperparameters for a model\n- Different trading strategies, risk management strategies, technical analysis in general\n- Trading manually is more fun\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamhahu%2Fbybit-trading-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcamhahu%2Fbybit-trading-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcamhahu%2Fbybit-trading-bot/lists"}