NayakwadiS / mftool

⚡ Python library for getting publically available Mutual Funds data in India
https://mftool.readthedocs.io
MIT License
168 stars 53 forks source link

add Index data as well? #4

Closed srbharadwaj closed 3 years ago

srbharadwaj commented 4 years ago

URL: https://www1.nseindia.com/products/dynaContent/equities/indices/total_returnindices.jsp?indexType={0}&fromDate={1}&toDate={2} {0} -> NIFTY 100, NIFTY 50 etc.. {1} -> from date {2} -> to date https://www1.nseindia.com/products/dynaContent/equities/indices/total_returnindices.jsp?indexType=NIFTY%2050&fromDate=21-04-2014&toDate=16-04-2015

Just one API - getHistoricNiftyData(index)

NayakwadiS commented 4 years ago

Is it correct way to add Nifty/Stock API in Mutual fund library ?

srbharadwaj commented 4 years ago

Yes i feel index is required if we want to compare mf with so an option is a good idea

NayakwadiS commented 4 years ago

OK we will add Nifty API, but site https://www1.nseindia.com will not available after Aug'20. Do we have any other way to get this data.

srbharadwaj commented 4 years ago

need to check let me know if the above link stops working

tarakbluru commented 4 years ago

Thanks @NayakwadiS for developing this and making it open source.

https://youtu.be/vQRLBGpCg9I might be helpful here.

I think eod data will definitely be available on NSE server. Only indices (sectoral and few broad based) would be good enough.

If possible, it would be great to convert the NAV prices into OHLC format (daily NAV prices converted to weekly/monthly ohlc).

Screen shot from define edge attached (for a MF).

define_ege

I understand mftools today is giving out basic quote (on the lines of nsetools). To get the best out of mftools, ohlc data would be highly useful. This is because there are no intraday players or swing (few days) players here. It is mostly weekly and monthly and for them ohlc would help a lot. That data can be taken either to Amibroker (etc..) or even processed using python finance tools.

Best regards,

tarakbluru commented 4 years ago

For scheme codes, link on the amfi would be better; link here for the documentation page.

tarakbluru commented 4 years ago

Along with the MF data, it would be helpful to have NIFTY P/E data (https://www1.nseindia.com/products/content/equities/indices/historical_pepb.htm).

NayakwadiS commented 3 years ago

Guys,

  1. To get Index data in very precise format there are other python packages available.
  2. Using scripts to get info or data from New NSE website is not permitted. here
  3. mftool is mean to get NAV's only. Data Analysis and Visualization are the part of personal projects.

Thanks

NayakwadiS commented 3 years ago

conversion of NAV to OHLC is somehow difficult but if would like you can check this