Versions in this module Expand all Collapse all v0 v0.1.2 Dec 27, 2016 v0.1.1 Dec 22, 2016 Changes in this version + type Btcc struct + func (e *Btcc) AutoSleep() + func (e *Btcc) CancelOrder(order Order) bool + func (e *Btcc) GetAccount() interface{} + func (e *Btcc) GetMinAmount(stock string) float64 + func (e *Btcc) GetName() string + func (e *Btcc) GetOrder(stockType, id string) interface{} + func (e *Btcc) GetOrders(stockType string) interface{} + func (e *Btcc) GetRecords(stockType, period string, sizes ...interface{}) interface{} + func (e *Btcc) GetTicker(stockType string, sizes ...interface{}) interface{} + func (e *Btcc) GetTrades(stockType string) interface{} + func (e *Btcc) GetType() string + func (e *Btcc) Log(msgs ...interface{}) + func (e *Btcc) SetLimit(times interface{}) float64 + func (e *Btcc) Simulate(acc map[string]interface{}) bool + func (e *Btcc) Trade(tradeType string, stockType string, _price, _amount interface{}, ...) interface{} + type Chbtc struct + func (e *Chbtc) AutoSleep() + func (e *Chbtc) CancelOrder(order Order) bool + func (e *Chbtc) GetAccount() interface{} + func (e *Chbtc) GetMinAmount(stock string) float64 + func (e *Chbtc) GetName() string + func (e *Chbtc) GetOrder(stockType, id string) interface{} + func (e *Chbtc) GetOrders(stockType string) interface{} + func (e *Chbtc) GetRecords(stockType, period string, sizes ...interface{}) interface{} + func (e *Chbtc) GetTicker(stockType string, sizes ...interface{}) interface{} + func (e *Chbtc) GetTrades(stockType string) interface{} + func (e *Chbtc) GetType() string + func (e *Chbtc) Log(msgs ...interface{}) + func (e *Chbtc) SetLimit(times interface{}) float64 + func (e *Chbtc) Simulate(acc map[string]interface{}) bool + func (e *Chbtc) Trade(tradeType string, stockType string, _price, _amount interface{}, ...) interface{} + type Exchange interface + AutoSleep func() + CancelOrder func(order Order) bool + GetAccount func() interface{} + GetMinAmount func(stock string) float64 + GetName func() string + GetOrder func(stockType, id string) interface{} + GetOrders func(stockType string) interface{} + GetRecords func(stockType, period string, sizes ...interface{}) interface{} + GetTicker func(stockType string, sizes ...interface{}) interface{} + GetTrades func(stockType string) interface{} + GetType func() string + Log func(...interface{}) + SetLimit func(times interface{}) float64 + Trade func(tradeType string, stockType string, price, amount interface{}, ...) interface{} + func NewBtcc(opt Option) Exchange + func NewChbtc(opt Option) Exchange + func NewHuobi(opt Option) Exchange + func NewOKCoinCn(opt Option) Exchange + func NewOKCoinFuture(opt Option) Exchange + func NewOandaV20(opt Option) Exchange + func NewPoloniex(opt Option) Exchange + type Huobi struct + func (e *Huobi) AutoSleep() + func (e *Huobi) CancelOrder(order Order) bool + func (e *Huobi) GetAccount() interface{} + func (e *Huobi) GetMinAmount(stock string) float64 + func (e *Huobi) GetName() string + func (e *Huobi) GetOrder(stockType, id string) interface{} + func (e *Huobi) GetOrders(stockType string) interface{} + func (e *Huobi) GetRecords(stockType, period string, sizes ...interface{}) interface{} + func (e *Huobi) GetTicker(stockType string, sizes ...interface{}) interface{} + func (e *Huobi) GetTrades(stockType string) interface{} + func (e *Huobi) GetType() string + func (e *Huobi) Log(msgs ...interface{}) + func (e *Huobi) SetLimit(times interface{}) float64 + func (e *Huobi) Simulate(acc map[string]interface{}) bool + func (e *Huobi) Trade(tradeType string, stockType string, _price, _amount interface{}, ...) interface{} + type OKCoinCn struct + func (e *OKCoinCn) AutoSleep() + func (e *OKCoinCn) CancelOrder(order Order) bool + func (e *OKCoinCn) GetAccount() interface{} + func (e *OKCoinCn) GetMinAmount(stock string) float64 + func (e *OKCoinCn) GetName() string + func (e *OKCoinCn) GetOrder(stockType, id string) interface{} + func (e *OKCoinCn) GetOrders(stockType string) interface{} + func (e *OKCoinCn) GetRecords(stockType, period string, sizes ...interface{}) interface{} + func (e *OKCoinCn) GetTicker(stockType string, sizes ...interface{}) interface{} + func (e *OKCoinCn) GetTrades(stockType string) interface{} + func (e *OKCoinCn) GetType() string + func (e *OKCoinCn) Log(msgs ...interface{}) + func (e *OKCoinCn) SetLimit(times interface{}) float64 + func (e *OKCoinCn) Simulate(acc map[string]interface{}) bool + func (e *OKCoinCn) Trade(tradeType string, stockType string, _price, _amount interface{}, ...) interface{} + type OKCoinFuture struct + func (e *OKCoinFuture) AutoSleep() + func (e *OKCoinFuture) CancelOrder(order Order) bool + func (e *OKCoinFuture) GetAccount() interface{} + func (e *OKCoinFuture) GetMinAmount(stock string) float64 + func (e *OKCoinFuture) GetName() string + func (e *OKCoinFuture) GetOrder(stockType, id string) interface{} + func (e *OKCoinFuture) GetOrders(stockType string) interface{} + func (e *OKCoinFuture) GetPositions(stockType string) interface{} + func (e *OKCoinFuture) GetRecords(stockType, period string, sizes ...interface{}) interface{} + func (e *OKCoinFuture) GetTicker(stockType string, sizes ...interface{}) interface{} + func (e *OKCoinFuture) GetTrades(stockType string) interface{} + func (e *OKCoinFuture) GetType() string + func (e *OKCoinFuture) Log(msgs ...interface{}) + func (e *OKCoinFuture) SetLimit(times interface{}) float64 + func (e *OKCoinFuture) Simulate(acc map[string]interface{}) bool + func (e *OKCoinFuture) Trade(tradeType string, stockType string, _price, _amount interface{}, ...) interface{} + type OandaV20 struct + func (e *OandaV20) AutoSleep() + func (e *OandaV20) CancelOrder(order Order) bool + func (e *OandaV20) GetAccount() interface{} + func (e *OandaV20) GetMinAmount(stock string) float64 + func (e *OandaV20) GetName() string + func (e *OandaV20) GetOrder(stockType, id string) interface{} + func (e *OandaV20) GetOrders(stockType string) interface{} + func (e *OandaV20) GetPositions(stockType string) interface{} + func (e *OandaV20) GetRecords(stockType, period string, sizes ...interface{}) interface{} + func (e *OandaV20) GetTicker(stockType string, sizes ...interface{}) interface{} + func (e *OandaV20) GetTrades(stockType string) interface{} + func (e *OandaV20) GetType() string + func (e *OandaV20) Log(msgs ...interface{}) + func (e *OandaV20) SetLimit(times interface{}) float64 + func (e *OandaV20) Simulate() bool + func (e *OandaV20) Trade(tradeType string, stockType string, _price, _amount interface{}, ...) interface{} + type Option struct + AccessKey string + Name string + SecretKey string + TraderID int64 + Type string + type Order struct + Amount float64 + DealAmount float64 + Fee float64 + ID string + Price float64 + StockType string + TradeType string + type OrderBook struct + Amount float64 + Price float64 + type Poloniex struct + func (e *Poloniex) AutoSleep() + func (e *Poloniex) CancelOrder(order Order) bool + func (e *Poloniex) GetAccount() interface{} + func (e *Poloniex) GetMinAmount(stock string) float64 + func (e *Poloniex) GetName() string + func (e *Poloniex) GetOrder(stockType, id string) interface{} + func (e *Poloniex) GetOrders(stockType string) interface{} + func (e *Poloniex) GetRecords(stockType, period string, sizes ...interface{}) interface{} + func (e *Poloniex) GetTicker(stockType string, sizes ...interface{}) interface{} + func (e *Poloniex) GetTrades(stockType string) interface{} + func (e *Poloniex) GetType() string + func (e *Poloniex) Log(msgs ...interface{}) + func (e *Poloniex) SetLimit(times interface{}) float64 + func (e *Poloniex) Simulate(acc map[string]interface{}) bool + func (e *Poloniex) Trade(tradeType string, stockType string, _price, _amount interface{}, ...) interface{} + type Position struct + Amount float64 + ConfirmAmount float64 + ContractType string + FrozenAmount float64 + Leverage int + Price float64 + Profit float64 + StockType string + TradeType string + type Record struct + Close float64 + High float64 + Low float64 + Open float64 + Time int64 + Volume float64 + type Ticker struct + Asks []OrderBook + Bids []OrderBook + Buy float64 + Mid float64 + Sell float64