1
1
<div align =" center " >
2
- <h1><img alt="Stocks logo" src="https://github.com/octolibs/stocks/blob/main/stock.png" height="300" /><br />
3
- Go Stock Exchange Library
2
+ <h1><img alt="nyse-stocks logo" src="https://github.com/octolibs/nyse- stocks/blob/main/stock.png" height="300" /><br />
3
+ New York Stock Exchange (NYSE) Go Library
4
4
</h1>
5
5
6
- [ ![ Go Reference] ( https://pkg.go.dev/badge/octolibs/stocks.svg )] ( https://pkg.go.dev/github.com/octolibs/stocks ) [ ![ Go Version] ( https://img.shields.io/github/go-mod/go-version/octolibs/stocks )] ( https://go.dev/ ) [ ![ GoReportCard] ( https://goreportcard.com/badge/github.com/octolibs/stocks )] ( https://goreportcard.com/report/github.com/octolibs/stocks ) [ ![ CodeFactor] ( https://www.codefactor.io/repository/github/octolibs/stocks/badge )] ( https://www.codefactor.io/repository/github/octolibs/stocks ) [ ![ GitHub Workflow Status] ( https://img.shields.io/github/actions/workflow/status/octolibs/stocks/.github/workflows/go.yml )] ( https://github.com/octolibs/stocks/blob/main/.github/workflows/go.yml ) ![ Size] ( https://img.shields.io/github/languages/code-size/octolibs/stocks ) [ ![ Last Commit] ( https://img.shields.io/github/last-commit/octolibs/stocks )] ( https://github.com/octolibs/stocks/commits/main ) [ ![ License] ( https://img.shields.io/github/license/octolibs/stocks )] ( https://github.com/octolibs/stocks/blob/main/LICENSE )
6
+ [](https://pkg.go.dev/github.com/octolibs/nyse-stocks) [](https://go.dev/) [](https://goreportcard.com/report/github.com/octolibs/nyse-stocks) [](https://www.codefactor.io/repository/github/octolibs/nyse-stocks) [](https://github.com/octolibs/nyse-stocks/blob/main/.github/workflows/go.yml)  [](https://github.com/octolibs/nyse-stocks/commits/main) [](https://github.com/octolibs/nyse-stocks/blob/main/LICENSE)
7
7
8
8
</div >
9
9
<hr />
@@ -31,15 +31,15 @@ If you don't have `Go` installed, you can download it from [here](https://go.dev
31
31
Run the following command in the ` console ` , in the ` project directory ` , to install the library with ` go get `
32
32
33
33
``` plain
34
- go get github.com/octolibs/stocks
34
+ go get github.com/octolibs/nyse- stocks
35
35
```
36
36
37
37
### Importing
38
38
39
39
Add the import to your ` .go ` file
40
40
41
41
``` go
42
- import " github.com/octolibs/stocks"
42
+ import " github.com/octolibs/nyse- stocks"
43
43
```
44
44
45
45
## 💰 Usage
@@ -51,15 +51,15 @@ Add this to your `.go` file
51
51
``` go
52
52
// Parameter: Stock Symbol
53
53
// Returns: strings ex: `$123.45`, `1.23%`, `↑`
54
- price , percent , direction := stocks .GetPriceAndPercentage (" AAPL" )
54
+ price , percent , direction := nyse_stocks .GetPriceAndPercentage (" AAPL" )
55
55
```
56
56
57
57
### Get full stock details
58
58
59
59
``` go
60
60
// Parameter: Stock Symbol
61
61
// Returns `Result` struct
62
- stock := stocks .GetFullDetails (" AAPL" )
62
+ stock := nyse_stocks .GetFullDetails (" AAPL" )
63
63
```
64
64
65
65
### Result struct
@@ -130,8 +130,8 @@ request.
130
130
131
131
## ⚖️ License
132
132
133
- This project is under the MIT License. See the [ LICENSE] ( https://github.com/octolibs/stocks/blob/main/LICENSE ) file for the full license text.
133
+ This project is under the MIT License. See the [ LICENSE] ( https://github.com/octolibs/nyse- stocks/blob/main/LICENSE ) file for the full license text.
134
134
135
135
## 📜 Changes
136
136
137
- Check out our [ CHANGELOG] ( https://github.com/octolibs/stocks/blob/main/CHANGELOG.md )
137
+ Check out our [ CHANGELOG] ( https://github.com/octolibs/nyse- stocks/blob/main/CHANGELOG.md )
0 commit comments