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

I was able to fetch data but now i am unable to fetch any data

Open sreenishanth05 opened this issue 1 year ago • 7 comments

C:\Users\Sree Nishanth\Desktop>python mm7.py [INFO] Getting MACD direction for asset: AUDCAD_otc Failded once trying again [ERROR] Exception in MACD direction detection: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' Failded once trying again [ERROR] Exception in MACD direction detection: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' thread 'tokio-runtime-worker' panicked at C:\Users\ayfmp\OneDrive\TheSunsetCode\BinaryOptionsTools-v2\crates\core\src\general\client.rs:291:9: not yet implemented note: run with RUST_BACKTRACE=1 environment variable to display a backtrace thread 'tokio-runtime-worker' panicked at C:\Users\ayfmp\OneDrive\TheSunsetCode\BinaryOptionsTools-v2\crates\core\src\general\client.rs:291:9: not yet implemented Failded once trying again [ERROR] Exception in MACD direction detection: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' [FAILED] Unable to determine direction after retries. Returning default: UP up [RESULT] Final Trade Direction: UP

C:\Users\Sree Nishanth\Desktop>

sreenishanth05 avatar Jun 30 '25 16:06 sreenishanth05

PocketOption updated there wensocket messages

theshadow76 avatar Jun 30 '25 21:06 theshadow76

Failed to fetch candles for timeframe 15s and period 60s: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' Failed to fetch candles for timeframe 30s and period 60s: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' Failed to fetch candles for timeframe 60s and period 60s: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' Failed to fetch candles for timeframe 15s and period 120s: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' Failed to fetch candles for timeframe 30s and period 120s: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' Failed to fetch candles for timeframe 60s and period 120s: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' Failed to fetch candles for timeframe 15s and period 180s: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '16s' Failed to fetch candles for timeframe 30s and period 180s: PocketOptionError, BinaryOptionsToolsError, Failed to execute 'GetCandles' task before the maximum allowed time of '1

same problem happened bro

nazu88888 avatar Jul 01 '25 18:07 nazu88888

Now what can I do to fetch the candles

sreenishanth05 avatar Jul 12 '25 06:07 sreenishanth05

Soon this library will be updated, in the meantime you can use BinaryOptionsToolsV1(async) or PocketOptionAPIAsync

theshadow76 avatar Jul 12 '25 09:07 theshadow76

ok thank you so much

sreenishanth05 avatar Jul 14 '25 12:07 sreenishanth05

fixed, now install: pip install binaryoptionstoolsv2==0.1.8 for the latest version

theshadow76 avatar Jul 16 '25 07:07 theshadow76

C:\Users\Programme>python -c "import BinaryOptionsToolsV2; print(BinaryOptionsToolsV2.version)" Traceback (most recent call last): File "", line 1, in import BinaryOptionsToolsV2; print(BinaryOptionsToolsV2.version) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Programme\AppData\Local\Programs\Python\Python313\Lib\site-packages\BinaryOptionsToolsV2_init_.py", line 7, in from .pocketoption import all as pocket_all File "C:\Users\Programme\AppData\Local\Programs\Python\Python313\Lib\site-packages\BinaryOptionsToolsV2\pocketoption_init_.py", line 10, in from . import asyncronous, syncronous File "C:\Users\Programme\AppData\Local\Programs\Python\Python313\Lib\site-packages\BinaryOptionsToolsV2\pocketoption\asyncronous.py", line 2, in from BinaryOptionsToolsV2.config import Config File "C:\Users\Programme\AppData\Local\Programs\Python\Python313\Lib\site-packages\BinaryOptionsToolsV2\config.py", line 1, in from BinaryOptionsToolsV2 import PyConfig ImportError: cannot import name 'PyConfig' from partially initialized module 'BinaryOptionsToolsV2' (most likely due to a circular import) (C:\Users\Programme\AppData\Local\Programs\Python\Python313\Lib\site-packages\BinaryOptionsToolsV2_init_.py)

C:\Users\Programme>

I AM FACING THIS ERROR AND CHATGPT STATED THAT:

"This circular import error is caused by the library’s internal code trying to import from itself in a way that Python doesn’t allow — it’s a bug or design flaw in that version of BinaryOptionsToolsV2.

What this means: The library’s own internal imports cause it to fail at load time.

You cannot successfully import BinaryOptionsToolsV2 without triggering this error.

So, you won’t be able to use this installed package until this bug is fixed or worked around."

CAN YOU HELP ME SOLVE THIS ERROR PLZ

sreenishanth05 avatar Aug 12 '25 03:08 sreenishanth05