liqui

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevInterface

type DevInterface struct{}

func NewDevInterface

func NewDevInterface() *DevInterface

func (*DevInterface) AuthenticatedEndpoint

func (self *DevInterface) AuthenticatedEndpoint(timepoint uint64) string

func (*DevInterface) PublicEndpoint

func (self *DevInterface) PublicEndpoint(timepoint uint64) string

type Interface

type Interface interface {
	PublicEndpoint(timepoint uint64) string
	AuthenticatedEndpoint(timepoint uint64) string
}

type KovanInterface

type KovanInterface struct{}

func NewKovanInterface

func NewKovanInterface() *KovanInterface

func (*KovanInterface) AuthenticatedEndpoint

func (self *KovanInterface) AuthenticatedEndpoint(timepoint uint64) string

func (*KovanInterface) PublicEndpoint

func (self *KovanInterface) PublicEndpoint(timepoint uint64) string

type LiquiEndpoint

type LiquiEndpoint struct {
	// contains filtered or unexported fields
}

func NewDevLiquiEndpoint

func NewDevLiquiEndpoint(signer Signer) *LiquiEndpoint

func NewKovanLiquiEndpoint

func NewKovanLiquiEndpoint(signer Signer) *LiquiEndpoint

func NewLiquiEndpoint

func NewLiquiEndpoint(signer Signer, interf Interface) *LiquiEndpoint

func NewRealLiquiEndpoint

func NewRealLiquiEndpoint(signer Signer) *LiquiEndpoint

func NewSimulatedLiquiEndpoint

func NewSimulatedLiquiEndpoint(signer Signer) *LiquiEndpoint

func (*LiquiEndpoint) ActiveOrders

func (self *LiquiEndpoint) ActiveOrders(timepoint uint64) (exchange.Liqorders, error)

func (*LiquiEndpoint) CancelOrder

func (self *LiquiEndpoint) CancelOrder(id string) (exchange.Liqcancel, error)

func (*LiquiEndpoint) Depth

func (self *LiquiEndpoint) Depth(tokens string, timepoint uint64) (exchange.Liqresp, error)

func (*LiquiEndpoint) GetInfo

func (self *LiquiEndpoint) GetInfo(timepoint uint64) (exchange.Liqinfo, error)

func (*LiquiEndpoint) OrderInfo

func (self *LiquiEndpoint) OrderInfo(orderID string, timepoint uint64) (exchange.Liqorderinfo, error)

func (*LiquiEndpoint) Trade

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

func (*LiquiEndpoint) Withdraw

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

type RealInterface

type RealInterface struct{}

func NewRealInterface

func NewRealInterface() *RealInterface

func (*RealInterface) AuthenticatedEndpoint

func (self *RealInterface) AuthenticatedEndpoint(timepoint uint64) string

func (*RealInterface) PublicEndpoint

func (self *RealInterface) PublicEndpoint(timepoint uint64) string

type Signer

type Signer interface {
	GetLiquiKey() string
	LiquiSign(msg string) string
}

type SimulatedInterface

type SimulatedInterface struct{}

func NewSimulatedInterface

func NewSimulatedInterface() *SimulatedInterface

func (*SimulatedInterface) AuthenticatedEndpoint

func (self *SimulatedInterface) AuthenticatedEndpoint(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