Skip to content

Commit

Permalink
πŸ”€ Merge pull request #55 from alvarobartt/url-patch
Browse files Browse the repository at this point in the history
πŸš‘οΈ Fix URL to point `tvc6.investing.com` as `tvc4` is blocked
  • Loading branch information
alvarobartt committed Oct 18, 2022
2 parents 693376b + f3ae49b commit 9939231
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ available at Investing.com goes from 1 minute to monthly data.

`investpy` uses Investing.com's APIs at https://www.investing.com/instruments/HistoricalDataAjax and at
https://api.investing.com/api/financialdata/historical, that are Cloudflare protected and not working any more,
as you'll end up getting blocked with 403 Forbidden HTTP code; while `investiny` is using https://tvc4.investing.com/,
as you'll end up getting blocked with 403 Forbidden HTTP code; while `investiny` is using https://tvc6.investing.com/,
which seems to be more reliable right now according to the ran tests, as well as providing intraday data.

| | Intraday Data | Any Range Historical Data | Search Assets/Quotes | Dividends | Economic Calendar | Technical Indicators | Economic News |
Expand Down
2 changes: 1 addition & 1 deletion docs/differences-with-investpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ available at Investing.com goes from 1 minute to monthly data.

`investpy` uses Investing.com's APIs at https://www.investing.com/instruments/HistoricalDataAjax and at
https://api.investing.com/api/financialdata/historical, that are Cloudflare protected and not working any more,
as you'll end up getting blocked with 403 Forbidden HTTP code; while `investiny` is using https://tvc4.investing.com/,
as you'll end up getting blocked with 403 Forbidden HTTP code; while `investiny` is using https://tvc6.investing.com/,
which seems to be more reliable right now according to the ran tests, as well as providing intraday data.

| | Intraday Data | Any Range Historical Data | Search Assets/Quotes | Dividends | Economic Calendar | Technical Indicators | Economic News |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "investiny"
version = "0.7.1"
version = "0.7.2"
packages = [
{ include = "investiny", from = "src" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/investiny/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""`investiny `: `investpy` but made tiny."""

__author__ = "Alvaro Bartolome, alvarobartt @ GitHub"
__version__ = "0.7.1"
__version__ = "0.7.2"

from investiny.historical import historical_data # noqa: F401
from investiny.info import info # noqa: F401
Expand Down
2 changes: 1 addition & 1 deletion src/investiny/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def request_to_investing(
Returns:
A dictionary with the response from Investing.com API.
"""
url = f"https://tvc4.investing.com/{uuid4().hex}/0/0/0/0/{endpoint}"
url = f"https://tvc6.investing.com/{uuid4().hex}/0/0/0/0/{endpoint}"
headers = {
"User-Agent": (
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like"
Expand Down

0 comments on commit 9939231

Please sign in to comment.