Documentation ¶
Index ¶
- type Controller
- func (c *Controller) Account() (model.Account, error)
- func (c *Controller) Cancel(order model.Order) error
- func (c *Controller) CancelOpenOrders(pair string) error
- func (c *Controller) CreateOrderLimit(side model.SideType, pair string, size, limit float64) (model.Order, error)
- func (c *Controller) CreateOrderMarket(side model.SideType, pair string, size float64) (model.Order, error)
- func (c *Controller) CreateOrderMarketQuote(side model.SideType, pair string, amount float64) (model.Order, error)
- func (c *Controller) CreateOrderOCO(side model.SideType, pair string, size, price, stop, stopLimit float64) ([]model.Order, error)
- func (c *Controller) CreateOrderStop(pair string, size float64, limit float64) (model.Order, error)
- func (c *Controller) LastQuote(pair string) (float64, error)
- func (c *Controller) OnCandle(candle model.Candle)
- func (c *Controller) OpenOrders(pair string) ([]model.Order, error)
- func (c *Controller) Order(pair string, id int64) (model.Order, error)
- func (c *Controller) Position(pair string) (asset, quote float64, err error)
- func (c *Controller) PositionValue(pair string) (float64, error)
- func (c *Controller) SetNotifier(notifier service.Notifier)
- func (c *Controller) Start()
- func (c *Controller) Status() Status
- func (c *Controller) Stop()
- func (c *Controller) TakeProfit(side model.SideType, pair string, quantity float64, limit float64) (model.Order, error)
- type DataFeed
- type Feed
- type FeedConsumer
- type Position
- type Result
- type Status
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Results map[string]*summary // contains filtered or unexported fields }
func NewController ¶
func (*Controller) CancelOpenOrders ¶ added in v0.1.9
func (c *Controller) CancelOpenOrders(pair string) error
func (*Controller) CreateOrderLimit ¶
func (*Controller) CreateOrderMarket ¶
func (*Controller) CreateOrderMarketQuote ¶
func (*Controller) CreateOrderOCO ¶
func (*Controller) CreateOrderStop ¶
func (*Controller) OnCandle ¶
func (c *Controller) OnCandle(candle model.Candle)
func (*Controller) OpenOrders ¶ added in v0.2.3
func (c *Controller) OpenOrders(pair string) ([]model.Order, error)
func (*Controller) Position ¶
func (c *Controller) Position(pair string) (asset, quote float64, err error)
func (*Controller) PositionValue ¶
func (c *Controller) PositionValue(pair string) (float64, error)
func (*Controller) SetNotifier ¶
func (c *Controller) SetNotifier(notifier service.Notifier)
func (*Controller) Start ¶
func (c *Controller) Start()
func (*Controller) Status ¶
func (c *Controller) Status() Status
func (*Controller) Stop ¶
func (c *Controller) Stop()
type Feed ¶
type Feed struct { OrderFeeds map[string]*DataFeed SubscriptionsBySymbol map[string][]Subscription }
func NewOrderFeed ¶
func NewOrderFeed() *Feed
type FeedConsumer ¶
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.