Skip to content

Binance Grid Trading Bot for multi coins

License

Notifications You must be signed in to change notification settings

maxxyryo/BinanceGridTrader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binance Multi Coin Grid Trader

About

Binance Multi Coin Grid Trader is a bot, allowing to dynamically create trading grids. It takes the parameters and calculates for each symbol BUY LIMIT grids evenly (drop and amount). Once deployed, it automatically monitors the state of the grid and places SELL LIMIT orders accordingly.

Features

  • Create limit buy order grid for specific market under set conditions (Grid level distance, grid count,etc.) equally distributed.
    • Grids are created on bot startup if no previous grids in database founds
    • Grids are created based on market manager. If RSI of N minute candles is less that N than grid will be deployed
      • Customized RSI params:
        • Timeframe of OHLCV candels:
          • Minutes: 1, 5, 15, 30
          • Hours: 1H
        • RSI length as INT
        • RSI value serving as limit for grid creation: RSI value less than N RSI
  • Monitors grid orders and once purchase is done, it automatically sets the sell limits based on setup parameters
  • Monitors limit sell orders
  • Activities stored in Mongo Database collections for tracking
    • Limit buy order grids
    • limit sell orders
    • completed grid levels
    • performance calculation
  • Once Grids are completed make new grids once grid is completed
    • Create new grids if there are free grid slots based on market manager
  • Overall account performance tracking

Install

Clone the repository

git clone https://github.com/AnimusXCASH/BinanceGridTrader.git

Install Project Requirements

pip3 install -r requirements.txt

Install MongoDB

Bot Setup File

Create file into main directory under the name botSetup.json and fill in following requirements.

{
  "binancePrivate":".....",
  "binancePublic": ".....",
  "markets": ["BNBUSDT", "MATICUSDT"],  // List of pairs to create grid
  "gridDistance": 0.005,  //Set at 0.5% distance between grids
  "grids": 4,  // Amount of grids for limit buy to be created...currently 4
  "base": "bid", // Which based to use for grid calculation: bid, ask
  "dollarPerCoin": 240, // UDST devoted per pair
  "gain": 0.020 // Exit percentage for limit sell from marked buy price
  "monitor": 120 //Seconds between grid re-checks currently set to 120
  "stopLimitSellPerc": 0.02  // Stop limit sell perc set at 2%,
  "rsiTimeframe": "15", // What OHLCV data to query according to timeframe
  "rsiLength": 14, // RSI length to be applied on Close
  "rsiManager": 47 // Rsi limit for GRID deployment. Above selected nubmer grids are not created
}

Run the script from CMD

python main.py

or

python3 main.py

About

Binance Grid Trading Bot for multi coins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages