Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary subscribe to payout #152

Open
kkagill opened this issue Nov 21, 2019 · 8 comments
Open

Binary subscribe to payout #152

kkagill opened this issue Nov 21, 2019 · 8 comments
Labels
imp. have been implement at last version

Comments

@kkagill
Copy link

kkagill commented Nov 21, 2019

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
Copy link
Owner

Ok I will implement lighter api

@Lu-Yi-Hsun Lu-Yi-Hsun added the TODO will be add or fix something label Nov 21, 2019
@Lu-Yi-Hsun
Copy link
Owner

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

@Lu-Yi-Hsun Lu-Yi-Hsun added imp. have been implement at last version and removed TODO will be add or fix something labels Nov 26, 2019
@kkagill
Copy link
Author

kkagill commented Nov 28, 2019

@Lu-Yi-Hsun

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

@Lu-Yi-Hsun
Copy link
Owner

Do you try the sample code?

@kkagill
Copy link
Author

kkagill commented Nov 29, 2019

image

Is this turbo-option?

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

image

@Lu-Yi-Hsun
Copy link
Owner

Yes that is turbo-option ,

Asset can update by code , I will sent to you

@kkagill
Copy link
Author

kkagill commented Nov 29, 2019

ok. otherwise, it looks good!

@Lu-Yi-Hsun
Copy link
Owner

Lu-Yi-Hsun commented Nov 29, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imp. have been implement at last version
Projects
None yet
Development

No branches or pull requests

2 participants