You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for amazing library
In this library can we specify date to get data for specific time period?
Such as NAV for specific fund from 2020/1/1 to 2023/1/1.
The text was updated successfully, but these errors were encountered:
Hi!
As far as I know fipiran website does not provide any way to specify a time period for fetching history (if you know otherwise, please let me know how it is done and I will try to implement it), but you can use Fund.issue_cancel_history to fetch the full NAV history of a fund and then filter the result for a specific time period.
Here is a sample script that plots the NAV history of آساس fund for the given period:
fromasyncioimportrunfromfipiran.fundsimportFundfrommatplotlibimportpyplotaspltasyncdefmain():
# You can find fund's regNo using `fipiran.funds.funds()` function or from fipiran's websitefund=Fund(11195) # آساسhist_df=awaitfund.issue_cancel_history()
hist_df.sort_index(inplace=True)
cancel_nav=hist_df['2020-01-01':'2023-01-01']['cancelNav']
cancel_nav.plot()
plt.show()
run(main())
Hi, thanks for amazing library
In this library can we specify date to get data for specific time period?
Such as NAV for specific fund from 2020/1/1 to 2023/1/1.
The text was updated successfully, but these errors were encountered: