{"repo":"chrisberkhout/pricehist","free":true,"listed":false,"github":"https://github.com/chrisberkhout/pricehist","clone":"git clone https://github.com/chrisberkhout/pricehist.git","description":"A command-line tool for fetching and formatting historical price data, with support for multiple data sources and output formats.","language":"Python","stars":20,"topics":["financial-data","currency","finance","market-data"],"license":"MIT","category":"trading","readme_excerpt":"pricehist A command-line tool for fetching and formatting historical price data, with support for multiple data sources and output formats. Installation Install via pip or pipx. Sources - alphavantage : Alpha Vantage - bankofcanada : Bank of Canada daily exchange rates - coinbasepro : Coinbase Pro - coindesk : CoinDesk Bitcoin Price Index - coinmarketcap : CoinMarketCap - ecb : European Central Bank Euro foreign exchange reference rates - yahoo : Yahoo! Finance Output formats - beancount : Beancount - csv : Comma-separated values - json : JSON - jsonl : JSON lines - gnucash-sql : GnuCash SQL - ledger : Ledger and hledger Reactions This is my new favourite price fetcher, by far. -- Simon Michael, creator of hledger (ref) This is great! -- Martin Blais, creator of Beancount (ref) How to Fetch prices Fetch prices by choosing a source, a pair and, optionally, a time interval. The default output format is CSV, which is suitable for use in spreadsheets and with other tools. For example, you can generate a price chart from the command line as follows (or using an alias). Show usage information Add -h to any command to see usage information. Choose and customize the output format As the output format you can choose one of beancount , csv , json , jsonl , ledger or gnucash-sql . Formatting options let you control certain details of the output. Fetch new prices only You can update an existing file without refetching the prices you already have. First find the date of the last price, th","default_branch":null,"files":null,"tree":[],"storefront":"/r/chrisberkhout","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chrisberkhout/pricehist/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."}