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
Click to show internal directories.
Click to hide internal directories.