Skip to content

nikchis/cmc-proapi

Repository files navigation

cmc-proapi License Build Status Go Report Card GoDoc

cmc-proapi is an implementation of the CoinMarketCap API in Golang.

Import

import "github.com/nikchis/cmc-proapi"

Usage

package main

import (
	"fmt"
	"github.com/nikchis/cmc-proapi"
)

const (
	ApiKey = "YOUR_API_KEY"
)

func main() {
	// cmcproapi client
	cmc, _ := cmcproapi.New(ApiKey)

	// get info about bitcoin
	info, err := cmc.GetCurrencyInfoBySymbol("BTC")
	if err != nil {
		fmt.Printf("%+v\n", info)
	}
}

About

Go binding for the CoinMarketCap API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages