Lu-Yi-Hsun / iqoptionapi

IQ Option API
372 stars 288 forks source link

Problems with buy function #166

Open crisian123 opened 4 years ago

crisian123 commented 4 years ago

I am new to python. I was trying to make a simple example that is written in the documentation about the "buy" function goal = 'EURUSD-OTC' but there is a problem. After a few seconds, the result is "False." No matter how many times I try.

from iqoptionapi.stable_api import IQ_Option
import logging
import time
logging.basicConfig(level=logging.DEBUG,format='%(asctime)s %(message)s')
I_want_money=IQ_Option("email","pass")
goal="EURUSD"
print("get candles")
print(I_want_money.get_candles(goal,60,111,time.time()))
Money=1
ACTIVES="EURUSD"
ACTION="call"#or "put"
expirations_mode=1

check,id=I_want_money.buy(Money,ACTIVES,ACTION,expirations_mode)
Lu-Yi-Hsun commented 4 years ago

Buy is only work in private version

crisian123 commented 4 years ago

Oh. I see :broken_heart: : . how can i try to private version?

Lu-Yi-Hsun commented 4 years ago

@crisian123

Give me your github name

PayPal email I will sent you 50usd bill each month

MightyMaxSaviorOfTheUniverse commented 4 years ago

you can't do that because there are hundreds of API's for IQoption

You won't make any money and I'm pretty sure it is illegal

pavilion20bw commented 4 years ago

@MightyMaxSaviorOfTheUniverse Understand, but @Lu-Yi-Hsun deserves to be paid for maintaining this repo since it's hard. Instead of a private repo, each fix should be paid via donation for him.