iqoptionapi icon indicating copy to clipboard operation
iqoptionapi copied to clipboard

Getting the wrong payout on digital OTC

Open danielWagnerr opened this issue 4 years ago • 4 comments

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

danielWagnerr avatar Jan 02 '21 15:01 danielWagnerr

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

marcellobatiista avatar Jan 13 '21 01:01 marcellobatiista

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

lucianoninks avatar Mar 11 '21 13:03 lucianoninks

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.

SpikeBarrier avatar Jun 17 '21 16:06 SpikeBarrier

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

vuppalaseshu avatar Jul 12 '21 20:07 vuppalaseshu