ton-society / grants-and-bounties

TON Foundation invites talent to imagine and realize projects that have the potential to integrate with the daily lives of users.
https://ton.org/grants
309 stars 137 forks source link

Stonfi DEX Data Collection Module (Python) #767

Open seriybeliy11 opened 2 months ago

seriybeliy11 commented 2 months ago

Summary

To build an asyncio-based Python client for parsing and interacting with Stonfi DEX's API.

Bounty Context

Why it's Important? Creating a Python parsing client for Stonfi DEX will facilitate developers' access to DEX data. This can provide a foundation for building various services around these data, such as data mining or other data-related services. Having a Python client will make the DEX data more easily accessible and manipulable in one of the most widely used programming languages for data science.

Problem showcase Currently, accessing Stonfi DEX's data may be less convenient than ideally possible. Developers needing this data for their projects might need to undertake tedious manual works to integrate the DEX's API into their applications. Additionally, they need to manually organize the data, which can be cumbersome and error-prone.

Potential Solution We aim to build a Python client tool-kit that utilises asyncio for requests to the DEX's API, capable of both GET and POST requests. The toolkit will provide functions to efficiently serialize the obtained data. Moreover, it will provide the capability to save data for further usage or data mining purposes. Essentially, the toolkit will simplify the interaction between Python developers and the Stonfi DEX's data.

Defenition of Done

References

Please review the similar solutions at:

  1. Python's asyncio documentation: https://docs.python.org/3/library/asyncio.html

  2. Python's requests library: https://docs.python-requests.org/en/latest/

  3. Some asyncio related medium blog: https://medium.com/@yeraydiazdiaz/asyncio-coroutine-patterns-beyond-await-a6121486656f

  4. https://docs.ston.fi/docs/developer-section/sdk

REWARD

Thank you for your attention and we ask for your support so that we can bring more quality and useful tools to the ecosystem!

seriybeliy11 commented 2 months ago

@delovoyhomie please see, the solution here: https://github.com/fedya-eremin/stonfi

seriybeliy11 commented 12 hours ago

@delovoyhomie we encourage you to review our solution, we understand that it will be useful for collecting current DEX data :)