BinaryOptionsTools-v2 icon indicating copy to clipboard operation
BinaryOptionsTools-v2 copied to clipboard

Again check_win

Open Lem4aks opened this issue 8 months ago • 11 comments

@Rick-29 well that work on 15 sec, but dont on 300 i fix await asyncio.sleep(240), maybe we change func check_win throw, how max need timeout?

Buy trade result: win Buy trade data: {'id': 'a326435d-2f12-403c-a730-8f697b870177', 'openTime': '2026-03-26 22:08:39', 'closeTime': '2026-03-26 22:08:54', 'openTimestamp': 1774562919, 'closeTimestamp': 1774562934, 'refundTime': None, 'refundTimestamp': None, 'uid': 125979601, 'requestId': None, 'amount': '1', 'profit': '0.89', 'percentProfit': 89, 'percentLoss': 100, 'openPrice': '1.1443', 'closePrice': '1.14447', 'command': 0, 'asset': 'EURUSD_otc', 'isDemo': 1, 'copyTicket': '', 'openMs': 828, 'closeMs': 0, 'optionType': 100, 'isRollover': None, 'isCopySignal': False, 'isAI': None, 'currency': 'USD', 'amountUsd': None, 'amountUSD': '1', 'result': 'win'} Traceback (most recent call last): File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 356, in _get_trade_result trade = await self.client.check_win(id) asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 458, in wait_for fut.result() asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 340, in check_win trade = await asyncio.wait_for(self._get_trade_result(id), timeout=timeout_seconds) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 460, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Project\BinaryOptionsTools-v2-master\examples\python\async\check_win.py", line 27, in asyncio.run(main(ssid)) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete return future.result() File "C:\Project\BinaryOptionsTools-v2-master\examples\python\async\check_win.py", line 21, in main sell_data = await api.check_win(sell_id) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 343, in check_win raise TimeoutError(f"Timeout waiting for trade result for ID: {id}") TimeoutError: Timeout waiting for trade result for ID: f0e6c7fc-d81a-4cc5-90c5-26dc2cea5e41

Lem4aks avatar Mar 26 '26 20:03 Lem4aks

Experiencing this too

stanleyugwu avatar Apr 15 '26 03:04 stanleyugwu

hello @Rick-29 please review this

theshadow76 avatar Apr 21 '26 21:04 theshadow76

new problem with check win Traceback (most recent call last): File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 355, in _get_trade_result trade = await self.client.check_win(id) ValueError: PocketOptionError, Core error: Other error: DealsApiModule responder dropped

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Project\BinaryOptionsTools-v2-master\examples\python\async\check_win(1).py", line 31, in asyncio.run(main(ssid)) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete return future.result() File "C:\Project\BinaryOptionsTools-v2-master\examples\python\async\check_win(1).py", line 23, in main buy_data = await api.check_win(buy_id) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 342, in check_win return await self._get_trade_result(id) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 367, in _get_trade_result raise Exception(f"Error getting trade result for ID {id}: {str(e)}") Exception: Error getting trade result for ID 26f6d4d2-71d7-4ec9-b3ba-c822a77573bf: PocketOptionError, Core error: Other error: DealsApiModule responder dropped

Lem4aks avatar May 01 '26 00:05 Lem4aks

same issue

devflex-pro avatar May 07 '26 09:05 devflex-pro

same issue

Could you show us the relevant part of the code?

theshadow76 avatar May 07 '26 12:05 theshadow76

new problem with check win Traceback (most recent call last): File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 355, in _get_trade_result trade = await self.client.check_win(id) ValueError: PocketOptionError, Core error: Other error: DealsApiModule responder dropped

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Project\BinaryOptionsTools-v2-master\examples\python\async\check_win(1).py", line 31, in asyncio.run(main(ssid)) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete return future.result() File "C:\Project\BinaryOptionsTools-v2-master\examples\python\async\check_win(1).py", line 23, in main buy_data = await api.check_win(buy_id) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 342, in check_win return await self._get_trade_result(id) File "C:\Users\Asus\AppData\Local\Programs\Python\Python310\lib\site-packages\BinaryOptionsToolsV2\pocketoption\asynchronous.py", line 367, in _get_trade_result raise Exception(f"Error getting trade result for ID {id}: {str(e)}") Exception: Error getting trade result for ID 26f6d4d2-71d7-4ec9-b3ba-c822a77573bf: PocketOptionError, Core error: Other error: DealsApiModule responder dropped

Hello @sixtysixx do you know what could be causing this?

theshadow76 avatar May 07 '26 12:05 theshadow76

I can look into it when I get the chance.

sixtysixx avatar May 07 '26 13:05 sixtysixx

Great! Thank you!!

theshadow76 avatar May 08 '26 13:05 theshadow76

Yeah experiencing this. closed deals not working and check_win not working either

Ondiek-source avatar May 17 '26 19:05 Ondiek-source

@Rick-29 can you help us here?

theshadow76 avatar May 17 '26 20:05 theshadow76

Sorry, I haven't had time to review my fork- but if you could try to use it. It might work.

sixtysixx avatar May 17 '26 21:05 sixtysixx