bithumb

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sym2duo

func Sym2duo(pair string) q.D

Types

type Bithumb

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

func New

func New(client *http.Client, accesskey, secretkey string) *Bithumb

func (*Bithumb) AllTicker

func (bit *Bithumb) AllTicker(SymPair map[string]q.D) (mdt *sync.Map, err error)

func (*Bithumb) Balances

func (bit *Bithumb) Balances() (availables, frozens *sync.Map, err error)

func (*Bithumb) CancelOrder

func (bit *Bithumb) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

func (*Bithumb) CancelOrder2

func (bit *Bithumb) CancelOrder2(side, orderId string, currency CurrencyPair) (bool, error)

补丁

func (*Bithumb) Fee

func (bit *Bithumb) Fee() float64

func (*Bithumb) GetAccount

func (bit *Bithumb) GetAccount() (*Account, error)

func (*Bithumb) GetAttr

func (bit *Bithumb) GetAttr() (a q.Attr)

func (*Bithumb) GetDepth

func (bit *Bithumb) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*Bithumb) GetKlineRecords

func (bit *Bithumb) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, opt ...OptionalParameter) ([]Kline, error)

func (*Bithumb) GetOneOrder

func (bit *Bithumb) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*Bithumb) GetOneOrder2

func (bit *Bithumb) GetOneOrder2(side, orderId string, currency CurrencyPair) (*Order, error)

补丁

func (*Bithumb) GetOrderHistorys

func (bit *Bithumb) GetOrderHistorys(currency CurrencyPair, optional ...OptionalParameter) ([]Order, error)

func (*Bithumb) GetTicker

func (bit *Bithumb) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Bithumb) GetTrades

func (bit *Bithumb) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

非个人,整个交易所的交易记录

func (*Bithumb) GetUnfinishedOrders

func (bit *Bithumb) GetUnfinishedOrders(currency CurrencyPair) ([]Order, error)

func (*Bithumb) LimitBuy

func (bit *Bithumb) LimitBuy(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*Order, error)

func (*Bithumb) LimitSell

func (bit *Bithumb) LimitSell(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*Order, error)

func (*Bithumb) MarketBuy

func (bit *Bithumb) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Bithumb) MarketSell

func (bit *Bithumb) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)

func (*Bithumb) OneTicker

func (bit *Bithumb) OneTicker(d q.D) (ticker q.Bbo, err error)

func (*Bithumb) PairArray

func (bit *Bithumb) PairArray() (map[string]q.D, map[q.D]q.P, error)

func (*Bithumb) PlaceOrders

func (bit *Bithumb) PlaceOrders(places [3]q.Order) (orders [3]q.Order, err error)

func (*Bithumb) String

func (bit *Bithumb) String() string

func (*Bithumb) Test

func (bit *Bithumb) Test() bool

func (*Bithumb) TradeFee

func (bit *Bithumb) TradeFee() (map[string]q.TradeFee, error)

func (*Bithumb) WithdrawFee

func (bit *Bithumb) WithdrawFee() (sf []q.NetworkWithdraw, err error)

Jump to

Keyboard shortcuts

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