Versions in this module Expand all Collapse all v0 v0.2.0 Jan 13, 2025 Changes in this version + func Sym2duo(parts string) (d q.D, ok string) + type Bitfinex struct + func New(client *http.Client, accessKey, secretKey string) *Bitfinex + func (bfx *Bitfinex) ActiveCredits() (error, []LendOrder) + func (bfx *Bitfinex) ActiveLendOrders() (error, []LendOrder) + func (bfx *Bitfinex) AllTicker(SymPair map[string]q.D) (mdt *sync.Map, err error) + func (bfx *Bitfinex) Balances() (availables, frozens *sync.Map, err error) + func (bfx *Bitfinex) CancelLendOrder(id int) (error, *LendOrder) + func (bfx *Bitfinex) CancelOrder(orderId string, currencyPair CurrencyPair) (bool, error) + func (bfx *Bitfinex) Fee() float64 + func (bfx *Bitfinex) GetAccount() (*Account, error) + func (bfx *Bitfinex) GetAttr() (a q.Attr) + func (bfx *Bitfinex) GetDepositWalletBalance() (*Account, error) + func (bfx *Bitfinex) GetDepth(size int, currencyPair CurrencyPair) (*Depth, error) + func (bfx *Bitfinex) GetKlineRecords(currencyPair CurrencyPair, period KlinePeriod, size int, ...) ([]Kline, error) + func (bfx *Bitfinex) GetLendBook(currency Currency) (error, *LendBook) + func (bfx *Bitfinex) GetLendOrderStatus(id int) (error, *LendOrder) + func (bfx *Bitfinex) GetLendTickers() ([]LendTicker, error) + func (bfx *Bitfinex) GetMarginInfos() ([]MarginInfo, error) + func (bfx *Bitfinex) GetMarginTradingWalletBalance() (*Account, error) + func (bfx *Bitfinex) GetOneOrder(orderId string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) GetOrderHistorys(currencyPair CurrencyPair, optional ...OptionalParameter) ([]Order, error) + func (bfx *Bitfinex) GetTicker(currencyPair CurrencyPair) (*Ticker, error) + func (bfx *Bitfinex) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (bfx *Bitfinex) GetUnfinishedOrders(currencyPair CurrencyPair) ([]Order, error) + func (bfx *Bitfinex) GetWalletBalances() (map[string]*Account, error) + func (bfx *Bitfinex) LimitBuy(amount, price string, currencyPair CurrencyPair, ...) (*Order, error) + func (bfx *Bitfinex) LimitSell(amount, price string, currencyPair CurrencyPair, ...) (*Order, error) + func (bfx *Bitfinex) MarginLimitBuy(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) MarginLimitSell(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) MarginMarketBuy(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) MarginMarketSell(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) MarketBuy(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) MarketSell(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) MytradesFunding(currency Currency, limit int) (error, []TradeFunding) + func (bfx *Bitfinex) NewLendOrder(currency Currency, amount, rate string, period int) (error, *LendOrder) + func (bfx *Bitfinex) NewLoanOrder(currency Currency, amount, rate string, period int) (error, *LendOrder) + func (bfx *Bitfinex) OffersHistory(limit int) (error, []LendOrder) + func (bfx *Bitfinex) OneTicker(d q.D) (ticker q.Bbo, err error) + func (bfx *Bitfinex) PairArray() (sm map[string]q.D, pairs map[q.D]q.P, err error) + func (bfx *Bitfinex) PlaceOrders(places [3]q.Order) (orders [3]q.Order, err error) + func (bfx *Bitfinex) StopBuy(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) StopSell(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bfx *Bitfinex) String() string + func (bfx *Bitfinex) Test() bool + func (bfx *Bitfinex) TradeFee() (map[string]q.TradeFee, error) + func (bfx *Bitfinex) Transfer(amount float64, currency Currency, fromWallet, toWallet string) error + func (bfx *Bitfinex) WithdrawFee() (sf []q.NetworkWithdraw, err error) + type BitfinexWs struct + func NewWs() *BitfinexWs + func (bws *BitfinexWs) BBOCallback(bboCallback func(*Bbo)) + func (bws *BitfinexWs) DepthCallback(depthCallback func(*Depth)) + func (bws *BitfinexWs) SetCallbacks(bboCallback func(*Bbo), tickerCallback func(*Ticker), ...) + func (bws *BitfinexWs) SubscribeBBO(sm []string) (err error) + func (bws *BitfinexWs) SubscribeCandle(pair CurrencyPair, klinePeriod KlinePeriod) error + func (bws *BitfinexWs) SubscribeDepth(pair CurrencyPair) error + func (bws *BitfinexWs) SubscribeTicker(pair CurrencyPair) error + func (bws *BitfinexWs) SubscribeTrade(pair CurrencyPair) error + func (bws *BitfinexWs) TickerCallback(tickerCallback func(*Ticker)) + func (bws *BitfinexWs) TradeCallback(tradeCallback func(*Trade)) + type EventMap map[int64]SubscribeEvent + type LendBook struct + Asks []LendBookItem + Bids []LendBookItem + type LendBookItem struct + Amount float64 + Frr string + Period int + Rate float64 + Timestamp string + type LendOrder struct + Amount float64 + Currency string + Direction string + ExecutedAmount float64 + Id int + IsCancelled bool + IsLive bool + OriginalAmount float64 + Period int + Rate float64 + RemainingAmount float64 + Timestamp string + type LendTicker struct + Coin Currency + DailyChangePerc float64 + type MarginInfo struct + Leverage float64 + MarginBalance float64 + MarginLimits []MarginLimits + MarginRequirement float64 + NetValue float64 + RequiredMargin float64 + TradableBalance float64 + UnrealizedPl float64 + UnrealizedSwap float64 + type MarginLimits struct + InitialMargin float64 + MarginRequirement float64 + Pair string + TradableBalance float64 + type SubscribeEvent struct + ChanID int64 + Channel string + Event string + Frequency string + Key string + Len string + Pair string + Precision string + SubID string + Symbol string + type TradeFunding struct + Amount string + OfferId int64 + Period string + Rate string + Tid int64 + Timestamp string + Type string