Versions in this module Expand all Collapse all v0 v0.0.2 Aug 12, 2020 Changes in this version + const Day1 + const Min1 + const Min10 + const Min30 + const Min5 + func GetCandles(pair string, interval CandleInterval, from, to time.Time) (entities.CandlesResp, error) + func GetCurrencies() (entities.CurrencyResp, error) + func GetDepositAddress(currency string) (entities.DepositAddrResp, error) + type CandleInterval int + type CandleIntervalSpec struct + Interval string + Number int + type TickerInterval int v0.0.1 Mar 31, 2019 Changes in this version + const Day + const Hour + const MakerFeePercent + const Minute + const TakerFeePercent + const Timeout + const TokensBaseUrl + var Credentials *CredentialsConfig + var HookFunc = NullHookFunc + var NullHookFunc = func(code int, reason string) + func CancelAllOrders() error + func CancelOrder(id uuid.UUID) (entities.Base, error) + func GetAllBalances() (entities.AllBalanceResp, error) + func GetAllCurrencies() ([]string, error) + func GetAllOrders() (entities.OrdersResp, error) + func GetAllOrdersFor(pair string) (entities.OrdersResp, error) + func GetAllTransactions() (entities.TransactionResp, error) + func GetBalance(currency string) (entities.BalanceResp, error) + func GetBalances(hideZero bool) map[string]*entities.BalanceResp + func GetOrderBook(pair string) (entities.OrderBookResp, error) + func GetOrderDetails(id uuid.UUID) (entities.OrderDetailsResp, error) + func GetTicker(pair string, interval Interval) (entities.TickerResp, error) + func GetTrades(pair string, interval Interval) (entities.TradesResp, error) + func GetTradingPairs() (entities.TradingPairResp, error) + func GetTransactions(page int) (entities.TransactionResp, error) + func GetVotes() (entities.VotesResp, error) + func Init(configPath string) error + func InstallErrorHook(f ErrorHook) + func PlaceOrder(pair string, side entities.OrderType, amount float64, amountDecimals int, ...) (entities.PlaceOrderResp, error) + func PlaceOrderTyped(pair *entities.TradingPair, side entities.OrderType, amount Amount, ...) (entities.PlaceOrderResp, error) + func UninstallErrorHook() + type Amount float64 + type CredentialsConfig struct + APIKey string + APISecret string + type ErrorHook func(int, string) + type Interval int + type Price float64