You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10,19 +10,19 @@ Check out the [qtrn cli application][qtrn], which is intended as a living exampl
10
10
11
11
### Features
12
12
13
-
Description | Source
14
-
--- | ---
15
-
Quote(s) | Yahoo finance
16
-
Equity quote(s) | Yahoo finance
17
-
Index quote(s) | Yahoo finance
18
-
Option quote(s) | Yahoo finance
19
-
Forex pair quote(s) | Yahoo finance
20
-
Cryptocurrency pair quote(s) | Yahoo finance
21
-
Futures quote(s) | Yahoo finance
22
-
ETF quote(s) | Yahoo finance
23
-
Mutual fund quote(s) | Yahoo finance
24
-
Historical quotes | Yahoo finance
25
-
Options straddles | Yahoo finance
13
+
|Description | Source|
14
+
|----------------------------| ------------- |
15
+
|Quote(s) | Yahoo finance|
16
+
|Equity quote(s) | Yahoo finance|
17
+
|Index quote(s) | Yahoo finance|
18
+
|Option quote(s) | Yahoo finance|
19
+
|Forex pair quote(s) | Yahoo finance|
20
+
|Cryptocurrency pair quote(s) | Yahoo finance|
21
+
|Futures quote(s) | Yahoo finance|
22
+
|ETF quote(s) | Yahoo finance|
23
+
|Mutual fund quote(s) | Yahoo finance|
24
+
|Historical quotes | Yahoo finance|
25
+
|Options straddles | Yahoo finance|
26
26
27
27
## Documentation
28
28
@@ -35,18 +35,19 @@ For now, for details on all the functionality in this library, see the [GoDoc][g
35
35
This project supports modules and Go 1.13+. Add `finance-go` to your own project the usual way -
36
36
37
37
```sh
38
-
go get github.com/piquette/finance-go
38
+
go get github.com/TraderWithPython/finance-go
39
39
```
40
40
41
41
## Usage example
42
42
43
43
Library usage is meant to be very specific about the user's intentions.
44
44
45
45
### Quote
46
+
46
47
```go
47
48
q, err:= quote.Get("AAPL")
48
49
if err != nil {
49
-
// Uh-oh.
50
+
// Uh-oh.
50
51
panic(err)
51
52
}
52
53
@@ -55,10 +56,11 @@ fmt.Println(q)
55
56
```
56
57
57
58
### Equity quote (more fields)
59
+
58
60
```go
59
61
q, err:= equity.Get("AAPL")
60
62
if err != nil {
61
-
// Uh-oh.
63
+
// Uh-oh.
62
64
panic(err)
63
65
}
64
66
@@ -67,6 +69,7 @@ fmt.Println(q)
67
69
```
68
70
69
71
### Historical quotes (OHLCV)
72
+
70
73
```go
71
74
params:= &chart.Params{
72
75
Symbol: "TWTR",
@@ -99,9 +102,11 @@ The test suite needs testify's `require` package to run:
99
102
It also depends on a running instance of a test server [finance-mock], so make sure to fetch that project and run the application from another terminal session ([finance-mock's README][finance-mock] contains more information).
100
103
101
104
### Docker
105
+
102
106
```sh
103
107
docker run -p 12111:12111 piquette/finance-mock:latest
104
108
```
109
+
105
110
### Brew
106
111
107
112
brew tap piquette/finance-mock
@@ -129,13 +134,14 @@ For any requests, bug or comments, please [open an issue][issues] or [submit a
129
134
pull request][pulls]. Also please email or tweet me as needed.
130
135
131
136
## Notes
137
+
132
138
- Yahoo changes their finance APIs without warning, which is their right to do so. However, its annoying and leads to some instability in this project..
133
139
- Big shoutout to Stripe and the team working on the [stripe-go][stripe] project, I took a lot of library design / implementation hints from them.
0 commit comments