Documentation ¶
Index ¶
- type 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
- type RealInterface
- type Signer
- type SimulatedInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BittrexEndpoint ¶
type BittrexEndpoint struct {
// contains filtered or unexported fields
}
func NewBittrexEndpoint ¶
func NewBittrexEndpoint(signer Signer, interf Interface) *BittrexEndpoint
func NewRealBittrexEndpoint ¶
func NewRealBittrexEndpoint(signer Signer) *BittrexEndpoint
func NewSimulatedBittrexEndpoint ¶
func NewSimulatedBittrexEndpoint(signer Signer) *BittrexEndpoint
func (*BittrexEndpoint) FetchOnePairData ¶
func (*BittrexEndpoint) GetInfo ¶
func (self *BittrexEndpoint) GetInfo(timepoint uint64) (exchange.Bittinfo, error)
type RealInterface ¶
type RealInterface struct{}
func NewRealInterface ¶
func NewRealInterface() *RealInterface
func (*RealInterface) AccountEndpoint ¶
func (self *RealInterface) AccountEndpoint(timepoint uint64) string
func (*RealInterface) MarketEndpoint ¶
func (self *RealInterface) MarketEndpoint(timepoint uint64) string
func (*RealInterface) PublicEndpoint ¶
func (self *RealInterface) PublicEndpoint(timepoint uint64) string
type SimulatedInterface ¶
type SimulatedInterface struct{}
func NewSimulatedInterface ¶
func NewSimulatedInterface() *SimulatedInterface
func (*SimulatedInterface) AccountEndpoint ¶
func (self *SimulatedInterface) AccountEndpoint(timepoint uint64) string
func (*SimulatedInterface) MarketEndpoint ¶
func (self *SimulatedInterface) MarketEndpoint(timepoint uint64) string
func (*SimulatedInterface) PublicEndpoint ¶
func (self *SimulatedInterface) PublicEndpoint(timepoint uint64) string
Click to show internal directories.
Click to hide internal directories.