kaivestbinance

package
v0.0.0-...-0ce842c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinInfo

type CoinInfo struct {
	Coin              string    `json:"coin"`
	DepositAllEnable  bool      `json:"depositAllEnable"`
	Free              string    `json:"free"`
	Freeze            string    `json:"freeze"`
	Ipoable           string    `json:"ipoable"`
	Ipoing            string    `json:"ipoing"`
	IsLegalMoney      bool      `json:"isLegalMoney"`
	Locked            string    `json:"locked"`
	Name              string    `json:"name"`
	NetworkList       []Network `json:"networkList"`
	Storage           string    `json:"storage"`
	Trading           bool      `json:"trading"`
	WithdrawAllEnable bool      `json:"withdrawAllEnable"`
	Withdrawing       string    `json:"withdrawing"`
}

type KaivestBinanceClient

type KaivestBinanceClient struct {
	// contains filtered or unexported fields
}

func NewKaivestBinanceClient

func NewKaivestBinanceClient(addr string) *KaivestBinanceClient

func (*KaivestBinanceClient) GetAllCoinInfo

func (obc *KaivestBinanceClient) GetAllCoinInfo() ([]CoinInfo, error)

func (*KaivestBinanceClient) GetBookTicker

func (obc *KaivestBinanceClient) GetBookTicker(symbol string) ([]bf.BookTicker, error)

func (*KaivestBinanceClient) GetExchangeInfo

func (obc *KaivestBinanceClient) GetExchangeInfo() (bf.ExchangeInfo, error)

func (*KaivestBinanceClient) GetFundingRate

func (obc *KaivestBinanceClient) GetFundingRate() (Premium, error)

func (*KaivestBinanceClient) GetFutureKLine

func (obc *KaivestBinanceClient) GetFutureKLine(pair string, interval string, limit int, ts int64) ([]bf.Kline, error)

func (*KaivestBinanceClient) GetOIStats

func (obc *KaivestBinanceClient) GetOIStats(pair string, period string, limit int) ([]bf.OpenInterestStatistic, error)

func (*KaivestBinanceClient) GetPairsWithUsdt

func (obc *KaivestBinanceClient) GetPairsWithUsdt() ([]string, error)

func (*KaivestBinanceClient) GetSpotBookTicker

func (obc *KaivestBinanceClient) GetSpotBookTicker(symbols string) ([]binance.SymbolTicker, error)

func (*KaivestBinanceClient) GetSpotKLine

func (obc *KaivestBinanceClient) GetSpotKLine(pair string, interval string, limit int, ts int64) ([]binance.Kline, error)

type Network

type Network struct {
	AddressRegex            string `json:"addressRegex"`
	Coin                    string `json:"coin"`
	DepositDesc             string `json:"depositDesc,omitempty"` // 仅在充值关闭时返回
	DepositEnable           bool   `json:"depositEnable"`
	IsDefault               bool   `json:"isDefault"`
	MemoRegex               string `json:"memoRegex"`
	MinConfirm              int    `json:"minConfirm"` // 上账所需的最小确认数
	Name                    string `json:"name"`
	Network                 string `json:"network"`
	ResetAddressStatus      bool   `json:"resetAddressStatus"`
	SpecialTips             string `json:"specialTips"`
	UnLockConfirm           int    `json:"unLockConfirm"`          // 解锁需要的确认数
	WithdrawDesc            string `json:"withdrawDesc,omitempty"` // 仅在提现关闭时返回
	WithdrawEnable          bool   `json:"withdrawEnable"`
	WithdrawFee             string `json:"withdrawFee"`
	WithdrawIntegerMultiple string `json:"withdrawIntegerMultiple"`
	WithdrawMax             string `json:"withdrawMax"`
	WithdrawMin             string `json:"withdrawMin"`
	SameAddress             bool   `json:"sameAddress"` // 是否需要memo
	ContractAddress         string `json:"contractAddress"`
}

type Premium

type Premium struct {
	Premium map[string]string `json:"premium"`
}

Jump to

Keyboard shortcuts

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