Documentation
¶
Index ¶
- type BitfinexEndpoint
- func (self *BitfinexEndpoint) FetchOnePairData(wg *sync.WaitGroup, pair common.TokenPair, data *sync.Map, timepoint uint64)
- func (self *BitfinexEndpoint) GetInfo(timepoint uint64) (exchange.Bitfinfo, error)
- func (self *BitfinexEndpoint) Trade(tradeType string, base, quote common.Token, rate, amount float64, ...) (done float64, remaining float64, finished bool, err error)
- func (self *BitfinexEndpoint) 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 BitfinexEndpoint ¶
type BitfinexEndpoint struct {
// contains filtered or unexported fields
}
func NewBitfinexEndpoint ¶
func NewBitfinexEndpoint(signer Signer, interf Interface) *BitfinexEndpoint
func NewRealBitfinexEndpoint ¶
func NewRealBitfinexEndpoint(signer Signer) *BitfinexEndpoint
func NewSimulatedBitfinexEndpoint ¶
func NewSimulatedBitfinexEndpoint(signer Signer) *BitfinexEndpoint
func (*BitfinexEndpoint) FetchOnePairData ¶
func (*BitfinexEndpoint) GetInfo ¶
func (self *BitfinexEndpoint) GetInfo(timepoint uint64) (exchange.Bitfinfo, error)
type RealInterface ¶
type RealInterface struct{}
func NewRealInterface ¶
func NewRealInterface() *RealInterface
func (*RealInterface) AuthenticatedEndpoint ¶
func (self *RealInterface) AuthenticatedEndpoint() string
func (*RealInterface) PublicEndpoint ¶
func (self *RealInterface) PublicEndpoint() string
type SimulatedInterface ¶
type SimulatedInterface struct{}
func NewSimulatedInterface ¶
func NewSimulatedInterface() *SimulatedInterface
func (*SimulatedInterface) AuthenticatedEndpoint ¶
func (self *SimulatedInterface) AuthenticatedEndpoint() string
func (*SimulatedInterface) PublicEndpoint ¶
func (self *SimulatedInterface) PublicEndpoint() string
Click to show internal directories.
Click to hide internal directories.