Versions in this module Expand all Collapse all v0 v0.1.1 Jan 8, 2019 v0.1.0 Dec 6, 2017 Changes in this version + const DEPOSIT_WAITING_TIME + const WITHDRAW_WAITING_TIME + type Binacancel struct + ClientOrderId string + Code int + Msg string + OrderId uint64 + OrigClientOrderId string + Symbol string + type Binadeposit struct + Address string + Amount float64 + Asset string + InsertTime uint64 + Status int + TxID string + type Binadepositaddress struct + Address string + AddressTag string + Asset string + Msg string + Success bool + type Binadeposits struct + Deposits []Binadeposit + Msg string + Success bool + type Binainfo struct + Balances []struct{ ... } + BuyerCommission int64 + CanDeposit bool + CanTrade bool + CanWithdraw bool + Code int + MakerCommission int64 + Msg string + SellerCommission int64 + TakerCommission int64 + type Binance struct + func NewBinance(interf BinanceInterface) *Binance + func (self *Binance) Address(token common.Token) (ethereum.Address, bool) + func (self *Binance) CancelOrder(id common.ActivityID) error + func (self *Binance) DepositStatus(id common.ActivityID, timepoint uint64) (string, error) + func (self *Binance) FetchEBalanceData(timepoint uint64) (common.EBalanceEntry, error) + func (self *Binance) FetchOrderData(timepoint uint64) (common.OrderEntry, error) + func (self *Binance) ID() common.ExchangeID + func (self *Binance) MarshalText() (text []byte, err error) + func (self *Binance) Name() string + func (self *Binance) OrderStatus(id common.ActivityID, timepoint uint64) (string, error) + func (self *Binance) TokenPairs() []common.TokenPair + func (self *Binance) Trade(tradeType string, base common.Token, quote common.Token, rate float64, ...) (id string, done float64, remaining float64, finished bool, err error) + func (self *Binance) UpdateAllDepositAddresses(address string) + func (self *Binance) UpdateDepositAddress(token common.Token, address string) + func (self *Binance) Withdraw(token common.Token, amount *big.Int, address ethereum.Address, ...) (string, error) + func (self *Binance) WithdrawStatus(id common.ActivityID, timepoint uint64) (string, error) + func (self Binance) FetchPriceData(timepoint uint64) (map[common.TokenPairID]common.ExchangePrice, error) + type BinanceInterface interface + CancelOrder func(symbol string, id uint64) (Binacancel, error) + DepositHistory func(startTime, endTime uint64) (Binadeposits, error) + FetchOnePairData func(wg *sync.WaitGroup, pair common.TokenPair, data *sync.Map, timepoint uint64) + GetInfo func(timepoint uint64) (Binainfo, error) + OpenOrdersForOnePair func(wg *sync.WaitGroup, pair common.TokenPair, data *sync.Map, timepoint uint64) + OrderStatus func(symbol string, id uint64, timepoint uint64) (Binaorder, error) + Trade func(tradeType string, base, quote common.Token, rate, amount float64, ...) (id string, done float64, remaining float64, finished bool, err error) + Withdraw func(token common.Token, amount *big.Int, address ethereum.Address, ...) (string, error) + WithdrawHistory func(startTime, endTime uint64) (Binawithdrawals, error) + type Binaorder struct + ClientOrderId string + Code int + ExecutedQty string + IcebergQty string + Message string + OrderId uint64 + OrigQty string + Price string + Side string + Status string + StopPrice string + Symbol string + Time uint64 + TimeInForce string + Type string + type Binaorders []Binaorder + type Binaresp struct + Asks [][]string + Bids [][]string + Code int + LastUpdatedId int64 + Msg string + type Binatrade struct + ClientOrderID string + OrderID uint64 + Symbol string + TransactTime uint64 + type Binawithdraw struct + ID string + Message string + Success bool + type Binawithdrawal struct + Address string + Amount float64 + ApplyTime uint64 + Asset string + ID string + Status int + TxID string + type Binawithdrawals struct + Msg string + Success bool + Withdrawals []Binawithdrawal + type Bitfinex struct + func NewBitfinex(interf BitfinexInterface) *Bitfinex + func (self *Bitfinex) Address(token common.Token) (ethereum.Address, bool) + func (self *Bitfinex) FetchEBalanceData(timepoint uint64) (common.EBalanceEntry, error) + func (self *Bitfinex) FetchPriceData(timepoint uint64) (map[common.TokenPairID]common.ExchangePrice, error) + func (self *Bitfinex) ID() common.ExchangeID + func (self *Bitfinex) MarshalText() (text []byte, err error) + func (self *Bitfinex) Name() string + func (self *Bitfinex) TokenPairs() []common.TokenPair + func (self *Bitfinex) Trade(tradeType string, base common.Token, quote common.Token, rate float64, ...) (done float64, remaining float64, finished bool, err error) + func (self *Bitfinex) UpdateAllDepositAddresses(address string) + func (self *Bitfinex) UpdateDepositAddress(token common.Token, address string) + func (self *Bitfinex) Withdraw(token common.Token, amount *big.Int, address ethereum.Address, ...) error + type BitfinexInterface interface + FetchOnePairData func(wg *sync.WaitGroup, pair common.TokenPair, data *sync.Map, timepoint uint64) + GetInfo func(timepoint uint64) (Bitfinfo, error) + Trade func(tradeType string, base, quote common.Token, rate, amount float64, ...) (done float64, remaining float64, finished bool, err error) + Withdraw func(token common.Token, amount *big.Int, address ethereum.Address, ...) error + type Bitfinfo struct + Error string + Return map[string]map[string]float64 + Success int + type Bitfresp struct + Asks []map[string]string + Bids []map[string]string + type Bitftrade struct + Error string + Return struct{ ... } + Success int + type Bitfwithdraw struct + Error string + Return map[string]interface{} + Success int + type Bittinfo struct + Error string + Result struct{ ... } + Success int + type Bittresp struct + Msg string + Result map[string][]map[string]float64 + Success bool + type Bittrex struct + func NewBittrex(interf BittrexInterface) *Bittrex + func (self *Bittrex) Address(token common.Token) (ethereum.Address, bool) + func (self *Bittrex) FetchEBalanceData(timepoint uint64) (common.EBalanceEntry, error) + func (self *Bittrex) FetchPriceData(timepoint uint64) (map[common.TokenPairID]common.ExchangePrice, error) + func (self *Bittrex) ID() common.ExchangeID + func (self *Bittrex) MarshalText() (text []byte, err error) + func (self *Bittrex) Name() string + func (self *Bittrex) TokenPairs() []common.TokenPair + func (self *Bittrex) Trade(tradeType string, base common.Token, quote common.Token, rate float64, ...) (done float64, remaining float64, finished bool, err error) + func (self *Bittrex) UpdateAllDepositAddresses(address string) + func (self *Bittrex) UpdateDepositAddress(token common.Token, address string) + func (self *Bittrex) Withdraw(token common.Token, amount *big.Int, address ethereum.Address, ...) error + type BittrexInterface interface + FetchOnePairData func(wq *sync.WaitGroup, pair common.TokenPair, data *sync.Map, timepoint uint64) + GetInfo func(timepoint uint64) (Bittinfo, error) + Trade func(tradeType string, base, quote common.Token, rate, amount float64, ...) (done float64, remaining float64, finished bool, err error) + Withdraw func(token common.Token, amount *big.Int, address ethereum.Address, ...) error + type Bitttrade struct + Error string + Return Bitttraderesult + Success int + type Bitttraderesult struct + Done float64 + OrderID int64 + Remaining float64 + type Bittwithdraw struct + Error string + Return map[string]interface{} + Success int + type Liqcancel struct + Error string + Return struct{ ... } + Success int + type Liqinfo struct + Error string + Return map[string]map[string]float64 + Success int + type Liqorderinfo struct + Error string + Return map[string]struct{ ... } + Success int + type Liqorders struct + Error string + Return map[string]struct{ ... } + Success int + type Liqresp map[string]map[string][][]float64 + type Liqtrade struct + Error string + Return struct{ ... } + Success int + type Liqui struct + func NewLiqui(interf LiquiInterface) *Liqui + func (self *Liqui) Address(token common.Token) (ethereum.Address, bool) + func (self *Liqui) CancelOrder(id common.ActivityID) error + func (self *Liqui) DepositStatus(id common.ActivityID, timepoint uint64) (string, error) + func (self *Liqui) FetchEBalanceData(timepoint uint64) (common.EBalanceEntry, error) + func (self *Liqui) FetchOrderData(timepoint uint64) (common.OrderEntry, error) + func (self *Liqui) FetchPriceData(timepoint uint64) (map[common.TokenPairID]common.ExchangePrice, error) + func (self *Liqui) ID() common.ExchangeID + func (self *Liqui) MarshalText() (text []byte, err error) + func (self *Liqui) Name() string + func (self *Liqui) OrderStatus(id common.ActivityID, timepoint uint64) (string, error) + func (self *Liqui) TokenPairs() []common.TokenPair + func (self *Liqui) Trade(tradeType string, base common.Token, quote common.Token, rate float64, ...) (id string, done float64, remaining float64, finished bool, err error) + func (self *Liqui) UpdateAllDepositAddresses(address string) + func (self *Liqui) UpdateDepositAddress(token common.Token, address string) + func (self *Liqui) Withdraw(token common.Token, amount *big.Int, address ethereum.Address, ...) (string, error) + func (self *Liqui) WithdrawStatus(id common.ActivityID, timepoint uint64) (string, error) + type LiquiInterface interface + ActiveOrders func(timepoint uint64) (Liqorders, error) + CancelOrder func(id string) (Liqcancel, error) + Depth func(tokens string, timepoint uint64) (Liqresp, error) + GetInfo func(timepoint uint64) (Liqinfo, error) + OrderInfo func(orderID string, timepoint uint64) (Liqorderinfo, error) + Trade func(tradeType string, base, quote common.Token, rate, amount float64, ...) (id string, done float64, remaining float64, finished bool, err error) + Withdraw func(token common.Token, amount *big.Int, address ethereum.Address, ...) error + type Liqwithdraw struct + Error string + Return map[string]interface{} + Success int