Script Development for Automatized Tasks on debridge.finance

Simplifying Token Trading with Smart Automation

Liked it? Share this case study to inspire other's

About This Product

Manually tracking token prices and executing trades on debridge.finance was inefficient and prone to errors.

Our automated trading script streamlines this process by continuously monitoring token prices, comparing them to user-defined targets, and executing trades when conditions are met. Integrated with MongoDB, it enables users to manage tokens, set target prices, and upload configurations via CSV files.

A Telegram bot ensures real-time notifications, keeping users informed about trade execution. This system eliminates manual intervention, improves trading accuracy, and enhances efficiency with automated 24-hour trading cycles.

Our Contribution

Our team designed and implemented a highly efficient, fully automated system that seamlessly integrates with Telegram Web and the client’s existing bot to monitor token prices, issue real-time alerts, and execute trades. The key contributions include:


  • Developed a Puppeteer-based script to automate Telegram Web interactions for real-time data monitoring and trade execution.
  • Integrated MongoDB for secure storage of token data, target prices, and trade history.
  • Implemented real-time price monitoring to fetch live token price data and make precise trade decisions.
  • Designed an automated trade execution mechanism to ensure seamless purchases when predefined price targets are met.
  • Built a Telegram bot using Telegraf.js for instant notifications and simplified token management.
  • Enabled batch uploads via CSV to facilitate bulk token management and rapid trade setup.
  • Ensured a 24-hour trade execution cycle, preventing multiple trades within the same day.
  • Enhanced system security, ensuring private key safety and real-time market engagement.

Languages and Technologies

We carefully selected modern and efficient technologies to ensure seamless automation, fast execution, and robust security. The chosen stack provides a high-performance environment for real-time trading and automated transactions.

Primary Tool:
We selected a robust and scalable technology stack to ensure smooth automation, security, and real-time trading capabilities.

Backend Technologies:


  • Puppeteer – Automated interaction with Telegram Web for real-time trading execution.
  • Express.js – Lightweight framework for handling API requests and communication.
  • Telegraf.js – Integrated Telegram bot for notifications, token management, and database interactions.
  • Axios – For handling API calls to fetch real-time token prices.
  • Node-Schedule – Managed time-based task execution, ensuring automated and timely trades.


Database & Management:

  • MongoDB – Securely stores tokens, target prices, and transaction history.
  • Mongoose – Simplifies database interactions and ensures data consistency.
  • Csv-Parser – Enables seamless batch upload and processing of token data.
  • Cors – Allows secure API communication between services.

The Problem

The Client’s Challenge:

The client struggled with the time-consuming process of manually monitoring token prices and executing trades. He needed an automated solution that could:


  • Track token prices without constant supervision.
  • Alert him when prices meet predefined targets.
  • Execute trades automatically to avoid missed opportunities and manual errors.

The Solution

We developed a system that:


  • Monitors token prices in real-time via a Telegram Web bot.
  • Sends instant notifications to users when predefined target prices are reached.
  • Executes trades automatically, ensuring error-free and timely transactions.
  • Enables complete token management through a user-friendly Telegram bot interface.
  • Supports batch uploads via CSV, allowing bulk token import for faster trade setup.
  • Implements a 24-hour execution limit, preventing repetitive trades on the same token within a day.

This automation-first approach provided unparalleled efficiency, accuracy, and ease of use, significantly optimizing the client’s trading process.


Our Journey So Far

Our development journey involved multiple phases, each crucial in shaping a robust, fully automated trading system.

Step 1: Identifying the Problem

We conducted an in-depth analysis of the client’s workflow, pinpointing inefficiencies in manual price tracking and trade execution. The need for an automated, error-free system was clear, so we outlined key features and functionalities for development.

Step 2: Designing the Database

A structured MongoDB database was built to store token details, price targets, and user preferences. This allowed seamless retrieval and updates, ensuring smooth trade execution and real-time monitoring.

Step 3: Integrating the Telegram Bot

Using Telegraf.js, we developed a Telegram bot that enables users to manage tokens, set price targets, and receive instant notifications, creating an intuitive interface for streamlined interactions.

Step 4: Automating Telegram Web Interactions

We implemented Puppeteer to automate Telegram Web functions. This allows real-time token tracking and secure interactions with the client’s existing bot, facilitating efficient trading.

Step 5: Fetching and Comparing Token Data

A mechanism was developed to fetch and compare market prices continuously against stored target prices. This ensured real-time monitoring and timely execution.

Step 6: Implementing the Notification System

An alert system was integrated, notifying users when a target price was met. This prevented delays and provided complete transparency in trade execution.

Step 7: Automating Trade Execution

We built an execution logic that ensured trades were placed instantly when target prices were met, eliminating manual intervention and reducing trade delays.

Step 8: Enabling Batch Uploads

A CSV upload feature was introduced to allow users to add multiple tokens in one go, making trade setup efficient and scalable.

Step 9: Testing and Optimization

Extensive testing was conducted to ensure accuracy, eliminate bugs, and optimize speed. Before deployment, the system was fine-tuned for reliability and security.



Key Features

  • Automated Token Price Monitoring – Continuously tracks token prices and compares them with predefined targets.
  • Trade Execution at Target Price – Automatically executes trades when the target price is met.
  • Telegram Bot Integration – Sends real-time notifications and allows seamless token management.
  • Token & Target Price Management – Users can add, update, or remove tokens and set custom price targets.
  • Batch Upload via CSV – Enables users to import multiple tokens, ensuring faster trade setups.
  • Secure Database Management – Token data, prices, and trade records are securely stored in MongoDB.
  • Automated 24-Hour Trading – The script ensures one trade per token per 24 hours, avoiding redundant transactions.
  • Real-Time User Notifications – Instant alerts keep users informed about price conditions and executed trades.
  • Batch Upload via CSV – Quickly set up multiple trades with a single upload.

Conclusion

The automated trading system on debridge.finance transformed manual trading into a highly efficient, error-free process. Real-time price monitoring and automatic trade execution save time and enhance accuracy.

The Telegram bot allows users to manage tokens effortlessly, while batch uploads simplify trade setup. This solution provides DeFi traders with a powerful, seamless, automated trading tool.

Want to automate your trading? Let’s build something powerful together!


Client Review

"Great company, outstanding work and communication skills."

Previous Case study

Connecting Care, When Every Second Counts.

Next Case Study

Creating a Revolutionary NFT Collection

Ready to create a more decentralized and connected future?

Our technical experts offer a free consultation to help you plan your idea, requirements, and tokenomics before beginning development.

Let's discuss your idea imageTag
Or need to speak with business consultant expert?

Mahbub Shuvo

CEO at Core Devs ltd