This bot monitors Hyperliquid trades and sends notifications to a Telegram channel when significant trades occur.
Before you begin, make sure you have the following installed:
- Node.js (version 22.4.0 or higher)
- npm (comes with Node.js) - pnpm can be used as well
- Git (for cloning the repository)
git clone https://github.com/rokitgg/hyperliquid-trades-feed
cd hyperliquid-trades-feed- Open Telegram and search for @BotFather
- Start a chat with BotFather and send
/newbot - Follow the instructions to create your bot
- Save the API token that BotFather gives you - you'll need it later
- Start a chat with your new bot by clicking the link BotFather provides
- Create a new Telegram channel where you want to receive notifications
- Add your bot to the channel as an administrator
- Forward any message from your channel to @userinfobot
- The bot will reply with information including the chat ID (it will look like
-100xxxxxxxxxx)
- Create a file named
.envin the project root directory - Copy the contents from
.env.exampleinto.env - Fill in your Telegram bot token and chat ID and replace the values in your own
.envfile
npm installnpm run buildnpm startFor development, you can use:
npm run devYou can customize the bot by modifying the following in src/config/index.ts:
SUPPORTED_COINS: List of cryptocurrencies to monitorMIN_NOTIONAL_VALUE: Minimum trade value to trigger notifications (default: 1,000,000)
- Real-time trade monitoring on Hyperliquid
- Automatic notifications for large trades.
- Support for multiple cryptocurrencies (can be extended)
- Automatic reconnection on connection loss
- Health check endpoint
-
Bot not sending messages:
- Verify your bot token and chat ID in
.env - Ensure the bot is an administrator in your channel
- Check if the bot has permission to send messages
- Verify your bot token and chat ID in
-
Connection issues:
- Check your internet connection
- Verify that the Hyperliquid API is accessible
- Check the console logs for error messages
-
Node.js version error:
- Ensure you have Node.js version 22.4.0 or higher installed
- Run
node -vto check your version - If needed, update Node.js using nvm
The bot includes a health check endpoint running on port 3000. You can access it at the root path /:
http://localhost:3000/If you encounter any issues or need help, please open an issue on the GitHub repository.