swap

package
v0.3.0-pre Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SwapAPIHost string = "fapi.binance.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RestClient

type RestClient struct {
	*binance.RestClient
	// contains filtered or unexported fields
}

RestClient struct

func NewRestClient

func NewRestClient(key, secret string) *RestClient

func (*RestClient) Init

func (rc *RestClient) Init(ctx context.Context) error

func (*RestClient) Symbols

func (rc *RestClient) Symbols() map[string]*SwapSymbol

type SwapSymbol

type SwapSymbol struct {
	*exchange.BaseSwapSymbol
	BaseAsset       string
	MinAmount       decimal.Decimal
	PricePrecision  decimal.Decimal
	AmountPrecision decimal.Decimal
}

func (*SwapSymbol) String

func (s *SwapSymbol) String() string

Jump to

Keyboard shortcuts

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