[GNC] How to add price source to GnuCash - India National Pension Schemes NAV
Jour Maken <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gnucash.user |
|---|---|
| Message-ID | <SI2PR03MB543435C3E98F96B37F498287B2AD2@SI2PR03MB5434.apcprd03.prod.outlook.com> |
Dear All, National Pension Schemes of India publishes NAVs which can be accessed through their API available without subscription through the URL https://npsnav.in/api/<scheme_code>. A sample output (in terminal on Linux) is as follows: > divxxx@omxxx:~$ wget https://npsnav.in/api/SM001026 > --2026-08-27 09:52:37-- https://npsnav.in/api/SM001026 > Resolving npsnav.in (npsnav.in)... 2606:4700:3033::ac43:9d7e, > 2606:4700:3037::6815:3908, 172.67.157.126, ... > Connecting to npsnav.in (npsnav.in)|2606:4700:3033::ac43:9d7e|:443... > connected. > HTTP request sent, awaiting response... 200 OK > Length: unspecified [text/html] > Saving to: ‘SM001026’ > > SM001026 [ <=> ] 7 --.-KB/s > in 0s > > 2026-08-27 09:52:37 (1.41 MB/s) - ‘SM001026’ saved [7] > > divxxx@omxxx:~$ cat SM001026 > 46.7548 This works well in a LibreOffice Calc cell with the formula `NumberValue(WebService(<url>,".")` Details of the API and a web interface to try it out with various options are available at https://npsnav.in/api. Can this be added as a source of quotes in GnuCash with scheme code obtained from definition of the security? Best wishes, Div. _______________________________________________ gnucash-user mailing list [email protected] To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.