Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker interface { Account() (model.Account, error) Position(pair string) (asset, quote float64, err error) Order(pair string, id int64) (model.Order, error) CreateOrderOCO(side model.SideType, pair string, size, price, stop, stopLimit float64) ([]model.Order, error) CreateOrderLimit(side model.SideType, pair string, size float64, limit float64) (model.Order, error) CreateOrderMarket(side model.SideType, pair string, size float64) (model.Order, error) CreateOrderMarketQuote(side model.SideType, pair string, quote float64) (model.Order, error) Cancel(model.Order) error }
type Feeder ¶
type Feeder interface { CandlesByPeriod(ctx context.Context, pair, period string, start, end time.Time) ([]model.Candle, error) CandlesByLimit(ctx context.Context, pair, period string, limit int) ([]model.Candle, error) CandlesSubscription(ctx context.Context, pair, timeframe string) (chan model.Candle, chan error) }
Click to show internal directories.
Click to hide internal directories.