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

دانلود سابقه شاخص مالی 'شاخص بازده نقدي قيمت' #254

Open
mrdm92 opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mrdm92
Copy link

mrdm92 commented Aug 23, 2024

توضیح مشکل پیش آمده

چطور اتفاق افتاد؟

tse.download_financial_indexes(symbols=['شاخص بازده نقدي قيمت'],  write_to_csv=True, include_jdate=True)

ارور زیر را گرفتم(متن کامل ارور)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In [17], [line 1](vscode-notebook-cell:?execution_count=17&line=1)
----> [1](vscode-notebook-cell:?execution_count=17&line=1) x19 = tse.download_financial_indexes(symbols=['شاخص بازده نقدي قيمت'
      [2](vscode-notebook-cell:?execution_count=17&line=2) ],  write_to_csv=True, include_jdate=True)

File c:\Users\lenovo\miniconda3\envs\moonenv\lib\site-packages\pytse_client\download.py:321, in download_financial_indexes(symbols, write_to_csv, include_jdate, base_path)
    [319](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:319) symbol = future_to_symbol[future]
    [320](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:320) try:
--> [321](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:321)     df: pd.DataFrame = future.result()
    [322](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:322) except pd.errors.EmptyDataError as ex:
    [323](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:323)     logger.error(
    [324](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:324)         f"Cannot read daily trade records for symbol: {symbol}",
    [325](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:325)         extra={"Error": ex},
    [326](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:326)     )

File c:\Users\lenovo\miniconda3\envs\moonenv\lib\concurrent\futures\_base.py:439, in Future.result(self, timeout)
    [437](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/concurrent/futures/_base.py:437)     raise CancelledError()
    [438](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/concurrent/futures/_base.py:438) elif self._state == FINISHED:
--> [439](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/concurrent/futures/_base.py:439)     return self.__get_result()
    [441](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/concurrent/futures/_base.py:441) self._condition.wait(timeout)
    [443](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/concurrent/futures/_base.py:443) if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:

File c:\Users\lenovo\miniconda3\envs\moonenv\lib\concurrent\futures\_base.py:391, in Future.__get_result(self)
    [389](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/concurrent/futures/_base.py:389) if self._exception:
...
    [282](file:///C:/Users/lenovo/miniconda3/envs/moonenv/lib/site-packages/pytse_client/download.py:282) return df
@mrdm92 mrdm92 added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant