Package: investiny
🤏🏻investinyisinvestpybut made tinyinvestinyis faster, lighter, and easier to usethaninvestpy.investinyhas been created due to the latest Investing.com changes in their API protection protocols, as
now their main APIs are Cloudflare V2 protected. Anyway, there are still some APIs working fine, so this package
has been created as a temporary replacement forinvestpywhile we get to an agreement to continue the development
ofinvestpy. In the meantime, anyone can useinvestinyas I'm actively working on it, and ideally, it should support
most of the functionality provided byinvestpy.🤔 What are the differences withinvestpy?investinyis faster, lighter and easier to use, but with reduced functionality for the moment.investinylets you retrieve historical data from Investing.com throughhistorical_dataand search any available asset
throughsearch_assets, whileinvestpyoffers more functions to also retrieve technical indicators, economic
calendars, dividends, etc. but those will come at some point toinvestinytoo.investinyintroduces intraday data, so the specified intervals when retrieving historical data for any asset
available at Investing.com goes from 1 minute to monthly data.investpyuses Investing.com's APIs athttps://www.investing.com/instruments/HistoricalDataAjaxand athttps://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; whileinvestinyis usinghttps://tvc6.investing.com/,
which seems to be more reliable right now according to the ran tests, as well as providing intraday data.Intraday DataAny Range Historical DataSearch Assets/QuotesDividendsEconomic CalendarTechnical IndicatorsEconomic Newsinvestiny✅✅✅❌❌❌❌investpy❌✅✅✅✅✅✅🛠️ Installationinvestinyrequires Python 3.8+ and can be installed withpipas it follows:pip install investiny💻 UsageRetrieve historical data from Investing.com using the Investing.com ID of the asset
that you want to retrieve the data from.frominvestinyimporthistorical_datadata=historical_data(investing_id=6408,from_date="09/01/2022",to_date="10/01/2022")# Returns AAPL historical data as JSON (without date)There's also a function to look for assets in Investing.com, that also lets you retrieve
the Investing.com ID that you can, later on, use inhistorical_dataas an input parameter.frominvestinyimportsearch_assetsresults=search_assets(query="AAPL",limit=1,type="Stock",exchange="NASDAQ")# Returns a list with all the results found in Investing.comAssearch_assetsreturns a list of results, you can check each of them, retrieve thetickerfrom the
asset that you want to retrieve historical data from and pass it as a parameter tohistorical_data. So on, the
combination of both functions should look like the following:frominvestinyimporthistorical_data,search_assetssearch_results=search_assets(query="AAPL",limit=1,type="Stock",exchange="NASDAQ")investing_id=int(search_results[0]["ticker"])# Assuming the first entry is the desired one (top result in Investing.com)data=historical_data(investing_id=investing_id,from_date="09/01/2022",to_date="10/01/2022")⚠️ DisclaimerInvesting.com is a registered trademark of Investing.com, and its services are offered by Fusion Media Limited.Neitherinvestpynorinvestinyis affiliated, endorsed, or vetted by Investing.com.Bothinvestpyandinvestinyare open-source packages that use Investing.com's available data, intended for research and educational purposes only.You should refer to Investing.com's terms and conditions athttps://www.investing.com/about-us/terms-and-conditionsfor details on your rights to use the actual data, as it is intended for personal use only.