1package main
2
3import (
4	"fmt"
5	"log"
6
7	cmc "github.com/miguelmota/go-coinmarketcap/v2"
8)
9
10func main() {
11	// Get info about coin
12	ticker, err := cmc.Ticker(&cmc.TickerOptions{
13		Symbol:  "ETH",
14		Convert: "EUR",
15	})
16	if err != nil {
17		log.Fatal(err)
18	}
19
20	fmt.Println(ticker.Name, ticker.Quotes["EUR"].Price)
21}
22