Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoInvest ¶
type AutoInvest struct { Buy *BuyConfiguration Balance *BalanceConfiguration }
type BalanceConfiguration ¶
type BuyConfiguration ¶
type Credentials ¶
type ExchangeClient ¶
type ExchangeClient interface { Authenticate(ctx context.Context, creds *sharesies.Credentials) (*sharesies.ProfileResponse, error) CostBuy(ctx context.Context, fundId string, amount float64) (*sharesies.CostBuyResponse, error) Buy(ctx context.Context, costBuy *sharesies.CostBuyResponse) (*sharesies.ProfileResponse, error) CostSell(ctx context.Context, foundId string, shareAmount float64) (*sharesies.CostSellResponse, error) Sell(ctx context.Context, sellBuy *sharesies.CostSellResponse) (*sharesies.ProfileResponse, error) }
type SharesiesBot ¶
type SharesiesBot struct {
// contains filtered or unexported fields
}
func New ¶
func New(scheduler Scheduler, client ExchangeClient, config *AutoInvest) *SharesiesBot
func (*SharesiesBot) Run ¶
func (b *SharesiesBot) Run() error
Click to show internal directories.
Click to hide internal directories.