alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 375 forks source link

how to extract technical indicators of spot gold and silver prices #441

Open kamarani1989 opened 2 years ago

kamarani1989 commented 2 years ago

import investpy as i i.technical_indicators(name='gold',country='United States',product_type='commodity',interval='daily') is throwing a errror of introduced name does not exist in the introduced country (if required). pls guide how to get the moving averages and pivot of gold and silver spot

alvarobartt commented 2 years ago

Hi @kamarani1989, currently instead of using that function you could use investpy.search_quotes and then based on the result you get whenever you look for Gold in the United States, you are able to search_result.retrieve_technical_indicators() and that should work like charm! :hugs:

Let me know if you have any doubt on how to prepare that code, if not just close the issue, but if you need extra help feel free to ask me! :+1: