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

buy in api does not work . Can it be corrected? #77

Closed foryou89 closed 6 years ago

gpiedimonte commented 6 years ago

2018-01-25 13:13:59,844 {"msg": {"direction": "call", "price": 1, "act": 1, "exp": 1516886098.0, "time": 1516886038, "type": "turbo"}, "name": "buyV2"} 2018-01-25 13:13:59,845 {"name":"timeSync","msg":1516886039871} 2018-01-25 13:13:59,858 {"name":"buyComplete","request_id":"","msg":{"isSuccessful":false,"message":["Invalid request"],"result":{}}}

Aleandro21 commented 6 years ago

same problem

gpiedimonte commented 6 years ago

@Aleandro21 also u have "Invalid request"? I've tried different snippet but nothing... you? @n1nj4z33 was here two weeks ago, maybe he can help us

Aleandro21 commented 6 years ago

@gpiedimonte this is my error

2018-01-26 11:35:41,208 {"msg": {"direction": "call", "price": 1, "act": 816, "exp": 1516963080.0, "time": 1516962900, "type": "turbo"}, "name": "buyV2"} 2018-01-26 11:35:41,500 {"name":"buyComplete","request_id":"","msg":{"isSuccessful":false,"message":["Invalid request"],"result":{}}}

hrabin commented 6 years ago

Problem is ".0" in "exp" field. simple fix: change line 21 in buyv2.py to: exp = int(self.api.timesync.expiration_timestamp)

Aleandro21 commented 6 years ago

@hrabin very well god job

lreiner commented 6 years ago

doesnt work for me .... still got that .0 at the end