Documentation
¶
Index ¶
- Constants
- type Liqui
- func (l *Liqui) CancelOrder(OrderID int64) (bool, error)
- func (l *Liqui) GetAccountInfo() (LiquiAccountInfo, error)
- func (l *Liqui) GetActiveOrders(pair string) (map[string]LiquiActiveOrders, error)
- func (l *Liqui) GetAvailablePairs(nonHidden bool) []string
- func (l *Liqui) GetDepth(symbol string) (LiquiOrderbook, error)
- func (e *Liqui) GetExchangeAccountInfo() (exchange.ExchangeAccountInfo, error)
- func (l *Liqui) GetFee(currency string) (float64, error)
- func (l *Liqui) GetInfo() (LiquiInfo, error)
- func (l *Liqui) GetOrderInfo(OrderID int64) (map[string]LiquiOrderInfo, error)
- func (l *Liqui) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
- func (l *Liqui) GetTicker(symbol string) (map[string]LiquiTicker, error)
- func (l *Liqui) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
- func (l *Liqui) GetTradeHistory(vals url.Values, pair string) (map[string]LiquiTradeHistory, error)
- func (l *Liqui) GetTrades(symbol string) ([]LiquiTrades, error)
- func (l *Liqui) Run()
- func (l *Liqui) SendAuthenticatedHTTPRequest(method string, values url.Values, result interface{}) (err error)
- func (l *Liqui) SetDefaults()
- func (l *Liqui) Setup(exch config.ExchangeConfig)
- func (l *Liqui) Start()
- func (l *Liqui) Trade(pair, orderType string, amount, price float64) (float64, error)
- func (l *Liqui) WithdrawCoins(coin string, amount float64, address string) (LiquiWithdrawCoins, error)
- type LiquiAccountInfo
- type LiquiActiveOrders
- type LiquiCancelOrder
- type LiquiInfo
- type LiquiOrderInfo
- type LiquiOrderbook
- type LiquiPair
- type LiquiResponse
- type LiquiTicker
- type LiquiTrade
- type LiquiTradeHistory
- type LiquiTrades
- type LiquiWithdrawCoins
Constants ¶
View Source
const ( LIQUI_API_PUBLIC_URL = "https://api.Liqui.io/api" LIQUI_API_PRIVATE_URL = "https://api.Liqui.io/tapi" LIQUI_API_PUBLIC_VERSION = "3" LIQUI_API_PRIVATE_VERSION = "1" LIQUI_INFO = "info" LIQUI_TICKER = "ticker" LIQUI_DEPTH = "depth" LIQUI_TRADES = "trades" LIQUI_ACCOUNT_INFO = "getInfo" LIQUI_TRADE = "Trade" LIQUI_ACTIVE_ORDERS = "ActiveOrders" LIQUI_ORDER_INFO = "OrderInfo" LIQUI_CANCEL_ORDER = "CancelOrder" LIQUI_TRADE_HISTORY = "TradeHistory" LIQUI_WITHDRAW_COIN = "WithdrawCoin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Liqui ¶
type Liqui struct { exchange.ExchangeBase Ticker map[string]LiquiTicker Info LiquiInfo }
func (*Liqui) GetAccountInfo ¶
func (l *Liqui) GetAccountInfo() (LiquiAccountInfo, error)
func (*Liqui) GetActiveOrders ¶
func (l *Liqui) GetActiveOrders(pair string) (map[string]LiquiActiveOrders, error)
func (*Liqui) GetAvailablePairs ¶
func (*Liqui) GetExchangeAccountInfo ¶
GetExchangeAccountInfo : Retrieves balances for all enabled currencies for the Liqui exchange
func (*Liqui) GetOrderInfo ¶
func (l *Liqui) GetOrderInfo(OrderID int64) (map[string]LiquiOrderInfo, error)
func (*Liqui) GetOrderbookEx ¶
func (l *Liqui) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
func (*Liqui) GetTickerPrice ¶
func (l *Liqui) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
func (*Liqui) GetTradeHistory ¶
func (*Liqui) SendAuthenticatedHTTPRequest ¶
func (*Liqui) SetDefaults ¶
func (l *Liqui) SetDefaults()
func (*Liqui) Setup ¶
func (l *Liqui) Setup(exch config.ExchangeConfig)
func (*Liqui) WithdrawCoins ¶
func (l *Liqui) WithdrawCoins(coin string, amount float64, address string) (LiquiWithdrawCoins, error)
API mentions that this isn't active now, but will be soon - you must provide the first 8 characters of the key in your ticket to support.
type LiquiAccountInfo ¶
type LiquiAccountInfo struct { Funds map[string]float64 `json:"funds"` Rights struct { Info bool `json:"info"` Trade bool `json:"trade"` Withdraw bool `json:"withdraw"` } `json:"rights"` ServerTime float64 `json:"server_time"` TransactionCount int `json:"transaction_count"` OpenOrders int `json:"open_orders"` }
type LiquiActiveOrders ¶
type LiquiCancelOrder ¶
type LiquiOrderInfo ¶
type LiquiOrderbook ¶
type LiquiResponse ¶
type LiquiTicker ¶
type LiquiTrade ¶
type LiquiTradeHistory ¶
type LiquiTrades ¶
Click to show internal directories.
Click to hide internal directories.