Lu-Yi-Hsun / iqoptionapi

IQ Option API
372 stars 288 forks source link

Getting the wrong payout on digital OTC #287

Open danielWagnerr opened 3 years ago

danielWagnerr commented 3 years ago

I am trying to get the payout of digital currencies and when there is OTC it returns the incorrect value, however under normal conditions (without OTC) the value is returned correctly.

Is anyone else having this problem?

Here's an example of how I'm getting payouts:

api.subscribe_strike_list("EURJPY-OTC", 1)
while True:
                payout = api.get_digital_current_profit("EURJPY-OTC", 1)

                if payout:
                    api.unsubscribe_strike_list(k, 1)
                    payout = round(float(payout), 2)
                    print(payout)
                    break
marcellobatiista commented 3 years ago

I have this same problem. The method is returning the incorrect value in the normal market as well.

lucianoninks commented 3 years ago

I have the same problem, both in OTC and normal market

SpikeBarrier commented 3 years ago

I have managed to get the technical team at IQ Option to look at the problem. They didn't provide any details but they said they made a change to the web service and were about to make more changes. The issue affects both getting profits and buying digital (get_digital_current_profit and buy_digital_spot). buy_digital_spot is replaced by buy_digital_spot_v2 which works but there doesn't seem to be a v2 for getting the current profit.

vuppalaseshu commented 3 years ago

I have managed to get the technical team at IQ Option to look at the problem. They didn't provide any details but they said they made a change to the web service and were about to make more changes. The issue affects both getting profits and buying digital (get_digital_current_profit and buy_digital_spot). buy_digital_spot is replaced by buy_digital_spot_v2 which works but there doesn't seem to be a v2 for getting the current profit.

i did not get buy_digital_spot_v2 module.. Could you please helpme in which version are you using