/Kyle-janus-dragon

Primary LanguagePythonMIT LicenseMIT

Telegram Trading Bot

Made by: Team Kyle

Last updated: Jan 20, 2024

The power of the Dune community in your pocket!

Telegram Logo Dune Logo

Download Telegram to try it out!:

Download on the App Store Get it on Google Play

Summary of our product:

Our product is a chatbot that users can interact with to easily access and utilize Dune’s sophisticated and large query system. It's a means for users to use and create query-based notifications which, if triggered will notify the user.

User interactions:

Utilizing built-in functionality from the Telegram Bot API, our chatbot will allow users to create notifications in this basic format

/query-identifier parameter1=1 parameter2=2 condition>=threshold "notification name"

Basic Chatbot Functionality:

Our chatbot's main functionality is to allow users to create custom notifications from data pulled from existing Dune queries. These notifications will be threshold-based, meaning users will be notified if a metric (specified by the user) passes a user specified threshhold.

To get started:

  1. Clone our github repository using this command: git clone https://github.com/0xBcamp/Kyle-janus-dragon.git
  2. Navigate to it in Terminal, and start the virtual environment using this command: source .venv/bin/activate
  3. Create a .env file and use these variables! At the moment you will need to create and use a Coin Market Cap API Key, a MySQL database, a Telegram Bot API key, and a Dune API key, however, we plan on eventually running this on a server and having users utilize their own DuneAPI key (since it can be really, really expensive to use just one Dune API key for every user).
CMC_API_KEY=
DB_USER=
DB_PASSWORD=
DB_HOST=
DB_DATABASE=
DEBUG=True
TG_API_KEY=
DUNE_API_KEY=
  1. Now, you can start our app using this command: ./main.py
  2. Our bot will be available to message. To see what commands are available type /help.

Example command:
/median_gas_price median_gas<=20 “My Notification”
This will set up a notification that will let you know when the median gas price of the last 24 hours is less than 20 gwei.