EveripediaNetwork / everipedia-bounties

💰 Earn $IQ resolving bounties
https://medium.com/@Everipedia/announcing-the-everipedia-iq-fund-f01e270c6227
6 stars 0 forks source link

PredIQt alert bot ($3,500) #1

Closed kesar closed 3 years ago

kesar commented 3 years ago

Pre-Requisites

Description

A Telegram bot that allow users to subscribe to their personal data in predIQt.

Users should be able to receive alerts (with links) when:

User can add multiple accounts to subscribe, you can take as an inspiration @EOSauthoritybot in telegram.

All the bot UI should be intuitive using buttons like the one we suggested as inspiration.

Must use Telegraf ( https://github.com/telegraf/telegraf ). Use Dfuse's GraphQL API for data reception.

Bot should use environment variables to allow running in Kylin (for testing purposes) & Mainnet.


This task will require using a database. Please use SQL. Information stored in the database will include information like:

ChaituVR commented 3 years ago

Hi @kesar. Im interested in this.. Can i start working on it?

Only question i have is predIQT's api doesn't provide a way to subscribe to these events, is there a some way using Dfuse? Should i explore more on that?

kesar commented 3 years ago

Hi @kesar. Im interested in this.. Can i start working on it?

Only question i have is predIQT's api doesn't provide a way to subscribe to these events, is there a some way using Dfuse? Should i explore more on that?

Hi Chaitanya!

Yes, the best way to subscribe to these events its gonna be using dfuse, because predIQt API doesn't support streams for now.

There is an open dfuse endpoint for kylin & mainnet. We use it in some of our bots / apis. Here you can have an example of subscribing to prediqtpedia events ( https://gist.github.com/kesar/3a522880ed9f933aadc43ce490fe9d7b )

Take in consideration that to gather orders fill, you will need to read the dbOps that dfuse provides 👍👍

https://eos.dfuse.eosnation.io

Let me know if you have more questions, I'm happy to help

(text copied from our chat on telegram https://t.me/epbounties/17 in case someone is not in the channel )

ChaituVR commented 3 years ago

Hi @kesar all the references you gave and updated descriptions make sense to me, thank you so much. i will start working on this :)

ChaituVR commented 3 years ago

Follow my progress at https://github.com/ChaituVR/prediqt_telegram_bot

ChaituVR commented 3 years ago

Thank you everipedia team :)