n1nj4z33 / iqoptionapi

IQ Option API 4.x (Python 2.7) The project is obsolete and is not supported because of problems with access to IQ Options in Russia
120 stars 551 forks source link

api.buy not work. solved #80

Open remarco opened 6 years ago

remarco commented 6 years ago

hi! api.buy(1, 1, "turbo", "call") not work . i find what need to doo. in file iqoptionapi/iqoptionapi/ws/chanels/buyv2.py change data = { "price": price, "act": active, "exp": exp, "type": option, "direction": direction, "time": self.api.timesync.server_timestamp } to data = { "price": price, "act": active, "exp": int(round(exp)), "type": option, "direction": direction, "time": self.api.timesync.server_timestamp } and buy work very good. i dont know if this is right solution but it work. hawe fun :)

lreiner commented 6 years ago

did not work for me

MightyMaxSaviorOfTheUniverse commented 4 years ago

That didn't work for me either :/