nixonjoshua98 / dexscreener

Python API wrapper for dexscreener.com
https://docs.dexscreener.com/api/reference
MIT License
104 stars 22 forks source link

Async Client #2

Closed mikulas-mrva closed 1 year ago

mikulas-mrva commented 1 year ago

Do you have any plans to add asyncio support to this SDK?

It looks fairly easy to do as the code is quite straightforward so far, and would be a massive help for many projects, I'm sure.

mikulas-mrva commented 1 year ago

(having a second look, RateLimiter looks a wee bit trickier to migrate to async)

nixonjoshua98 commented 1 year ago

HI, I have added _async versions of each methods. I've also updated the rate limiter to work as async (not perfect but the rate limits are pretty high on the API so not too worried about it)

nixonjoshua98 commented 1 year ago

https://pypi.org/project/dexscreener/0.3/ should be available which has async support - Let me know if you have issues