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

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"github.com/bitfinexcom/bitfinex-api-go/v2/rest"
     6  	"log"
     7  )
     8  
     9  
    10  func main() {
    11  	c := rest.NewClient()
    12  	pLStats, err := c.Status.DerivativeStatus("tBTCF0:USTF0")
    13  	if err != nil {
    14  		log.Fatalf("getting getting last position stats: %s", err)
    15  	}
    16  	fmt.Println(pLStats)
    17  }
    18