github.com/bitfinexcom/bitfinex-api-go@v0.0.0-20210608095005-9e0b26f200fb/examples/v2/rest-currencies/main.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"log"
     6  
     7  	"github.com/bitfinexcom/bitfinex-api-go/v2/rest"
     8  )
     9  
    10  func main() {
    11  	c := rest.NewClient()
    12  
    13  	cc, err := c.Currencies.Conf(true, true, true, true, true)
    14  	if err != nil {
    15  		log.Fatalf("getting currency config: %s", err)
    16  	}
    17  
    18  	for _, config := range cc {
    19  		fmt.Println(config)
    20  	}
    21  }