Documentation ¶
Index ¶
- Constants
- type LakeBTC
- func (l *LakeBTC) CancelOrder(orderID int64) error
- func (l *LakeBTC) CreateWithdraw(amount float64, accountID int64) (LakeBTCWithdraw, error)
- func (l *LakeBTC) GetAccountInfo() (LakeBTCAccountInfo, error)
- func (l *LakeBTC) GetExchangeAccountInfo() (exchange.ExchangeAccountInfo, error)
- func (l *LakeBTC) GetExternalAccounts() ([]LakeBTCExternalAccounts, error)
- func (l *LakeBTC) GetFee(maker bool) float64
- func (l *LakeBTC) GetOpenOrders() ([]LakeBTCOpenOrders, error)
- func (l *LakeBTC) GetOrderBook(currency string) (LakeBTCOrderbook, error)
- func (l *LakeBTC) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
- func (l *LakeBTC) GetOrders(orders []int64) ([]LakeBTCOrders, error)
- func (l *LakeBTC) GetTicker() (map[string]LakeBTCTicker, error)
- func (l *LakeBTC) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
- func (l *LakeBTC) GetTradeHistory(currency string) ([]LakeBTCTradeHistory, error)
- func (l *LakeBTC) GetTrades(timestamp int64) ([]LakeBTCAuthenticaltedTradeHistory, error)
- func (l *LakeBTC) Run()
- func (l *LakeBTC) SendAuthenticatedHTTPRequest(method, params string, result interface{}) (err error)
- func (l *LakeBTC) SetDefaults()
- func (l *LakeBTC) Setup(exch config.ExchangeConfig)
- func (l *LakeBTC) Start()
- func (l *LakeBTC) Trade(orderType int, amount, price float64, currency string) (LakeBTCTrade, error)
- type LakeBTCAccountInfo
- type LakeBTCAuthenticaltedTradeHistory
- type LakeBTCExternalAccounts
- type LakeBTCOpenOrders
- type LakeBTCOrderbook
- type LakeBTCOrderbookStructure
- type LakeBTCOrders
- type LakeBTCTicker
- type LakeBTCTickerResponse
- type LakeBTCTrade
- type LakeBTCTradeHistory
- type LakeBTCWithdraw
Constants ¶
View Source
const ( LAKEBTC_API_URL = "https://api.lakebtc.com/api_v2" LAKEBTC_API_VERSION = "2" LAKEBTC_TICKER = "ticker" LAKEBTC_ORDERBOOK = "bcorderbook" LAKEBTC_TRADES = "bctrades" LAKEBTC_GET_ACCOUNT_INFO = "getAccountInfo" LAKEBTC_BUY_ORDER = "buyOrder" LAKEBTC_SELL_ORDER = "sellOrder" LAKEBTC_OPEN_ORDERS = "openOrders" LAKEBTC_GET_ORDERS = "getOrders" LAKEBTC_CANCEL_ORDER = "cancelOrder" LAKEBTC_GET_TRADES = "getTrades" LAKEBTC_GET_EXTERNAL_ACCOUNTS = "getExternalAccounts" LAKEBTC_CREATE_WITHDRAW = "createWithdraw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LakeBTC ¶
type LakeBTC struct {
exchange.ExchangeBase
}
func (*LakeBTC) CancelOrder ¶
func (*LakeBTC) CreateWithdraw ¶
func (l *LakeBTC) CreateWithdraw(amount float64, accountID int64) (LakeBTCWithdraw, error)
Only for BTC
func (*LakeBTC) GetAccountInfo ¶
func (l *LakeBTC) GetAccountInfo() (LakeBTCAccountInfo, error)
func (*LakeBTC) GetExchangeAccountInfo ¶
func (*LakeBTC) GetExternalAccounts ¶
func (l *LakeBTC) GetExternalAccounts() ([]LakeBTCExternalAccounts, error)
Only for BTC
func (*LakeBTC) GetOpenOrders ¶
func (l *LakeBTC) GetOpenOrders() ([]LakeBTCOpenOrders, error)
func (*LakeBTC) GetOrderBook ¶
func (l *LakeBTC) GetOrderBook(currency string) (LakeBTCOrderbook, error)
func (*LakeBTC) GetOrderbookEx ¶
func (l *LakeBTC) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
func (*LakeBTC) GetTickerPrice ¶
func (l *LakeBTC) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
func (*LakeBTC) GetTradeHistory ¶
func (l *LakeBTC) GetTradeHistory(currency string) ([]LakeBTCTradeHistory, error)
func (*LakeBTC) GetTrades ¶
func (l *LakeBTC) GetTrades(timestamp int64) ([]LakeBTCAuthenticaltedTradeHistory, error)
func (*LakeBTC) SendAuthenticatedHTTPRequest ¶
func (*LakeBTC) SetDefaults ¶
func (l *LakeBTC) SetDefaults()
func (*LakeBTC) Setup ¶
func (l *LakeBTC) Setup(exch config.ExchangeConfig)
type LakeBTCAccountInfo ¶
type LakeBTCExternalAccounts ¶
type LakeBTCOpenOrders ¶
type LakeBTCOrderbook ¶
type LakeBTCOrderbook struct { Bids []LakeBTCOrderbookStructure `json:"bids"` Asks []LakeBTCOrderbookStructure `json:"asks"` }
type LakeBTCOrders ¶
type LakeBTCTicker ¶
type LakeBTCTickerResponse ¶
type LakeBTCTickerResponse struct { Last interface{} Bid interface{} Ask interface{} High interface{} Low interface{} Volume interface{} }
Silly hack due to API returning null instead of strings
type LakeBTCTrade ¶
type LakeBTCTradeHistory ¶
type LakeBTCWithdraw ¶
type LakeBTCWithdraw struct { ID int64 `json:"id,string"` Amount float64 `json:"amount,string"` Currency string `json:"currency"` Fee float64 `json:"fee,string"` State string `json:"state"` Source string `json:"source"` ExternalAccountID int64 `json:"external_account_id,string"` At int64 `json:"at"` }
Click to show internal directories.
Click to hide internal directories.