Commit graph

119 commits

Author SHA1 Message Date
Chris Berkhout
2d2b80da49 README: more usage information. 2021-07-01 14:02:00 +02:00
Chris Berkhout
ba67ef310f README update. 2021-07-01 13:56:39 +02:00
Chris Berkhout
98355efbc3 Normalize symbols (to upper case). Output symbols returned by coinmarketcap. 2021-06-17 13:42:06 +02:00
Chris Berkhout
0927e27939 Error handling for end date before start date. 2021-06-12 16:10:50 +02:00
Chris Berkhout
7d473c7dba Clean up output comments. 2021-06-11 23:02:59 +02:00
Chris Berkhout
03386e9093 Documentation for the GnuCash SQL output. 2021-06-04 21:58:08 +02:00
Chris Berkhout
7dee55fa17 Tidy up. 2021-06-04 21:57:40 +02:00
Chris Berkhout
2f3578c989 Give version numbers without a 'v'. 2021-06-04 21:57:13 +02:00
Chris Berkhout
ea4cc7ebe7 Don't warn about missing only today's price. 2021-06-04 13:00:39 +02:00
Chris Berkhout
782db67195 Bump version. 2021-06-03 10:42:19 +02:00
Chris Berkhout
abc97b9ec1 Tidy for publishing. 2021-06-03 10:39:10 +02:00
Chris Berkhout
b401bb7621 Note if using default start time. 2021-06-03 10:02:41 +02:00
Chris Berkhout
af297824a6 alphavantage: request compact data if full data isn't needed. 2021-06-02 22:49:54 +02:00
Chris Berkhout
ee8bf69dbe Add note about Alpha Vantage rate limit. 2021-06-02 22:28:51 +02:00
Chris Berkhout
cf429a1ce2 Support Alpha Vantage. 2021-06-02 22:13:43 +02:00
Chris Berkhout
fddf41e23e README: 'at least for now'. 2021-06-02 09:32:41 +02:00
Chris Berkhout
cfb23da31f Update README for new --verbose option. 2021-06-01 21:10:22 +02:00
Chris Berkhout
1d605520a1 Note yahoo source in the README. 2021-06-01 19:19:51 +02:00
Chris Berkhout
d26c9e5d59 Show INFO messages by default and have one option for more: --verbose. 2021-06-01 19:17:42 +02:00
Chris Berkhout
e05cc1656c Fix logger to follow "No % formatting operation is performed on msg when no args are supplied.". 2021-06-01 19:09:39 +02:00
Chris Berkhout
10982b72d4 Add support for Yahoo! Finance. 2021-06-01 19:04:27 +02:00
Chris Berkhout
925ed42b86 Don't print a blank line for ledger or beancount when there are no prices. 2021-05-31 18:59:38 +02:00
Chris Berkhout
5fdbb480e7 Generate valid GnuCash SQL by not inserting values if there are none. 2021-05-31 18:50:48 +02:00
Chris Berkhout
82c4f45ce0 Check that price numbers aren't too big for GnuCash. 2021-05-31 18:49:42 +02:00
Chris Berkhout
303f5d379a Don't use string manipulation to produce rational numbers. 2021-05-31 17:00:02 +02:00
Chris Berkhout
9996354108 Tidy logging. 2021-05-31 15:10:15 +02:00
Chris Berkhout
229ea109ef Do proper SQL escaping and warn about bad values. 2021-05-31 12:19:57 +02:00
Chris Berkhout
71ed878c2a Tidy. 2021-05-30 15:50:48 +02:00
Chris Berkhout
758d02db8e Tidy comment. 2021-05-30 14:36:08 +02:00
Chris Berkhout
a5346c7796 Extract helper method. 2021-05-30 14:27:13 +02:00
Chris Berkhout
384817ba6e Warn if the requested date range isn't covered. 2021-05-30 14:22:08 +02:00
Chris Berkhout
249d426f9f Generate CSV with the correct escaping. 2021-05-29 22:12:36 +02:00
Chris Berkhout
2c3805e4b0 More tidy. 2021-05-28 22:27:17 +02:00
Chris Berkhout
569935a5e6 Tidy date handling. 2021-05-28 22:11:45 +02:00
Chris Berkhout
0eac8abea3 Improve pair parsing and validation. 2021-05-28 21:50:11 +02:00
Chris Berkhout
46d77e4192 Validate price type. 2021-05-28 21:25:42 +02:00
Chris Berkhout
5d18218588 Misc. 2021-05-28 18:30:41 +02:00
Chris Berkhout
52bfe6928f Rename to Format.fromargs(). 2021-05-28 18:15:56 +02:00
Chris Berkhout
c1c2ab39c2 Extract sources and source from cli. 2021-05-28 18:13:07 +02:00
Chris Berkhout
e27e78d47a Extract fetch from cli, etc. 2021-05-28 17:39:39 +02:00
Chris Berkhout
96970f736c sources and symbols listing has a formatting helper. 2021-05-27 22:41:09 +02:00
Chris Berkhout
a609a2b8c3 Actually, output help to stderr, as argparse itself does. 2021-05-27 20:15:01 +02:00
Chris Berkhout
9c64767ed1 Don't print directly to stdout. 2021-05-27 20:00:29 +02:00
Chris Berkhout
59a17a9896 Extract Format#format_date from outputs. 2021-05-27 19:11:46 +02:00
Chris Berkhout
b26b3494d0 Extract Format#format_quote_amount. 2021-05-27 19:07:56 +02:00
Chris Berkhout
8060c92092 Extract amount formatting to Format. 2021-05-27 18:59:38 +02:00
Chris Berkhout
eca33a3bf6 Handle BrokenPipeError gracefully. 2021-05-27 18:47:42 +02:00
Chris Berkhout
81a723b285 Quantize after invert, not in outputs or formatter. 2021-05-27 18:36:26 +02:00
Chris Berkhout
83e3ebc599 Formatting defaults in help messages come from Format(). 2021-05-27 17:29:58 +02:00
Chris Berkhout
c4df91d066 Log requests as curls. 2021-05-27 16:31:05 +02:00