mirror of https://github.com/miguelmota/cointop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69ef18e659 | 7 years ago | |
---|---|---|
.. | ||
example | 7 years ago | |
.gitignore | 7 years ago | |
.travis.yml | 7 years ago | |
Gopkg.lock | 7 years ago | |
Gopkg.toml | 7 years ago | |
LICENSE.md | 7 years ago | |
Makefile | 7 years ago | |
README.md | 7 years ago | |
coinmarketcap.go | 7 years ago | |
coinmarketcap_test.go | 7 years ago | |
types.go | 7 years ago |
README.md
go-coinmarketcap
The Unofficial CoinMarketCap API client for Go.
Documentation
https://godoc.org/github.com/miguelmota/go-coinmarketcap
Install
go get -u github.com/miguelmota/go-coinmarketcap
Getting started
package main
import (
"fmt"
"log"
cmc "github.com/miguelmota/go-coinmarketcap"
)
func main() {
coins, err := cmc.GetAllCoinData(0)
if err != nil {
log.Fatal(err)
}
for _, coin := range coins {
fmt.Println(coin.Symbol, coin.PriceUSD)
}
}
Examples
Check out the ./example
directory and documentation.
License
MIT