https://github.com/lucazulian/cryptocomparego
Cryptocompare Golang API client
https://github.com/lucazulian/cryptocomparego
api cryptocompare cryptocompare-api go golang
Last synced: 10 months ago
JSON representation
Cryptocompare Golang API client
- Host: GitHub
- URL: https://github.com/lucazulian/cryptocomparego
- Owner: lucazulian
- License: mit
- Archived: true
- Created: 2017-11-21T13:20:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T14:31:48.000Z (almost 7 years ago)
- Last Synced: 2024-08-04T10:01:05.275Z (over 1 year ago)
- Topics: api, cryptocompare, cryptocompare-api, go, golang
- Language: Go
- Homepage:
- Size: 65.4 KB
- Stars: 15
- Watchers: 5
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/lucazulian/cryptocomparego)
[](https://opensource.org/licenses/MIT)
[](http://godoc.org/github.com/lucazulian/cryptocomparego)
[](https://goreportcard.com/report/github.com/lucazulian/cryptocomparego)
[](https://coveralls.io/github/lucazulian/cryptocomparego?branch=master)
[](http://isitmaintained.com/project/lucazulian/cryptocomparego "Average time to resolve an issue")
[](http://isitmaintained.com/project/lucazulian/cryptocomparego "Percentage of issues still open")
# Cryptocomparego
Cryptocomparego is a Golang client library for accessing the Cryptocompare API.
You can view the client API docs here: [http://godoc.org/github.com/lucazulian/cryptocomparego](http://godoc.org/github.com/lucazulian/cryptocomparego)
You can view Cryptocompare API docs here: [https://www.cryptocompare.com/api/](https://www.cryptocompare.com/api/)
## Usage
```go
import "github.com/lucazulian/cryptocomparego"
```
## Examples
To get general info for all the coins available:
```go
ctx := context.TODO()
client := cryptocomparego.NewClient(nil)
coinList, _, err := client.Coin.List(ctx)
if err != nil {
fmt.Printf("Something bad happened: %s\n", err)
return err
}
```
## Contributing
We love pull requests! Please see the [contribution guidelines](CONTRIBUTING.md).