GnuCash uses Finance::Quote to get prices.
finance-quote/finance-quote: Finance::Quote module for Perl
<https://github.com/finance-quote/finance-quote>
You or someone else would need to write an F::Q module (or hack one of
the existing ones) to get prices from npsnav
Meanwhile it looks like getting prices into a spreadsheet and then
importing into to gnc via a CSV file is easily doable ... I'd count that
as a win.
P.S. I was initially confused by your use of "scheme code", I thought
you meant the language not the Ticker/ISIIN/equivalent.
Wm
On 2026-08-27 05:32, Jour Maken wrote:
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.
_______________________________________________
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.