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 :)
hi! api.buy(1, 1, "turbo", "call") not work . i find what need to doo. in file
iqoptionapi/iqoptionapi/ws/chanels/buyv2.py
changedata = { "price": price, "act": active, "exp": exp, "type": option, "direction": direction, "time": self.api.timesync.server_timestamp }
todata = { "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 :)