iqoptionapi
iqoptionapi copied to clipboard
api.buy not work. solved
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 :)
did not work for me
That didn't work for me either :/