Giter Club home page Giter Club logo

bybit-perp-bot's Introduction

Bybit Perpetual Futures Trading Bot

This high-performance trading bot is designed to trade ETH perpetual futures on Bybit using a scalping strategy on low timeframes. It can run locally or on the cloud and includes unit tests for the strategy.

Features

  • Trades ETH with 20x leverage on low timeframes
  • Implements a scalping strategy with dynamic profit-taking targets based on market conditions
  • Asynchronous operations for improved performance
  • Detailed logging for order placements, cancellations, and closures
  • Configurable via environment variables

Requirements

  • Docker and Docker Compose installed
  • Bybit API key and secret

Setup

1. Clone the Repository

git clone https://github.com/yourusername/bybit-perp-bot.git
cd bybit-perp-bot

2. Environment Variables

Create a .env file in the root directory with your Bybit API credentials:

BYBIT_API_KEY=your_api_key
BYBIT_API_SECRET=your_api_secret

3. Build and Run with Docker

docker-compose build
docker-compose up

Bot configuration

bybit_client.py Handles communication with the Bybit API, including placing, canceling, and modifying orders asynchronously.

scalping_strategy.py Implements the scalping strategy with dynamic take-profit and stop-loss logic based on market conditions.

bot.py Initializes and runs the trading bot.

TODO

  • Add more advanced trading strategies
  • Improve error handling and retry logic
  • Implement additional unit tests
  • Add support for multiple trading pairs
  • Enhance configuration options via environment variables

License

This project is licensed under the MIT License. See the LICENSE file for details.

Disclaimer

Trading cryptocurrencies involves significant risk and can result in the loss of your invested capital. Use this bot at your own risk.

bybit-perp-bot's People

Contributors

halukg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.