Versions in this module Expand all Collapse all v0 v0.2.0 Jan 13, 2025 Changes in this version + const API_BASE_URL + const API_V2 + const BALANCE_URI + const DEPTH_URI + const EXCHANGE_NAME + const KLINE_URI + const ORDER_URI + const SYMBOLS_URI + const TICKER_URI + const TRADES_URI + func Sym2duo(pair string) q.D + type Hitbtc struct + func New(client *http.Client, accessKey, secretKey string) *Hitbtc + func (hitbtc *Hitbtc) AllTicker(SymPair map[string]q.D) (mdt *sync.Map, err error) + func (hitbtc *Hitbtc) Balances() (availables, frozens *sync.Map, err error) + func (hitbtc *Hitbtc) CancelOrder(orderId string, currency cons.CurrencyPair) (bool, error) + func (hitbtc *Hitbtc) Fee() float64 + func (hitbtc *Hitbtc) GetAccount() (*exws.Account, error) + func (hitbtc *Hitbtc) GetAttr() (a q.Attr) + func (hitbtc *Hitbtc) GetDepth(size int, currency cons.CurrencyPair) (*exws.Depth, error) + func (hitbtc *Hitbtc) GetKline(currencyPair cons.CurrencyPair, period string, size, since int64) ([]exws.Kline, error) + func (hitbtc *Hitbtc) GetKlineRecords(currency cons.CurrencyPair, period cons.KlinePeriod, size int, ...) ([]exws.Kline, error) + func (hitbtc *Hitbtc) GetOneOrder(orderId string, currency cons.CurrencyPair) (*q.Order, error) + func (hitbtc *Hitbtc) GetOrderHistorys(currency cons.CurrencyPair, optional ...exws.OptionalParameter) ([]q.Order, error) + func (hitbtc *Hitbtc) GetSymbols() ([]cons.CurrencyPair, error) + func (hitbtc *Hitbtc) GetTicker(currency cons.CurrencyPair) (*exws.Ticker, error) + func (hitbtc *Hitbtc) GetTrades(currencyPair cons.CurrencyPair, since int64) ([]q.Trade, error) + func (hitbtc *Hitbtc) GetUnfinishedOrders(currency cons.CurrencyPair) ([]q.Order, error) + func (hitbtc *Hitbtc) LimitBuy(amount, price string, currency cons.CurrencyPair, ...) (*q.Order, error) + func (hitbtc *Hitbtc) LimitSell(amount, price string, currency cons.CurrencyPair, ...) (*q.Order, error) + func (hitbtc *Hitbtc) MarketBuy(amount, price string, currency cons.CurrencyPair) (*q.Order, error) + func (hitbtc *Hitbtc) MarketSell(amount, price string, currency cons.CurrencyPair) (*q.Order, error) + func (hitbtc *Hitbtc) OneTicker(d q.D) (ticker q.Bbo, err error) + func (hitbtc *Hitbtc) PairArray() (sm map[string]q.D, prec map[q.D]q.P, err error) + func (hitbtc *Hitbtc) PlaceOrders(places [3]q.Order) (orders [3]q.Order, err error) + func (hitbtc *Hitbtc) String() string + func (hitbtc *Hitbtc) Test() bool + func (hitbtc *Hitbtc) TradeFee() (map[string]q.TradeFee, error) + func (hitbtc *Hitbtc) WithdrawFee() (sf []q.NetworkWithdraw, err error)