Documentation
¶
Index ¶
- type CandleSubscriber
- type NinjaBot
- type Option
- func WithCandleSubscription(subscriber CandleSubscriber) Option
- func WithLogLevel(level log.Level) Option
- func WithNotifier(notifier notification.Notifier) Option
- func WithOrderSubscription(subscriber OrderSubscriber) Option
- func WithStorage(storage *ent.Client) Option
- func WithStrategyController(register StrategyControllerRegister) Option
- type OrderSubscriber
- type StrategyController
- type StrategyControllerRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CandleSubscriber ¶
type NinjaBot ¶
type NinjaBot struct {
// contains filtered or unexported fields
}
func (*NinjaBot) OrderController ¶ added in v0.0.7
func (n *NinjaBot) OrderController() *order.Controller
func (*NinjaBot) SubscribeCandle ¶
func (n *NinjaBot) SubscribeCandle(subscriptions ...CandleSubscriber)
func (*NinjaBot) SubscribeOrder ¶
func (n *NinjaBot) SubscribeOrder(subscriptions ...OrderSubscriber)
type Option ¶
type Option func(*NinjaBot)
func WithCandleSubscription ¶
func WithCandleSubscription(subscriber CandleSubscriber) Option
func WithLogLevel ¶
func WithNotifier ¶
func WithNotifier(notifier notification.Notifier) Option
func WithOrderSubscription ¶
func WithOrderSubscription(subscriber OrderSubscriber) Option
func WithStorage ¶
func WithStrategyController ¶ added in v0.0.6
func WithStrategyController(register StrategyControllerRegister) Option
type OrderSubscriber ¶
type StrategyController ¶ added in v0.0.6
type StrategyController interface { CandleSubscriber Start() }
type StrategyControllerRegister ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.