Documentation
¶
Index ¶
- type CoinInfo
- type KaivestBinanceClient
- func (obc *KaivestBinanceClient) GetAllCoinInfo() ([]CoinInfo, error)
- func (obc *KaivestBinanceClient) GetBookTicker(symbol string) ([]bf.BookTicker, error)
- func (obc *KaivestBinanceClient) GetExchangeInfo() (bf.ExchangeInfo, error)
- func (obc *KaivestBinanceClient) GetFundingRate() (Premium, error)
- func (obc *KaivestBinanceClient) GetFutureKLine(pair string, interval string, limit int, ts int64) ([]bf.Kline, error)
- func (obc *KaivestBinanceClient) GetOIStats(pair string, period string, limit int) ([]bf.OpenInterestStatistic, error)
- func (obc *KaivestBinanceClient) GetPairsWithUsdt() ([]string, error)
- func (obc *KaivestBinanceClient) GetSpotBookTicker(symbols string) ([]binance.SymbolTicker, error)
- func (obc *KaivestBinanceClient) GetSpotKLine(pair string, interval string, limit int, ts int64) ([]binance.Kline, error)
- type Network
- type Premium
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 (*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 ¶
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"` }
Click to show internal directories.
Click to hide internal directories.