Documentation ¶
Index ¶
- Variables
- type CandleSubscriber
- type Dataframe
- type NinjaBot
- type Option
- func WithBacktest(wallet *exchange.PaperWallet) Option
- func WithCandleSubscription(subscriber CandleSubscriber) Option
- func WithLogLevel(level log.Level) Option
- func WithNotifier(notifier service.Notifier) Option
- func WithOrderSubscription(subscriber OrderSubscriber) Option
- func WithPaperWallet(wallet *exchange.PaperWallet) Option
- func WithStorage(storage storage.Storage) Option
- type OrderStatusType
- type OrderSubscriber
- type OrderType
- type Series
- type Settings
- type SideType
- type TelegramSettings
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SideTypeBuy = model.SideTypeBuy SideTypeSell = model.SideTypeSell OrderTypeLimit = model.OrderTypeLimit OrderTypeMarket = model.OrderTypeMarket OrderTypeLimitMaker = model.OrderTypeLimitMaker OrderTypeStopLoss = model.OrderTypeStopLoss OrderTypeStopLossLimit = model.OrderTypeStopLossLimit OrderTypeTakeProfit = model.OrderTypeTakeProfit OrderTypeTakeProfitLimit = model.OrderTypeTakeProfitLimit OrderStatusTypeNew = model.OrderStatusTypeNew OrderStatusTypePartiallyFilled = model.OrderStatusTypePartiallyFilled OrderStatusTypeFilled = model.OrderStatusTypeFilled OrderStatusTypeCanceled = model.OrderStatusTypeCanceled OrderStatusTypePendingCancel = model.OrderStatusTypePendingCancel OrderStatusTypeRejected = model.OrderStatusTypeRejected OrderStatusTypeExpired = model.OrderStatusTypeExpired )
Functions ¶
This section is empty.
Types ¶
type CandleSubscriber ¶
type NinjaBot ¶
type NinjaBot struct {
// contains filtered or unexported fields
}
func (*NinjaBot) Controller ¶ added in v0.0.6
func (n *NinjaBot) Controller() *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 WithBacktest ¶ added in v0.0.9
func WithBacktest(wallet *exchange.PaperWallet) Option
func WithCandleSubscription ¶
func WithCandleSubscription(subscriber CandleSubscriber) Option
func WithLogLevel ¶
func WithNotifier ¶
func WithOrderSubscription ¶ added in v0.0.2
func WithOrderSubscription(subscriber OrderSubscriber) Option
func WithPaperWallet ¶ added in v0.0.7
func WithPaperWallet(wallet *exchange.PaperWallet) Option
func WithStorage ¶
type OrderStatusType ¶ added in v0.0.7
type OrderStatusType = model.OrderStatusType
type OrderSubscriber ¶
type TelegramSettings ¶ added in v0.0.7
type TelegramSettings = model.TelegramSettings
Click to show internal directories.
Click to hide internal directories.