There is currently no system for notifying the community about trades of the DEXTR/XRD pair, specifically "new holders" and "whale trades". While the data is available on the ledger, there needs to be a mechanism to fetch and notify the community on Telegram whenever a new holder is identified or a whale trade occurs.
Your Task
Create a Telegram bot that will notify the DeXter Telegram group (https://t.me/dexter_discussion) about trades involving new holders or significant trades. Any trade involving more than 20,000 DEXTR should be reported to the group.
Examples:
Several trade groups have implemented similar systems for ociswap trades, as shown in the screenshots below:
Data
You can retrieve all trades for the DEXTR/XRD pair using the adex V0/pair/trades endpoint. The pair address is component_rdx1czgjmu4ed5hp0vn97ngsf6mevq9tl0v8rrh2yq0f4dnpndggk7j9pu.
One strategy is to run a cron job every hour to fetch the latest orders. Another potential strategy to get realtime data is to subscribe to newly created orders on Alphadex via webhook, though I'm not sure if this is possible.
Please discuss data fetching strategies with @fliebenberg.
If you go with the cronjob flow, please use javascript and deploy the cronjob and script to cloudflare, see chatGPT instructions (no guarantee this guide works).
Side note
Once the bot is implemented for DEXTR/XRD pair, we can think of making available to all communities. That way projects could use the same bot for their pair.
Problem
There is currently no system for notifying the community about trades of the DEXTR/XRD pair, specifically "new holders" and "whale trades". While the data is available on the ledger, there needs to be a mechanism to fetch and notify the community on Telegram whenever a new holder is identified or a whale trade occurs.
Your Task
Create a Telegram bot that will notify the DeXter Telegram group (https://t.me/dexter_discussion) about trades involving new holders or significant trades. Any trade involving more than 20,000 DEXTR should be reported to the group.
Examples: Several trade groups have implemented similar systems for ociswap trades, as shown in the screenshots below:
Data
You can retrieve all trades for the DEXTR/XRD pair using the adex V0/pair/trades endpoint. The pair address is
component_rdx1czgjmu4ed5hp0vn97ngsf6mevq9tl0v8rrh2yq0f4dnpndggk7j9pu
.One strategy is to run a cron job every hour to fetch the latest orders. Another potential strategy to get realtime data is to subscribe to newly created orders on Alphadex via webhook, though I'm not sure if this is possible.
Please discuss data fetching strategies with @fliebenberg.
If you go with the cronjob flow, please use javascript and deploy the cronjob and script to cloudflare, see chatGPT instructions (no guarantee this guide works).
Side note
Once the bot is implemented for DEXTR/XRD pair, we can think of making available to all communities. That way projects could use the same bot for their pair.
Deploy on Cloudflare