CoinCircle Go Coinmarketcap Save

The Unofficial Coin Market Cap API client for Go.

Project README


go-coinmarketcap


The Unofficial CoinMarketCap API client for Go.

License Build Status Go Report Card GoDoc

Supports the CoinMarketCap Version 2 (V2) Public API

Documentation

https://godoc.org/github.com/coincircle/go-coinmarketcap

Install

go get -u github.com/coincircle/go-coinmarketcap

Getting started

package main

import (
	"fmt"
	"log"

	cmc "github.com/coincircle/go-coinmarketcap"
)

func main() {
	tickers, err := cmc.Tickers(&cmc.TickersOptions{
		Start:   0,
		Limit:   100,
		Convert: "USD",
	})
	if err != nil {
		log.Fatal(err)
	}

	for _, ticker := range tickers {
		fmt.Println(ticker.Symbol, ticker.Quotes["USD"].Price)
	}
}

Examples

Check out the ./example directory and documentation.

License

MIT

Open Source Agenda is not affiliated with "CoinCircle Go Coinmarketcap" Project. README Source: CoinCircle/go-coinmarketcap
Stars
62
Open Issues
3
Last Commit
5 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating