bittrex

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 (self *BittrexEndpoint) FetchOnePairData(wq *sync.WaitGroup, pair common.TokenPair, data *sync.Map, timepoint uint64)

func (*BittrexEndpoint) GetInfo

func (self *BittrexEndpoint) GetInfo(timepoint uint64) (exchange.Bittinfo, error)

func (*BittrexEndpoint) Trade

func (self *BittrexEndpoint) Trade(tradeType string, base, quote common.Token, rate, amount float64, timepoint uint64) (done float64, remaining float64, finished bool, err error)

func (*BittrexEndpoint) Withdraw

func (self *BittrexEndpoint) Withdraw(token common.Token, amount *big.Int, address ethereum.Address, timepoint uint64) error

type Interface

type Interface interface {
	PublicEndpoint(timepoint uint64) string
	MarketEndpoint(timepoint uint64) string
	AccountEndpoint(timepoint uint64) string
}

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 Signer

type Signer interface {
	GetBittrexKey() string
	BittrexSign(msg string) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL