Commit graph

  • 52bfe6928f Rename to Format.fromargs(). Chris Berkhout 2021-05-28 18:15:56 +02:00
  • c1c2ab39c2 Extract sources and source from cli. Chris Berkhout 2021-05-28 18:13:07 +02:00
  • e27e78d47a Extract fetch from cli, etc. Chris Berkhout 2021-05-28 17:39:23 +02:00
  • 96970f736c sources and symbols listing has a formatting helper. Chris Berkhout 2021-05-27 22:41:09 +02:00
  • a609a2b8c3 Actually, output help to stderr, as argparse itself does. Chris Berkhout 2021-05-27 20:15:01 +02:00
  • 9c64767ed1 Don't print directly to stdout. Chris Berkhout 2021-05-27 20:00:29 +02:00
  • 59a17a9896 Extract Format#format_date from outputs. Chris Berkhout 2021-05-27 19:11:46 +02:00
  • b26b3494d0 Extract Format#format_quote_amount. Chris Berkhout 2021-05-27 19:07:56 +02:00
  • 8060c92092 Extract amount formatting to Format. Chris Berkhout 2021-05-27 18:59:38 +02:00
  • eca33a3bf6 Handle BrokenPipeError gracefully. Chris Berkhout 2021-05-27 18:47:42 +02:00
  • 81a723b285 Quantize after invert, not in outputs or formatter. Chris Berkhout 2021-05-27 18:36:26 +02:00
  • 83e3ebc599 Formatting defaults in help messages come from Format(). Chris Berkhout 2021-05-27 17:29:58 +02:00
  • c4df91d066 Log requests as curls. Chris Berkhout 2021-05-27 16:31:05 +02:00
  • 93ca00f5a5 Sources: extract http reqs from fetch method. Chris Berkhout 2021-05-27 15:13:05 +02:00
  • a91309678c Add abstract base classes for sources and outputs. Chris Berkhout 2021-05-27 13:32:48 +02:00
  • 660b7d709c Move invert and rename base/quote logic to Series. Chris Berkhout 2021-05-27 13:06:58 +02:00
  • 2c657307a8 Introduce series. Chris Berkhout 2021-05-27 12:47:12 +02:00
  • 06e0a32514 Switch from namedtuple to dataclass. Chris Berkhout 2021-05-25 17:42:42 +02:00
  • 03582cf52a Don't use static methods. Use name by_code instead of bycode. Chris Berkhout 2021-05-25 15:26:24 +02:00
  • 231be6e62c More README tweaks. Chris Berkhout 2021-05-25 12:57:44 +02:00
  • 024f16f9d5 Update README. Chris Berkhout 2021-05-25 12:52:25 +02:00
  • 9e5e0ef980 Set default price type names for coindesk and ecb. Chris Berkhout 2021-05-25 12:51:53 +02:00
  • e714c37e1f Source object and price type are available during output generation and used. Chris Berkhout 2021-05-25 12:09:03 +02:00
  • 03ea7664c5 Source start dates are soft limits. Chris Berkhout 2021-05-25 11:40:12 +02:00
  • a703b83b00 Add logging. Chris Berkhout 2021-05-25 11:13:34 +02:00
  • 66ff045f42 Start date is optional. Chris Berkhout 2021-05-24 21:34:51 +02:00
  • f69ecf8adb Sources define a start date and price types. Chris Berkhout 2021-05-24 21:26:39 +02:00
  • d0cad8d650 Format imports. Chris Berkhout 2021-05-24 20:52:22 +02:00
  • f6dceece07 Fix ECB source to get data from before 90 days ago. Chris Berkhout 2021-05-24 20:52:10 +02:00
  • 80edd6fa02 Use ISO currency names in ECB --symbols output. Chris Berkhout 2021-05-24 20:51:32 +02:00
  • d26ba68f2c Don't bother memoizing ISO data yet. Chris Berkhout 2021-05-24 20:49:50 +02:00
  • 45a1e1b0df Add ISO 4217 data. Chris Berkhout 2021-05-24 20:44:14 +02:00
  • 4a4ce94bc6 List symbols for coinmarketcap. Cleanups. Chris Berkhout 2021-05-19 12:45:17 +02:00
  • 07a96c9a76 List symbols for coindesk. Chris Berkhout 2021-05-05 17:44:48 +02:00
  • 0b2b076d61 Add --symbols option, implement for ECB. Chris Berkhout 2021-05-04 17:58:16 +02:00
  • 89cf36c357 Don't bother using XML namespaces for ECB data. Chris Berkhout 2021-05-04 17:25:42 +02:00
  • cce33beead Switch from xml.etree to lxml and cssselect. Chris Berkhout 2021-05-04 16:39:47 +02:00
  • 85205eaba9 Improve source info printing, add notes field. Chris Berkhout 2021-05-04 13:53:51 +02:00
  • 02ab5212b9 Implement types. Chris Berkhout 2021-05-03 12:55:59 +02:00
  • 4c8b739c0c Add --endx option, tidy up options. Add --type option. Chris Berkhout 2021-05-03 11:42:43 +02:00
  • 58d37463c6 Make a Format dataclass, add --quantize option. Chris Berkhout 2021-04-26 13:43:05 +02:00
  • ec7df02391 Add --format-decimal --format-thousands --format-symbol and --format-datesep. Chris Berkhout 2021-04-26 10:57:21 +02:00
  • be039d7ad8 Add --invert option. Chris Berkhout 2021-04-25 13:31:56 +02:00
  • f5e6e01298 --rename-base, --rename-quote and --rename-time options. Chris Berkhout 2021-04-25 13:15:31 +02:00
  • df9d0aeb85 Added --version option. Chris Berkhout 2021-04-25 11:40:02 +02:00
  • f0c7b5a8f3 Pair is a positional argument. Chris Berkhout 2021-04-25 11:27:33 +02:00
  • a7c3eaf586 Basic README. Chris Berkhout 2021-04-24 23:02:23 +02:00
  • 417bdfcf84 Fix line terminations. Chris Berkhout 2021-04-24 23:02:09 +02:00
  • 22ebdb151d Don't track vim settings in git. Chris Berkhout 2021-04-23 07:52:25 +02:00
  • c9e95ca322 Extract SQL to a template file. Chris Berkhout 2021-04-22 13:23:06 +02:00
  • 2371ceda11 After running flake8. Chris Berkhout 2021-04-20 20:51:40 +02:00
  • b496ccb644 After running isort. Chris Berkhout 2021-04-20 19:58:48 +02:00
  • d2416ebb0c After running Black. Chris Berkhout 2021-04-20 19:54:01 +02:00
  • 4f9353013e Add Black, isort and flake8. Chris Berkhout 2021-04-20 19:59:31 +02:00
  • 64d7591a65 Use correct date formatting for ledger output. Chris Berkhout 2021-04-20 12:40:02 +02:00
  • 13c7f04d97 GnuCash SQL output. Chris Berkhout 2021-04-20 10:38:37 +02:00
  • e21ab51d7d Add CoinMarketCap source. Chris Berkhout 2021-04-17 18:14:20 +02:00
  • e40e0029eb Remove ISO 4217 data. Chris Berkhout 2021-04-17 17:30:20 +02:00
  • c6ce4a846b Add ISO 4217 data. Chris Berkhout 2021-04-17 17:30:05 +02:00
  • 4bdfbcaa0a Add beancount output and tidy up output option. Chris Berkhout 2021-04-17 17:29:40 +02:00
  • 55243bc093 Initial output formats. Chris Berkhout 2021-04-17 16:53:03 +02:00
  • ae69b9ec4e Rename sources files and reutrn Price objects. Chris Berkhout 2021-04-17 16:51:24 +02:00
  • 37d527913b Add Price object. Chris Berkhout 2021-04-17 16:51:37 +02:00
  • 6595b9bd72 Basic version ECB source. Chris Berkhout 2021-04-15 21:00:25 +02:00
  • 94ef73439b CoinDesk fetch. Chris Berkhout 2021-04-13 22:30:33 +02:00
  • 7cf91f1332 Invoke fetch. Chris Berkhout 2021-04-13 22:29:59 +02:00
  • 7cb02d45e4 Add --pair argument. Chris Berkhout 2021-04-13 21:45:34 +02:00
  • f1a1869e35 Add fetch command with start and end dates. Chris Berkhout 2021-04-12 22:03:29 +02:00
  • bed7db7ee7 Remove CoinMarketCap, add CoinDesk, add bases and quotes. Chris Berkhout 2021-04-12 17:58:54 +02:00
  • 2841d5b8f1 Add source description and source_url. Chris Berkhout 2021-04-12 17:33:12 +02:00
  • 2e6265e321 Basic sources and source commands. Chris Berkhout 2021-04-11 17:51:15 +02:00
  • a1118db739 argparse stuff Chris Berkhout 2021-02-28 22:21:01 +01:00
  • a0ac1252ae With CLI and script config. Chris Berkhout 2021-02-28 17:33:01 +01:00
  • 7543eedb23 Rename and switch to poetry. Chris Berkhout 2021-02-28 15:21:56 +01:00
  • a0dc7b2540 Rename from pricedb-pull to pricedbget. Chris Berkhout 2018-08-25 17:11:55 +02:00
  • 79cd5bb71a Add some make targets. Chris Berkhout 2018-08-25 17:10:35 +02:00
  • 9320d056d9 Update python. Chris Berkhout 2018-08-25 17:10:29 +02:00
  • 74c6776822 More stuff. Chris Berkhout 2018-05-27 17:34:38 +02:00
  • 79d38e9a1f Testing stuff. Chris Berkhout 2018-05-27 17:08:15 +02:00
  • 664729f914 Add some basics. Chris Berkhout 2018-05-27 17:04:25 +02:00
  • 638d199af8
    Add MIT LICENSE Chris Berkhout 2018-05-27 17:25:54 +02:00
  • b21dc66d26 Initial commit. Chris Berkhout 2018-05-27 14:58:53 +02:00