types

package
v0.0.0-...-8b40e26 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchPrice

func FetchPrice() (float64, error)

Types

type Balance

type Balance struct {
	BTC float64
	EUR float64
}

type State

type State struct {
	CurrentPrice float64
	OpenOrders   []string
	Balance      Balance
}

func (*State) CancelOrders

func (s *State) CancelOrders()

Cancel all open orders

func (*State) HasPosition

func (s *State) HasPosition() bool

Cancel all open orders

func (*State) RefreshAll

func (s *State) RefreshAll()

Public method to refresh all data async

func (*State) TriggerStopOrder

func (s *State) TriggerStopOrder()

Send market sell

Jump to

Keyboard shortcuts

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