-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.yaml
114 lines (100 loc) · 2.56 KB
/
package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
name:
hledger-stockquotes
version:
0.1.3.1
github:
prikhi/hledger-stockquotes
homepage:
https://github.com/prikhi/hledger-stockquotes#readme
license:
BSD3
license-file:
LICENSE
author:
Pavan Rikhi
maintainer:
copyright:
2020 Pavan Rikhi
category:
Finance, Console
extra-source-files:
- README.md
- CHANGELOG.md
synopsis:
Generate HLedger Price Directives From Daily Stock Quotes.
description: |
@hledger-stockquotes@ is an addon for <https://hledger.org/ hledger> that
reads your journal file, pulls the historical stock prices for commodities,
and writes out a new journal file containing the respective price
directives.
The <https://www.alphavantage.co/ AlphaVantage API> is used to fetch the
stock quotes and you will need a
<https://www.alphavantage.co/support/#api-key free API key> to use this
program.
You can install @hledger-stockquotes@ with Stack: @stack install --resolver
nightly hledger-stockquotes@. Then run @hledger-stockquotes --help@ to see
the usage instructions & all available options.
ghc-options:
- -Wall
- -Wcompat
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wredundant-constraints
- -O2
dependencies:
- base >= 4.7 && < 5
library:
source-dirs:
src
dependencies:
- aeson >= 1 && < 3
- bytestring < 1
- containers < 1
- hledger-lib >= 1.26 && < 2
- req >= 3 && < 4
- safe >= 0.3.5 && < 1
- scientific < 1
- split < 1
- text < 3
- time < 2
- unordered-containers < 0.3
executables:
hledger-stockquotes:
source-dirs:
app
main:
Main.hs
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts "-N -T"
dependencies:
- hledger-stockquotes
- aeson >= 1 && < 3
- bytestring < 1
- cmdargs >= 0.6 && < 1
- containers < 1
- directory < 2
- raw-strings-qq < 2
- safe-exceptions
- text < 3
- time < 2
- xdg-basedir < 1
- yaml < 1
tests:
hledger-stockquotes-test:
main: Spec.hs
source-dirs:
tests
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts "-N -T"
dependencies:
- hledger-stockquotes
- hedgehog
- tasty
- tasty-hedgehog
- tasty-hunit