obyte

package
v0.0.0-...-5ae7496 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObyteProvider

type ObyteProvider struct {
	Client   jsonrpc.RPCClient
	WSClient *websocket.Conn
}

func NewObyteProvider

func NewObyteProvider() *ObyteProvider

func (*ObyteProvider) AddOrder

func (o *ObyteProvider) AddOrder(signedOrder *interface{}) (string, error)

func (*ObyteProvider) Asset

func (o *ObyteProvider) Asset(symbol string) (string, error)

func (*ObyteProvider) BalanceOf

func (o *ObyteProvider) BalanceOf(owner string, token string) (int64, error)

func (*ObyteProvider) CancelOrder

func (o *ObyteProvider) CancelOrder(signedCancel *interface{}) error

func (*ObyteProvider) Decimals

func (o *ObyteProvider) Decimals(token string) (uint8, error)

func (*ObyteProvider) ExecuteTrade

func (o *ObyteProvider) ExecuteTrade(m *types.Matches) ([]string, error)

func (*ObyteProvider) GetAuthorizedAddresses

func (o *ObyteProvider) GetAuthorizedAddresses(address string) ([]string, error)

func (*ObyteProvider) GetBalances

func (o *ObyteProvider) GetBalances(owner string) map[string]int64

func (*ObyteProvider) GetFees

func (o *ObyteProvider) GetFees() (float64, float64)

func (*ObyteProvider) GetOperatorAddress

func (o *ObyteProvider) GetOperatorAddress() string

func (*ObyteProvider) ListenToEvents

func (o *ObyteProvider) ListenToEvents() (chan map[string]interface{}, error)

func (*ObyteProvider) Symbol

func (o *ObyteProvider) Symbol(token string) (string, error)

Jump to

Keyboard shortcuts

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