tradier

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brokerage

type Brokerage struct {
	AccountID *string // Account is the account ID that will be used
	// contains filtered or unexported fields
}

Brokerage represents the Tradier brokerage used for the runner

func NewBrokerage

func NewBrokerage(config *config.TradierConfig) *Brokerage

NewBrokerage creates a new instance of *Brokerage

func (*Brokerage) CancelOrder

func (b *Brokerage) CancelOrder(orderIDs []string) (string, error)

CancelOrder cancels pending orders

func (*Brokerage) CreateOrder

func (b *Brokerage) CreateOrder(preview bool, class, symbol, duration, side string, quantity int, orderType string, price float64) (string, error)

func (*Brokerage) GetOrder

func (b *Brokerage) GetOrder(id string) (string, error)

GetOrder fetches a specific order and returns information about it.

func (*Brokerage) GetOrders

func (b *Brokerage) GetOrders() (string, error)

func (*Brokerage) GetPositions

func (b *Brokerage) GetPositions() (string, error)

func (*Brokerage) GetQuotes

func (b *Brokerage) GetQuotes(symbols []string) (string, error)

func (*Brokerage) SwitchAccount

func (b *Brokerage) SwitchAccount(accountID string) error

SwitchAccount switches the account that the client uses to accountID.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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