brokerage

package
v0.0.0-...-58dd970 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	GetQuotes([]string) (string, error)
	GetPositions() (string, error)
	GetOrders() (string, error)

	// CreateOrder accepts: isPreview, class, symbol, duration, side, amount, type, limit/stop price
	CreateOrder(bool, string, string, string, string, int, string, float64) (string, error)
	GetOrder(string) (string, error)
	CancelOrder([]string) (string, error)
}

Broker is the interface for any brokerage

func New

func New(config *config.Config) *Broker

New creates a new brokerage object based on the provided configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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