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

تغییر آدرس سایت tsetmc #205

Open
Glyphack opened this issue May 23, 2023 · 8 comments
Open

تغییر آدرس سایت tsetmc #205

Glyphack opened this issue May 23, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@Glyphack
Copy link
Owner

آدرس سایت بورس تغییر داشته و به
old.tsetmc.com

جابجا شده. فعلا برای حل این مشکل میشه آدرس هارو توی پکیج آپدیت کرد تا ببینیم سایت در نهایت قراره روی چه آدرسی باشه.

@Glyphack Glyphack added the bug Something isn't working label May 23, 2023
@sfmqrb
Copy link
Collaborator

sfmqrb commented May 27, 2023

فکر کنم ورژن old.* نگه خواهند داشت
برای fipiran هم اتفاق مشابه سابقا افتاده
می تونیم فعلا پی آر دوستمون رو اکسپت کنیم

@lovelyroz
Copy link

با آپدیت آدرس ها هم کار نمیکنه

@Glyphack
Copy link
Owner Author

Glyphack commented Jun 2, 2023

@lovelyroz
این ورژن رو نصب کنید
pip install pytse-client==0.15.1a1

@babak618
Copy link

برای دریافت اطلاعات لحظه ای آدرس http://members.tsetmc.com/tsev2/data/MarketWatchPlus.aspx?d=0 قابل استفاده هست
مشکل اصل برای من دریافت ااطلاعات تغییر سهامداران عمده هستش !
چه کار باید کرد؟؟

@lovelyroz
Copy link

lovelyroz commented Jun 12, 2023

@lovelyroz این ورژن رو نصب کنید pip install pytse-client==0.15.1a1

این ورژن رو نصب کردم. همه ماژول ها درست کار میکنن بجز ماژول دانلود تاریخچه
ارور زیر رو میده:
RuntimeError: asyncio.run() cannot be called from a running event loop

@Glyphack
Copy link
Owner Author

@ram1nsamad
Copy link

نصب شد ولی وقتی دستور
records = download_client_types_records('KHODARO', include_jdate=True)
print(records)
***خودرو به فارسی نوشتم اینجا برای نمایش بهتر فینگلیش زدم
نتیجش یک دیکشنری خالیه :
could not download client types for all the symbols make
sure you have what you need or re-run the function
{}
ممنون میشم راهنمایی کنید

@ram1nsamad
Copy link

گاهی این ارور هم میده

File "C:\Users\Ramin\PycharmProjects\pythonProject\main.py", line 3, in
records = download_client_types_records('خودرو', include_jdate=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\pytse_client\download.py", line 376, in download_client_types_records
df: pd.DataFrame = future.result()
^^^^^^^^^^^^^^^
File "C:\Users\Ramin\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures_base.py", line 401, in get_result
raise self.exception
File "C:\Users\Ramin\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\tenacity_init
.py", line 339, in wrapped_f
return self(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\tenacity_init
.py", line 430, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\tenacity_init
.py", line 367, in iter
return fut.result()
^^^^^^^^^^^^
File "C:\Users\Ramin\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures_base.py", line 401, in __get_result
raise self.exception
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\tenacity_init
.py", line 433, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\pytse_client\download.py", line 408, in download_ticker_client_types_record
client_types_data_frame = pd.DataFrame(
^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\pandas\core\frame.py", line 782, in init
arrays, columns, index = nested_data_to_arrays(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\pandas\core\internals\construction.py", line 498, in nested_data_to_arrays
arrays, columns = to_arrays(data, columns, dtype=dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\pandas\core\internals\construction.py", line 840, in to_arrays
content, columns = _finalize_columns_and_data(arr, columns, dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ramin\PycharmProjects\pythonProject\venv\Lib\site-packages\pandas\core\internals\construction.py", line 937, in _finalize_columns_and_data
raise ValueError(err) from err
ValueError: 13 columns passed, passed data had 23 columns

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

5 participants