Documentation ¶
Index ¶
- type Brokerage
- func (b *Brokerage) CancelOrder(orderIDs []string) (string, error)
- func (b *Brokerage) CreateOrder(preview bool, class, symbol, duration, side string, quantity int, ...) (string, error)
- func (b *Brokerage) GetOrder(id string) (string, error)
- func (b *Brokerage) GetOrders() (string, error)
- func (b *Brokerage) GetPositions() (string, error)
- func (b *Brokerage) GetQuotes(symbols []string) (string, error)
- func (b *Brokerage) SwitchAccount(accountID string) error
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 ¶
CancelOrder cancels pending orders
func (*Brokerage) CreateOrder ¶
func (*Brokerage) GetPositions ¶
func (*Brokerage) SwitchAccount ¶
SwitchAccount switches the account that the client uses to accountID.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.