investpy icon indicating copy to clipboard operation
investpy copied to clipboard

Singapore Index Futures (SGX Nifty 50 Futures) data

Open srinivasakumar-a opened this issue 2 years ago • 1 comments

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)

srinivasakumar-a avatar Dec 15 '21 16:12 srinivasakumar-a

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

bitcloudx avatar Dec 19 '21 16:12 bitcloudx