PeakeCoin Bots: Automated Trading Dashboard

in LeoFinance3 days ago


Repo: PaulMoon410/peakecoin_bots

Overview

PeakeCoin Bots is an automated Hive Engine trading bot system built for the PeakeCoin ecosystem. It is designed to run multiple token-specific trading bots, monitor markets, place buy and sell orders, cancel stale orders, and protect accounts from overusing Hive Resource Credits.

The project currently includes bot support for several Hive Engine swap markets, including:

  • SWAP.LTC
  • SWAP.ETH
  • SWAP.BTC
  • SWAP.DOGE
  • SWAP.HBD
  • SWAP.BNB
  • SWAP.STEEM
  • SWAP.MATIC

The dashboard launcher runs each bot script in its own thread and staggers bot startup to avoid launching everything at once. This makes the system cleaner and less aggressive on startup. :contentReference[oaicite:2]{index=2}


Key Features

Multi-Bot Dashboard Launcher

The dashboard script launches multiple trading bots from one central process. Each bot is labeled by token, color-coded in the terminal, and launched with delays between each bot so they do not all hit the network at once. :contentReference[oaicite:3]{index=3}

Hive Engine Market Reading

The bots use Hive Engine market data to read the highest bid and lowest ask for each token. The market helper checks both the buy book and sell book, then returns the top bid and lowest ask for trading decisions. :contentReference[oaicite:4]{index=4}

Smart Buy and Sell Logic

Each token bot follows a similar trading pattern:

  • Fetch the current market
  • Calculate a buy price below the highest bid
  • Calculate a sell price above the lowest ask
  • Check balances
  • Avoid duplicate orders
  • Place buy and sell orders when conditions are valid

For example, several bots calculate buys around 5% below the highest bid and sells around 10% above the current ask. :contentReference[oaicite:5]{index=5}

Resource Credit Protection

The bots check Hive Resource Credits before trading. If RC drops too low, the bot skips the trade cycle and increases the delay before trying again. This helps avoid failed transactions and protects the account from wasting resources. :contentReference[oaicite:6]{index=6}

Old Order Cleanup

Before starting a new trade cycle, the bots attempt to cancel the oldest open order for that token. This keeps the market activity cleaner and prevents old orders from piling up forever. :contentReference[oaicite:7]{index=7}

Duplicate Order Protection

Before placing new buy or sell orders, the bots check open orders to avoid placing duplicates at the same price. This reduces clutter and helps keep each bot from stacking unnecessary orders. :contentReference[oaicite:8]{index=8}

PeakeCoin Gas Support

The shared order module includes PeakeCoin gas-buying logic. It can buy PEK at the current lowest ask when available, or fall back to a default PEK gas price. This gives the bot system a built-in way to support PeakeCoin activity while trading other markets. :contentReference[oaicite:9]{index=9}


How It Works

When the dashboard starts, it launches each token bot one at a time. Each bot then enters its own trading loop.

A normal trade cycle looks like this:

  1. Start the token bot cycle.
  2. Cancel the oldest open order.
  3. Check Hive Resource Credits.
  4. Fetch the token order book.
  5. Calculate buy and sell prices.
  6. Check account balances.
  7. Skip duplicate orders.
  8. Submit valid buy or sell orders.
  9. Wait before the next cycle.

This structure makes the system modular, meaning each token can have its own account, settings, timing, and trading behavior.


Security Notice

This project should be treated carefully because trading bots require Hive active authority to place market orders.

For safety:

  • Do not hardcode active keys in public files.
  • Use .env variables instead.
  • Run bots locally when possible.
  • Use separate trading accounts with limited funds.
  • Never commit private keys to GitHub.
  • Keep bot accounts separate from your main Hive account.

The shared order module already supports environment-based key loading, so the next improvement should be removing hardcoded keys from each individual bot file. :contentReference[oaicite:10]{index=10}


Current Status

PeakeCoin Bots is already structured as a working multi-token trading system. The foundation is in place for:

  • automated trading,
  • market monitoring,
  • Resource Credit protection,
  • old order cancellation,
  • duplicate order prevention,
  • PEK gas-buying support,
  • and multi-token bot management.

The next major upgrade should be improving security, cleaning up repeated code across the token bots, and moving shared trading logic into one reusable strategy engine.


Repository

Full source code and setup instructions:

https://github.com/PaulMoon410/peakecoin_bots


🤖 PeakeBot — Autonomous Trading System (RC-AWARE)

Independent multi-token trading bot featuring:
RC-aware execution, adaptive delay logic, and self-regulating trade cycles.

🌐 Live PeakeBot Interface:
👉 https://peakebot.onrender.com/

📊 Trading bot details:
👉 https://geocities.ws/p/e/peakecoin/trading-bot/peakebot_v0_01.html

💻 Open-source repositories:
👉 https://github.com/paulmoon410


🙏 Acknowledgements

Thanks to and please follow:
@enginewitty @ecoinstant @neoxian @txracer @thecrazygm @holdonia @aggroed

For their continued support, guidance, and help expanding the PeakeCoin ecosystem.