From 42b359507cccb712687c2b0e9dd7eaef9fa4ea1f Mon Sep 17 00:00:00 2001 From: Mahdi Sadeghi Date: Fri, 9 Dec 2022 14:56:05 +0330 Subject: [PATCH] fix watch --- lib/tsetmc_api/market_watch/_core.py | 2 +- poetry.lock | 14 +++++++------- pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/tsetmc_api/market_watch/_core.py b/lib/tsetmc_api/market_watch/_core.py index 3c909f3..3f3104a 100644 --- a/lib/tsetmc_api/market_watch/_core.py +++ b/lib/tsetmc_api/market_watch/_core.py @@ -121,7 +121,7 @@ def get_watch_price_data(refid: int = 0, heven: int = 0) -> tuple[dict, int, int]: response = requests.get( - url='http://members.tsetmc.com/tsev2/data/MarketWatchInit.aspx', + url='http://www.tsetmc.com/tsev2/data/MarketWatchPlus.aspx', params={ 'h': heven, 'r': refid, diff --git a/poetry.lock b/poetry.lock index 67bb5ff..def2d91 100644 --- a/poetry.lock +++ b/poetry.lock @@ -15,7 +15,7 @@ lxml = ["lxml"] [[package]] name = "certifi" -version = "2022.9.24" +version = "2022.12.7" description = "Python package for providing Mozilla's CA Bundle." category = "main" optional = false @@ -140,11 +140,11 @@ python-versions = ">=3.7" [[package]] name = "urllib3" -version = "1.26.12" +version = "1.26.13" description = "HTTP library with thread-safe connection pooling, file post, and more." category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4" +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" [package.extras] brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"] @@ -162,8 +162,8 @@ beautifulsoup4 = [ {file = "beautifulsoup4-4.11.1.tar.gz", hash = "sha256:ad9aa55b65ef2808eb405f46cf74df7fcb7044d5cbc26487f96eb2ef2e436693"}, ] certifi = [ - {file = "certifi-2022.9.24-py3-none-any.whl", hash = "sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382"}, - {file = "certifi-2022.9.24.tar.gz", hash = "sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14"}, + {file = "certifi-2022.12.7-py3-none-any.whl", hash = "sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18"}, + {file = "certifi-2022.12.7.tar.gz", hash = "sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3"}, ] charset-normalizer = [ {file = "charset-normalizer-2.1.1.tar.gz", hash = "sha256:5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845"}, @@ -312,6 +312,6 @@ typing-extensions = [ {file = "typing_extensions-4.4.0.tar.gz", hash = "sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa"}, ] urllib3 = [ - {file = "urllib3-1.26.12-py2.py3-none-any.whl", hash = "sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997"}, - {file = "urllib3-1.26.12.tar.gz", hash = "sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e"}, + {file = "urllib3-1.26.13-py2.py3-none-any.whl", hash = "sha256:47cc05d99aaa09c9e72ed5809b60e7ba354e64b59c9c173ac3018642d8bb41fc"}, + {file = "urllib3-1.26.13.tar.gz", hash = "sha256:c083dd0dce68dbfbe1129d5271cb90f9447dea7d52097c6e0126120c521ddea8"}, ] diff --git a/pyproject.toml b/pyproject.toml index 59d8c6a..c50c128 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tsetmc-api" -version = "5.0.3" +version = "5.0.4" description = "simple package to communicate and crawl data from tsetmc.com (Tehran Stock Exchange Website)" license = "MIT" repository = "https://github.com/mahs4d/tsetmc-api"