alvarobartt / investpy

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

Hello, I'm having trouble finding the daily Dolar Index Future #570

Open PPMNUTRA opened 2 years ago

PPMNUTRA commented 2 years ago

{"id_": 1182839, "name": "US Dollar Index Futures", "symbol": "DXc3", "country": "united states", "tag": "/currencies/us-dollar-index?cid=1182839", "pairtype": "fxfutures", "exchange": "ICE"} {"id": 1182838, "name": "US Dollar Index Futures", "symbol": "DXc2", "country": "united states", "tag": "/currencies/us-dollar-index?cid=1182838", "pairtype": "fxfutures", "exchange": "ICE"} {"id": 8827, "name": "US Dollar Index Futures", "symbol": "DX", "country": "united states", "tag": "/currencies/us-dollar-index", "pairtype": "fxfutures", "exchange": "ICE"} {"id": 942611, "name": "US Dollar Index", "symbol": "DXY", "country": "united states", "tag": "/indices/usdollar", "pair_type": "indices", "exchange": "NYSE"}

I found these future dollar indices. but when I try to get his data, I can't.

`

import investpy search_result = investpy.search_quotes(text='US Dollar Index Futures', products=['fxfutures'],countries=['united states'], n_results=1) recent_data = search_result.retrieve_recent_data() current_value = recent_data.iloc[-1]['Close'] print(current_value) 103.173 `

`

import investpy search_result = investpy.search_quotes(text='US Dollar Index', products=['indices'],countries=['united states'], n_results=1) recent_data = search_result.retrieve_recent_data() current_value = recent_data.iloc[-1]['Close'] print(current_value) 103.03 ` I tried using FXFUTURES and INDICES. And None returns the correct value.

but the Index I need, he can't find it. The index I need is below.

US Dollar Index Futures - Jun 22 (DXM2) 103.015 +0.264 +0.26% https://www.investing.com/currencies/us-dollar-index