Lu-Yi-Hsun / iqoptionapi

IQ Option API
377 stars 290 forks source link

Binary subscribe to payout #152

Open kkagill opened 5 years ago

kkagill commented 5 years ago

So for digital, getting a current price profit is very light and I can even get real-time updates via subscribing to strike list.

ACTIVES="EURUSD"
duration=1#minute 1 or 5
I_want_money.subscribe_strike_list(ACTIVES,duration)
while True:
    data=I_want_money.get_digital_current_profit(ACTIVES, duration)
    print(data)#from first print it may be get false,just wait a second you can get the profit
    time.sleep(1)
I_want_money.unsubscribe_strike_list(ACTIVES,duration)

But for binary, looks like it is heavier than digital since it's getting all assets.

d=I_want_money.get_all_profit()
print(d["CADCHF"]["turbo"])
print(d["CADCHF"]["binary"])

Is there a way it can subscribe to binary asset's profit and make it lighter so I can use it like real-time?

Lu-Yi-Hsun commented 5 years ago

Ok I will implement lighter api

Lu-Yi-Hsun commented 5 years ago

@kkagill try last version https://github.com/Lu-Yi-Hsun/iqoptionapi#get_commission_change

kkagill commented 5 years ago

@Lu-Yi-Hsun

Can you try this api again please? Can't get commissio_data.

Lu-Yi-Hsun commented 5 years ago

Do you try the sample code?

kkagill commented 5 years ago

image

Is this turbo-option?

Right now, there are 26 binary options, but in code I see only 14 assets

image

Lu-Yi-Hsun commented 5 years ago

Yes that is turbo-option ,

Asset can update by code , I will sent to you

kkagill commented 5 years ago

ok. otherwise, it looks good!

Lu-Yi-Hsun commented 5 years ago

@kkagill These two api can update and get asset code update_ACTIVES_OPCODE() get_all_ACTIVES_OPCODE()