Versions in this module Expand all Collapse all v0 v0.0.3 Oct 12, 2019 v0.0.2 Oct 12, 2019 v0.0.1 Oct 12, 2019 Changes in this version + const DERIV_TYPE + type BookService struct + func (b *BookService) All(symbol string, precision bitfinex.BookPrecision, priceLevels int) (*bitfinex.BookUpdateSnapshot, error) + type CandleService struct + func (c *CandleService) History(symbol string, resolution bitfinex.CandleResolution) (*bitfinex.CandleSnapshot, error) + func (c *CandleService) HistoryWithQuery(symbol string, resolution bitfinex.CandleResolution, start bitfinex.Mts, ...) (*bitfinex.CandleSnapshot, error) + func (c *CandleService) Last(symbol string, resolution bitfinex.CandleResolution) (*bitfinex.Candle, error) + type Client struct + Book BookService + Candles CandleService + Currencies CurrenciesService + Derivatives DerivativesService + Funding FundingService + Ledgers LedgerService + Orders OrderService + Platform PlatformService + Positions PositionService + Stats StatsService + Status StatusService + Tickers TickerService + Trades TradeService + Wallet WalletService + func NewClient() *Client + func NewClientWithHttpDo(httpDo func(c *http.Client, r *http.Request) (*http.Response, error)) *Client + func NewClientWithSynchronousNonce(sync Synchronous, nonce utils.NonceGenerator) *Client + func NewClientWithSynchronousURLNonce(sync Synchronous, url string, nonce utils.NonceGenerator) *Client + func NewClientWithURL(url string) *Client + func NewClientWithURLHttpDo(base string, ...) *Client + func NewClientWithURLHttpDoNonce(base string, ...) *Client + func NewClientWithURLNonce(url string, nonce utils.NonceGenerator) *Client + func (c *Client) Credentials(key string, secret string) *Client + func (c *Client) NewAuthenticatedRequest(permissionType bitfinex.PermissionType, refURL string) (Request, error) + func (c *Client) NewAuthenticatedRequestWithBytes(permissionType bitfinex.PermissionType, refURL string, data []byte) (Request, error) + func (c *Client) NewAuthenticatedRequestWithData(permissionType bitfinex.PermissionType, refURL string, ...) (Request, error) + type CurrenciesService struct + func (cs *CurrenciesService) Conf(label, symbol, unit, explorer, pairs bool) ([]bitfinex.CurrencyConf, error) + type DerivativesService struct + type ErrorResponse struct + Code int + Message string + Response *Response + func (r *ErrorResponse) Error() string + type FundingService struct + func (fs *FundingService) CancelOffer(fc *bitfinex.FundingOfferCancelRequest) (*bitfinex.Notification, error) + func (fs *FundingService) Credits(symbol string) (*bitfinex.FundingCreditSnapshot, error) + func (fs *FundingService) CreditsHistory(symbol string) (*bitfinex.FundingCreditSnapshot, error) + func (fs *FundingService) Loans(symbol string) (*bitfinex.FundingLoanSnapshot, error) + func (fs *FundingService) LoansHistory(symbol string) (*bitfinex.FundingLoanSnapshot, error) + func (fs *FundingService) OfferHistory(symbol string) (*bitfinex.FundingOfferSnapshot, error) + func (fs *FundingService) Offers(symbol string) (*bitfinex.FundingOfferSnapshot, error) + func (fs *FundingService) SubmitOffer(fo *bitfinex.FundingOfferRequest) (*bitfinex.Notification, error) + func (fs *FundingService) Trades(symbol string) (*bitfinex.FundingTradeSnapshot, error) + type HttpTransport struct + BaseURL *url.URL + HTTPClient *http.Client + func (h HttpTransport) Request(req Request) ([]interface{}, error) + type LedgerService struct + func (s *LedgerService) Ledgers(currency string, start int64, end int64, max int32) (*bitfinex.LedgerSnapshot, error) + type OrderService struct + func (s *OrderService) All() (*bitfinex.OrderSnapshot, error) + func (s *OrderService) AllHistory() (*bitfinex.OrderSnapshot, error) + func (s *OrderService) GetByOrderId(orderID int64) (o *bitfinex.Order, err error) + func (s *OrderService) GetBySymbol(symbol string) (*bitfinex.OrderSnapshot, error) + func (s *OrderService) GetHistoryByOrderId(orderID int64) (o *bitfinex.Order, err error) + func (s *OrderService) GetHistoryBySymbol(symbol string) (*bitfinex.OrderSnapshot, error) + func (s *OrderService) OrderTrades(symbol string, orderID int64) (*bitfinex.TradeExecutionUpdateSnapshot, error) + func (s *OrderService) SubmitCancelOrder(oc *bitfinex.OrderCancelRequest) error + func (s *OrderService) SubmitOrder(order *bitfinex.OrderNewRequest) (*bitfinex.Notification, error) + func (s *OrderService) SubmitUpdateOrder(order *bitfinex.OrderUpdateRequest) (*bitfinex.Notification, error) + type PlatformService struct + func (p *PlatformService) Status() (bool, error) + type PositionService struct + func (s *PositionService) All() (*bitfinex.PositionSnapshot, error) + func (s *PositionService) Claim(cp *bitfinex.ClaimPositionRequest) (*bitfinex.Notification, error) + type Request struct + Data []byte + Headers map[string]string + Method string + Params url.Values + RefURL string + func NewRequest(refURL string) Request + func NewRequestWithBytes(refURL string, data []byte) Request + func NewRequestWithData(refURL string, data map[string]interface{}) (Request, error) + func NewRequestWithDataMethod(refURL string, data []byte, method string) Request + func NewRequestWithMethod(refURL string, method string) Request + type Response struct + Body []byte + Response *http.Response + func (r *Response) String() string + type StatsService struct + func (ss *StatsService) CreditSizeHistory(symbol string, side bitfinex.OrderSide) ([]bitfinex.Stat, error) + func (ss *StatsService) CreditSizeLast(symbol string, side bitfinex.OrderSide) (*bitfinex.Stat, error) + func (ss *StatsService) FundingHistory(symbol string) ([]bitfinex.Stat, error) + func (ss *StatsService) FundingLast(symbol string) (*bitfinex.Stat, error) + func (ss *StatsService) PositionHistory(symbol string, side bitfinex.OrderSide) ([]bitfinex.Stat, error) + func (ss *StatsService) PositionLast(symbol string, side bitfinex.OrderSide) (*bitfinex.Stat, error) + func (ss *StatsService) SymbolCreditSizeHistory(fundingSymbol string, tradingSymbol string) ([]bitfinex.Stat, error) + func (ss *StatsService) SymbolCreditSizeLast(fundingSymbol string, tradingSymbol string) (*bitfinex.Stat, error) + type StatusService struct + func (ss *StatusService) DerivativeStatus(symbol string) (*bitfinex.DerivativeStatus, error) + func (ss *StatusService) DerivativeStatusAll() ([]*bitfinex.DerivativeStatus, error) + func (ss *StatusService) DerivativeStatusMulti(symbols []string) ([]*bitfinex.DerivativeStatus, error) + type Synchronous interface + Request func(request Request) ([]interface{}, error) + type TickerService struct + func (s *TickerService) All() (*[]bitfinex.Ticker, error) + func (s *TickerService) Get(symbol string) (*bitfinex.Ticker, error) + func (s *TickerService) GetMulti(symbols []string) (*[]bitfinex.Ticker, error) + type TradeService struct + func (s *TradeService) AccountAll() (*bitfinex.TradeExecutionUpdateSnapshot, error) + func (s *TradeService) AccountAllWithSymbol(symbol string) (*bitfinex.TradeExecutionUpdateSnapshot, error) + func (s *TradeService) AccountHistoryWithQuery(symbol string, start bitfinex.Mts, end bitfinex.Mts, limit bitfinex.QueryLimit, ...) (*bitfinex.TradeExecutionUpdateSnapshot, error) + func (s *TradeService) PublicHistoryWithQuery(symbol string, start bitfinex.Mts, end bitfinex.Mts, limit bitfinex.QueryLimit, ...) (*bitfinex.TradeSnapshot, error) + type WalletService struct + func (s *WalletService) SetCollateral(symbol string, amount float64) (bool, error) + func (s *WalletService) Wallet() (*bitfinex.WalletSnapshot, error) + func (ws *WalletService) CreateDepositAddress(wallet, method string) (*bitfinex.Notification, error) + func (ws *WalletService) DepositAddress(wallet, method string) (*bitfinex.Notification, error) + func (ws *WalletService) Transfer(from, to, currency, currencyTo string, amount float64) (*bitfinex.Notification, error) + func (ws *WalletService) Withdraw(wallet, method string, amount float64, address string) (*bitfinex.Notification, error)