{"repo":"prikhi/hledger-stockquotes","free":true,"listed":false,"github":"https://github.com/prikhi/hledger-stockquotes","clone":"git clone https://github.com/prikhi/hledger-stockquotes.git","description":"Generate an HLedger Journal Containing Daily Stock & Crypto Quotes for your Commodities","language":"Haskell","stars":25,"topics":["hledger","stock-prices","alpha-vantage","stock-quotes","api-client","ledger-cli","finance","quotes","cryptocurrencies","crypto-prices"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"hledger-stockquotes hledger-stockquotes is a CLI addon for hledger that reads a journal file and pulls the historical prices for commodities from AlphaVantage. To use this application, you'll need a free AlphaVantage API key. Usage hledger-stockquotes parses your journal file, determines what commodities are defined, and queries AlphaVantage for prices on the date range present in the journal file. By default, the program will use the HLedger default file location of /.hledger.journal . A LEDGER FILE environmental variable can be used to override the location. The -f flag can be used to override both the default and LEDGER FILE locations. At the bare minimum, you need to set an ALPHAVANTAGE KEY environmental variable or use the -a switch to specify your AlphaVantage key: This will print out price directive to a prices.journal file. Custom Output Files The output file can be set with the -o flag: NOTE: the contents of the output file will be overwritten if the file already exists! Excluding Commodities By default, we query AlphaVantage for all non-USD commodities included in your journal file. We do not currently support AlphaVantage's FOREX API route, so if you have those commodities, stockquotes will print an error when fetching them. You can exclude commodities by passing them as arguments to hledger-stockquotes : NOTE: hledger defines an AUTO commodity if you use the default commodity directive( D ). Cryptocurrencies You can specify a list of cryptocurrencies that you wish","default_branch":null,"files":null,"tree":[],"storefront":"/r/prikhi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prikhi/hledger-stockquotes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}