Versions in this module Expand all Collapse all v1 v1.0.3 Jul 29, 2019 Changes in this version + const BASE_URL + 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) CancelLendOrder(id int) (error, *LendOrder) + func (bfx *Bitfinex) CancelOrder(orderId string, currencyPair CurrencyPair) (bool, error) + func (bfx *Bitfinex) GetAccount() (*Account, error) + func (bfx *Bitfinex) GetDepositWalletBalance() (*Account, error) + func (bfx *Bitfinex) GetDepth(size int, currencyPair CurrencyPair) (*Depth, error) + func (bfx *Bitfinex) GetExchangeName() string + func (bfx *Bitfinex) GetKlineRecords(currencyPair CurrencyPair, period, size, since 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, currentPage, pageSize int) ([]Order, error) + func (bfx *Bitfinex) GetTicker(currencyPair CurrencyPair) (*Ticker, error) + func (bfx *Bitfinex) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (bfx *Bitfinex) GetUnfinishOrders(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) Transfer(amount float64, currency Currency, fromWallet, toWallet string) error + 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 TradeFunding struct + Amount string + OfferId int64 + Period string + Rate string + Tid int64 + Timestamp string + Type string v1.0.2 Jul 25, 2019 v1.0.1 Jul 16, 2019