go-bybt

module
v0.0.0-...-24c361e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2021 License: MIT

README

go-bybt

Bybt of General information for Crypto. This client is wrapper of Bybt.

Description

go-bybt is a go client follow bybt API Document.

Supported

  • Gets Open Interest/With Chart
  • Gets Liquidation/With Chart
  • Get Funding Rate

Usage

package main

import (
	"fmt"

	"github.com/go-numb/go-bybt/auth"
	"github.com/go-numb/go-bybt/rest"
	"github.com/go-numb/go-bybt/rest/futures/fr"
	"github.com/go-numb/go-bybt/rest/futures/liquidation"
	"github.com/go-numb/go-bybt/rest/futures/oi"
)


func main() {
    // Can be obtained by registering with bybt
    key := "bybt apikey"
	c := rest.New(auth.New(auth.New(key)))
	res, err := c.FundingRateWithChart(&fr.RequestWithChart{
		Symbol: "ETH",
	})
	if err != nil {
        log.Fatal(err)
    }

	fmt.Printf("%+v", res)
}


Author

@_numbP

License

MIT

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL