unicorn-binance-rest-api icon indicating copy to clipboard operation
unicorn-binance-rest-api copied to clipboard

Async support?

Open lixiao-ibd opened this issue 3 years ago • 5 comments

First of all, thank you for the great work!

Is your feature request related to a problem? Please describe. I need to run some tasks in parallel, the repo sammchardy/python-binance supports this and it works well. I am considering to switch to this repo(unicorn-binance-rest-api) because I am impressed by the unicorn-binance-websocket-api repo, and I see this repo is more active than sammchardy/python-binance.

Describe the solution you'd like Anything similar to what sammchardy/python-binance does, it is well documented: https://sammchardy.github.io/async-binance-basics/

Describe alternatives you've considered Well, continue to use sammchardy/python-binance for the async rest api and use this repo for the stream api

Additional context None

lixiao-ibd avatar Nov 19 '21 12:11 lixiao-ibd

Hello!

Thanks for your interesst in this lib!

Its on the roadmap but will need a while!

You can mix with python binance, but we are not allways on the same versions of websockets, so sometimes its not easy to install both paralell, thats why i forked the rest api.

oliver-zehentleitner avatar Dec 07 '21 10:12 oliver-zehentleitner

I think about how to implement asyncio support... a possible way is https://pypi.org/project/grequests/

https://code.luasoftware.com/tutorials/algo-trading/python-binance-asyncio-client/

oliver-zehentleitner avatar Mar 07 '22 07:03 oliver-zehentleitner

Hey @oliver-zehentleitner , any news regarding the async support for REST requests?

yarimiz avatar Oct 13 '22 07:10 yarimiz

I will pick this up soon, need this then: https://smarie.github.io/python-decopatch/

oliver-zehentleitner avatar Feb 28 '23 11:02 oliver-zehentleitner

Can't wait for it! Thank you @oliver-zehentleitner

daviduhm avatar Mar 10 '23 12:03 daviduhm