getquote

108 views
Skip to first unread message

Alen Šiljak

unread,
Apr 16, 2019, 3:26:36 AM4/16/19
to Ledger
I see in documentation that getquote script gets called for the download of prices. I have a few questions (answering which might be helpful and put on the wiki):

- where is the script expected to be? I guess anywhere in the console path but need a confirmation.
- what is the return format expected? What should this script return?
- are the prices saved into the price database file?

I have a Python library that downloads prices (who doesn't) - https://github.com/MisterY/finance-quote-python in combination with https://github.com/MisterY/price-database. It is a CLI. If I create a script (shell, batch, depending on the platform) which invokes this, and name it getquote, it should work, right? If so, I might add a parameter that adjusts the output to whatever ledger expects.
In fact, I have a whole small ecosystem that pretty much matches what ledger ecosystem is doing. Now that I see there are parallels to almost every piece, I would like to migrate, adapt the tools, and pool the efforts.

And, of course, I have to thank everyone involved for putting all the good ideas together and providing such an accessible and  customizable set of tools.

Alen Šiljak

unread,
Apr 16, 2019, 3:27:33 AM4/16/19
to Ledger
If not, it makes sense to have the custom scripts write to the price database before running the reports, of course.

Alen Šiljak

unread,
Apr 16, 2019, 4:57:32 PM4/16/19
to Ledger
Just FYI, this question was removed as off-topic on money.stackexchange.com. I take it this forum is the only viable place to get technical questions about ledger-cli answered?
Reply all
Reply to author
Forward
0 new messages