Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imthaghost/stockapi

Stock data Rest-ful API built in Go. Various endpoints regarding stock data scraped directly from Yahoo Finance. Use this for a quick start regarding stock data.
https://github.com/imthaghost/stockapi

api go golang restful-api yahoo-finance

Last synced: 15 days ago
JSON representation

Stock data Rest-ful API built in Go. Various endpoints regarding stock data scraped directly from Yahoo Finance. Use this for a quick start regarding stock data.

Awesome Lists containing this project

README

        


A Go Restful API that scrapes real-time stock data from Yahoo Finance.






## Table of Contents

- [Installation](#installation)
- [Examples](#examples)
- [License](#license)

## 🚀 Quick Start

### Installation

```sh
$ go get https://github.com/imthaghost/stockapi
```

### Instantiate API

Create `server.go`

```go

package main

import (

"github.com/imthaghost/stockapi/server"

)

func main() {

s := server.NewServer()
s.Start(":8000")

}

```

Start server

```sh
$ go run server.go
```

## Examples

![Postman](/docs/media/postman.gif)

## 📝 License

By contributing, you agree that your contributions will be licensed under its MIT License.

In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.