Lu-Yi-Hsun / iqoptionapi

IQ Option API
372 stars 288 forks source link

How to get strikes and payout data of Digital Options? #12

Open ayush-03 opened 6 years ago

ayush-03 commented 6 years ago

Hello All,

I need to develop application for iqoption.com for digital options and i need to know if there is some sample source code using the iqoption API for getting strikes and payout values and some other features like trading etc.

It will be a great help, waiting for your replies.....

Thanks & Regards, Ayush Srivastava

Lu-Yi-Hsun commented 6 years ago

@ayush-03 you need Digital Options BUY FUNCTION? I haven't developed Digital Options BUY yet !

ayush-03 commented 6 years ago

@Lu-Yi-Hsun Thanks for the response. For not it is not implemented but is it possible and supported by IQ Options to get various strike levels and payouts at those strike levels in Digital Options and trade over them?

Lu-Yi-Hsun commented 6 years ago

@ayush-03 ok ,i will implemented Digital Options first! Sorry this month i am busy ,so i need more time...

hellosatyam commented 6 years ago

Thank you very much. We have several requirements for digital options. We need various strike levels and payouts for each strike.

hellosatyam commented 6 years ago

Are you an employee at IQOption ? Can anyone actually work on the development of these API ? I am very interested in the development of these API. Kindly guide.

Lu-Yi-Hsun commented 6 years ago

@hellosatyam yes anyone can actually work on the development of these API. two choose 1.write your code to "issues" area and i will add 2.fork this api and you can pull your code I am not employee at IQOption I just a student forked from n1nj4z33/iqoptionapi and fix/add some thing

hellosatyam commented 6 years ago

Hello,

I was wondering if you were able to implement the functions to fetch strikes and payouts for digital options.

Thank you

Lu-Yi-Hsun commented 6 years ago

@hellosatyam I will try to implement today~

Lu-Yi-Hsun commented 6 years ago

@ayush-03 @hellosatyam

updata last version

try this sample


from iqoptionapi.stable_api import IQ_Option
import logging

logging.basicConfig(level=logging.DEBUG,format='%(asctime)s %(message)s')
I_want_money=IQ_Option("email","password")
strike_list=I_want_money.get_strike_list_data("EURUSD",1)
print("Strike List")
for i in strike_list:
    print("key",i,"value",strike_list[i])
#Choose first Strike List
instrument_id=strike_list[list(strike_list)[0]]
I_want_money.buy_digit(3,"put",instrument_id)
ayush-03 commented 6 years ago

Hello @Lu-Yi-Hsun

Thanks for updating but in func: get_strike_list_data(ACTIVES,expirations) get_strike_list(ACTIVES,expirations) returns None and thus the above function is stuck in infinite while loop.

Does the above function gives Strike Prices as well as Strike Payout Percentage in realtime?

Lu-Yi-Hsun commented 6 years ago

@ayush-03 you have to check if your """ACTIVES""" have start digit game

in holiday only have otc , so the "EURUSD" will infinite while loop

ayush-03 commented 6 years ago

@Lu-Yi-Hsun Bingo. It worked. The function returns the Strike Prices for the instrument.

Thanks a lot for you work. You rock. It would be of great help if you add the option for Strike payout as well, as i need it urgently. I have attached a screen snap to help you know what i am talking about. strike-payout

Thanks in Advance.

ayush-03 commented 6 years ago

Hello @Lu-Yi-Hsun,

"It would be of great help if you add the option for Strike payout as well, as i need it urgently".

Just a reminder, Expecting to hear from you soon. Thank You.

ayush-03 commented 6 years ago

@Lu-Yi-Hsun,

Just a general reminder, may you please answer the following:

I am in urgent need for Strike payout feature. Is it possible for you to integrate the same in your API asap. Waiting for you reply.

Lu-Yi-Hsun commented 6 years ago

@ayush-03 I will try to implement that tomorrow 😊 Sorry I was busy

ayush-03 commented 6 years ago

@Lu-Yi-Hsun It's OK and thanks for your reply. I'll be waiting for your update. :+1:

Lu-Yi-Hsun commented 6 years ago

@ayush-03 i think i need more time , i still can not find profit network package

ayush-03 commented 6 years ago

Hello @Lu-Yi-Hsun Were you able to find the package for strike payout data feature? I would be more than happy if you reply with "YES". :thinking: If not please add the feature as soon as possible as i am in urgent need of that feature. :pray:

Wish to hear from you soon and I'll be waiting for your update. Thanks in advance.

Lu-Yi-Hsun commented 6 years ago

@ayush-03 I think profit is not on network... I need to Reverse The program

ayush-03 commented 6 years ago

@Lu-Yi-Hsun Ok, I am attaching a screenshot to make sure what is need and i am expecting and what you are actually searching for are the same and we are going in the right direction. Maybe it lies in the same package from which you are able to fetch the Strike Prices rather than some profit package, so it might help you in some way. strikepayoutscreenshot

Also if we are in the right direction, it would be of great help if you help me out with the strike payouts by reversing the program or some way? Expecting to hear from you soon. Thank You.

Lu-Yi-Hsun commented 5 years ago

@ayush-03 @hellosatyam sorry wait for long time

!!try the latest version and you can get the profit !! i decompiler the IQ OPTION APK find that: IQ OPTION SOURCE CODE