Lu-Yi-Hsun / iqoptionapi

IQ Option API
372 stars 289 forks source link

async and await #199

Open landimd opened 4 years ago

landimd commented 4 years ago

Is it possible to use async and await to make asynchronous call to this API? I'm trying to call many actives at the same time and if a did it synchronous it takes a long time because the code needs to wait about 1,5 seconds for each active called.

I tried async/await but a got error, so I used threading library to work with threads, the code run but the values wasn't right.

Thanks!!

RafaelDamiani commented 4 years ago

Yes, it's possible, but you need to develop the code. Look this: concurrent.futures and this Multithreading with concurrent.futures