https://github.com/ajxv/potato-grid
Grid bot using python
https://github.com/ajxv/potato-grid
bot cryptocurrency trading trading-bot
Last synced: 5 months ago
JSON representation
Grid bot using python
- Host: GitHub
- URL: https://github.com/ajxv/potato-grid
- Owner: ajxv
- Created: 2022-12-31T16:37:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T09:57:41.000Z (over 3 years ago)
- Last Synced: 2025-09-28T01:32:18.774Z (9 months ago)
- Topics: bot, cryptocurrency, trading, trading-bot
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Potato Grid
This is a Python script that creates a grid trading bot. This bot uses the ccxt library to access the Binance exchange and perform automated trades.
## Getting Started
### Prerequisites
To use this bot, you need:
- Python 3
- The ccxt library
- API key and secret key for Binance.
### Installing
1. Install Python 3 if you haven't already. You can download it from [here](https://www.python.org/downloads/).
2. Install the dependencies using `pip install -r requirements.txt`.
### Configuration
- Before running the bot, you need to configure it using the `config.py` file.
- You can adjust the `Config` class variables to match your trading preferences.
- Add your API keys in `keys.py` file:
```python
API_KEY = "api-key-goes-here"
SECRET_KEY = "secret-key-goes-here"
```
### Running the Bot
Run the bot by executing `python bot.py` in the terminal.
## Functionality
The bot will initially place a number of buy and sell orders on either side of the current market price at intervals of `GRID_STEP_SIZE` and `GRID_SIZE` respectively.
Once the orders are placed, the bot will continually monitor their status. If a buy order is filled, the bot will place a new sell order at a price `GRID_SIZE` above the executed buy price. If a sell order is filled, the bot will place a new buy order at a price `GRID_SIZE` below the executed sell price.
The bot will log all executed trades and their prices in the `orders.json` file.
## Authors
- [ed](https://github.com/gandalf-the-lonesome)