Files
TradingBot-with-BybitAPI/README-EN.md

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:

  1. Create bot directory
  2. Pull image from git:
docker pull git.frik.su/eugenebee/tradingbot-with-bybitapi:latest
  1. 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"
    restart: unless-stopped

After the basic pre-setup:

It is recommended to use Bybit sub accaunt forn the bot.

  1. Get your API keys for the Bybit and Telegram
  2. Enter those in the compose.yml variables and your Telegram id into the WHITELIST
  3. At the Bybit platform turn on hedge mode foor all tokens you want the bot to trade
  4. Read the milk leaves and then make 4 circles around the server with the bee hive in your hands
  5. 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!