Replies: 2 comments 2 replies
-
Its there if you search for Iron Ore in investpy {"id_": 961729, "name": "Iron ore fines 62% Fe CFR Futures", "symbol": "TIOc1", "country": null, "tag": "/commodities/iron-ore-62-cfr-futures", "pair_type": "commodities", "exchange": "CME"} |
Beta Was this translation helpful? Give feedback.
-
In your first attempt you need to limit the results to 1 as there are two futures contracts one in Singapore and one in the US (CME). search_result = investpy.search_quotes(text='Iron Ore', products=['commodities'], countries=['United States'], n_results=1 then you can use historical_data = search_result.retrieve_historical_data(from_date='DD/MM/YY', to_date='DD/MM/YY') Seems that Iron Ore is not in the list of commodities that Investpy uses to check if its valid even though it appears on Investing.com under the 'Metals' group of commodities which is why trying to get it without using the search fails. Agree that it should use a symbol or Investing.com ID in addition to 'name' to get historical data. |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm currently extracting historical market data and investpy is very useful to me, but the commodity "Iron ore fines 62% Fe CFR Futures" doesn't seem to be available in investpy, I didn't find the historical data and the smybol in commodities list. Could anyone help me? Thanks. @alvarobartt
Beta Was this translation helpful? Give feedback.
All reactions