Skip to content

This bot is used to mine volume on O2

Notifications You must be signed in to change notification settings

FuelLabs/trading-agent-bot

Repository files navigation

Trading Agent Bot

Overview

The bot operates as follows:

  • Every order_pairs_interval_seconds:
    • Fetch the current price for the O2 market from Bitget.
    • Calculate the buy price: buy_price = bitget_price * (1 + price_adjustment_factor).
    • Calculate the sell price: sell_price = bitget_price * (1 - price_adjustment_factor).
    • Place a buy order at the calculated buy price.
    • Wait for order_interval_seconds.
    • Place a sell order at the calculated sell price.

Setup

Add a config.yaml file to the root directory. Use config.example.yaml as a template for your configuration.

Running Locally

  1. Install all dependencies for the project:

    pnpm install
  2. Build the project:

    pnpm run build
  3. Start the bot:

    pnpm start

Running with Docker

Ensure you have Docker and Docker Compose installed on your system. Then, build and run the Docker container:

  1. Start the bot using Docker Compose:

    docker compose up --build -d
  2. To stop the bot:

    docker compose down

About

This bot is used to mine volume on O2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5