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 + type BittrexEndpoint struct + func NewBittrexEndpoint(signer Signer, interf Interface) *BittrexEndpoint + func NewRealBittrexEndpoint(signer Signer) *BittrexEndpoint + func NewSimulatedBittrexEndpoint(signer Signer) *BittrexEndpoint + func (self *BittrexEndpoint) FetchOnePairData(wq *sync.WaitGroup, pair common.TokenPair, data *sync.Map, timepoint uint64) + func (self *BittrexEndpoint) GetInfo(timepoint uint64) (exchange.Bittinfo, error) + func (self *BittrexEndpoint) Trade(tradeType string, base, quote common.Token, rate, amount float64, ...) (done float64, remaining float64, finished bool, err error) + func (self *BittrexEndpoint) Withdraw(token common.Token, amount *big.Int, address ethereum.Address, ...) error + type Interface interface + AccountEndpoint func(timepoint uint64) string + MarketEndpoint func(timepoint uint64) string + PublicEndpoint func(timepoint uint64) string + type RealInterface struct + func NewRealInterface() *RealInterface + func (self *RealInterface) AccountEndpoint(timepoint uint64) string + func (self *RealInterface) MarketEndpoint(timepoint uint64) string + func (self *RealInterface) PublicEndpoint(timepoint uint64) string + type Signer interface + BittrexSign func(msg string) string + GetBittrexKey func() string + type SimulatedInterface struct + func NewSimulatedInterface() *SimulatedInterface + func (self *SimulatedInterface) AccountEndpoint(timepoint uint64) string + func (self *SimulatedInterface) MarketEndpoint(timepoint uint64) string + func (self *SimulatedInterface) PublicEndpoint(timepoint uint64) string