investpy
investpy copied to clipboard
Singapore Index Futures (SGX Nifty 50 Futures) data
How to pull SGX Nifty 50 Futures data into python? I tried the below code:
investpy.get_index_historical_data(index='SGX Nifty 50 Futures',
country='singapore',
from_date=yesterday,
to_date=today)
You have to enter actual dates I believe. As for the proper index name you can find them all in the csv file here. Fair warning alot of them do not work and will rase a index error. https://github.com/alvarobartt/investpy/blob/master/investpy/resources/indices.csv