iqoptionapi icon indicating copy to clipboard operation
iqoptionapi copied to clipboard

api.buy not work. solved

Open remarco opened this issue 7 years ago • 2 comments

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 :)

remarco avatar Feb 28 '18 08:02 remarco

did not work for me

lreiner avatar Jun 08 '18 16:06 lreiner

That didn't work for me either :/