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
119 stars 542 forks source link

How to buy a 'Turbo' option? #63

Open iQBotProject opened 6 years ago

iQBotProject commented 6 years ago

self.api.timesync.expiration_time = 2

{"msg": {"direction": "call", "skey": null, "exp": 1509118827.0, "act": 1, "price": 10, "time": 1509118767, "type": "turbo", "user_balance_id": null}, "name": "buyV2"} 2017-10-27 15:39:24:DEBUG: {"msg":{"isSuccessful":false,"message":["Le temps d'achat des options a expiré, veuillez réessayer d'acheter l'option."],"result":{"request_id":null}},"name":"buyComplete","request_id":""}

why give me this error ?

lucianopinheiro commented 6 years ago

This active has not an option for time expiration time. This is not a valid expiration time: 1509118827 The remainder from the division must be 0 (exp%60==0). Plus, not any active has a turbo mode, neither they work anytime.

Aleandro21 commented 6 years ago

@lucianopinheiro How do I request to buy? post your code

gpiedimonte commented 6 years ago

@lucianopinheiro can u explain a bit better what do you mean? how can i can set a valid expiration date?

iQBotProject commented 6 years ago

if api.servertimer > 28 second probably you cant trad in current minute you need to set api.expiration = 2 thats min you will trad in the second minute like now is 10:12:33 in servertime you need to trad at experation 14:00

but in servertime < 28 second you can trad in current munite api.expiration = 1 ex: now is 10:12:13 in server time you can exptime in 13:00

thats all

gpiedimonte commented 6 years ago

I've tried some codes but I obtain always the same error, can you send us a little working code snipped ?