{"repo":"ryu878/Bybit-BTCUSD-Inverse-Perpetual-Scalp-Trading-Bot","free":true,"listed":false,"github":"https://github.com/ryu878/Bybit-BTCUSD-Inverse-Perpetual-Scalp-Trading-Bot","clone":"git clone https://github.com/ryu878/Bybit-BTCUSD-Inverse-Perpetual-Scalp-Trading-Bot.git","description":"Trading bot for Bybit exchange to trade BTCUSD perpetual contract. It use Redis database to cashe the trades data.","language":"Python","stars":27,"topics":["bot","bybit","bybit-api","bybit-bot","bybit-rest","bybit-websocket","python","trading","trade-bot","trading-algorithms"],"license":"GPL-3.0","category":"trading","readme_excerpt":"Bybit BTCUSD Inverse Perpetual Scalp Trading Bot Trading bot for Bybit exchange to trade BTCUSD perpetual contract. It use Redis database to cache the trades data. That bot will only open shorts, because there are no liquidation price for 1x short on inverse contract and because in most cases funding rates for shorts are positive. If you want to make the bot trade longs you can just copy-paste the logic. Bot logic: bot collects trades from Bybit websocket and calculates high, low and average values for the last 6 minutes. It opens the trade always at higher price and adds more if average price higher the entry. Requirements Install libraries: Run python3 -m venv .bot && source .bot/bin/activate to create virtual env and activate it. pip install pybit==2.4.1 pip install redis How to run 1. Rename config-sample.py to config.py, open it and add your API key credentials. Save it. 2. Run docker-compose up -d to download and run Redis server for you. Don't forget to limit access to port 8001 on your server. If you don't have docker-compose just run docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest to run Redis. 3. Run python3 ws trades inverse redis.py to run the script that will collect the data using Bybit websockets and save it to the Redis database. 4. Run python3 inverse bot v5.0.py 📄 License MIT License - Feel free to modify and distribute. 🤝 Contributing Contributions, issues, and feature requests are welcome! Feel free to check issues pag","default_branch":null,"files":null,"tree":[],"storefront":"/r/ryu878","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ryu878/Bybit-BTCUSD-Inverse-Perpetual-Scalp-Trading-Bot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}