balance

package
v0.0.0-...-48f5d39 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

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

Balance contains the balance information for the account connected to the broker session

func New

func New() *Balance

func (*Balance) Copy

func (b *Balance) Copy() *Balance

Copy returns a copy of the balance structure TODO: MEDIUM : update to do deep copy of dereferenced pointer values

func (*Balance) NetLiquidity

func (b *Balance) NetLiquidity() float64

NetLiquidity pulls the current liquidity of the account connected to the broker session

func (*Balance) OptionBuyingPower

func (b *Balance) OptionBuyingPower() float64

OptionBuyingPower pulls the current option buying power of the account connected to the broker session

func (*Balance) SetNetLiquidity

func (b *Balance) SetNetLiquidity(liq float64)

SetNetLiquidity sets the current liquidity of the account connected to the broker session

func (*Balance) SetOptionBuyingPower

func (b *Balance) SetOptionBuyingPower(obp float64)

SetOptionBuyingPower sets the current option buying power of the account connected to the broker session

Jump to

Keyboard shortcuts

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