1.8 KiB
1.8 KiB
[ENG] Side Strategy Bybit Bot
This is a simple semi-automatic trading bot working with Bybit API and written in Python. The strategy is based on the side moving of the token which crosses user input levels. On the level cross long and short orders are opened.
Install guide
Bot is installed via docker compose file and docker pull command. This "guide" is made for linux and docker, but you should be able to run this bot on any system with Python 3.
Installing via docker compose:
- Create bot directory
- Pull image from git:
docker pull git.frik.su/eugenebee/tradingbot-with-bybitapi:latest
- Create compose.yml file:
services:
bybit-bot:
image: git.frik.su/eugenebee/tradingbot-with-bybitapi:latest
container_name: bybit-bot
environment:
API_KEY: "bybit-API-key"
API_SECRET: "bybit-secret-API-key"
BOT_TOKEN: "telegram-bot-token"
WHITELIST: "chat-id-1, chat-id-2"
LEVERAGE: "1" # Currently not supported. Set leverage in your Bybit account
TESTNET: "False"
DEMOTRADING: "False"
LOOPSLEEPTIME: "1"
SHOWEXTRADEBUGLOGS: "False"
volumes:
- ./data:/app/data
restart: unless-stopped
After the basic pre-setup:
It is recommended to use Bybit sub accaunt forn the bot.
- Get your API keys for the Bybit and Telegram
- Enter those in the compose.yml variables and your Telegram id into the
WHITELIST - At the Bybit platform turn on hedge mode foor all tokens you want the bot to trade
- Read the milk leaves and then make 4 circles around the server with the bee hive in your hands
- Everything is ready for the first start, enjoy!
To start up the bot enter the next command:
docker compose up -d
If you need use the sudo before the command
Thank you for reafing, hope everything will work fine!