Versions in this module Expand all Collapse all v0 v0.1.1 May 30, 2021 Changes in this version + var InsufficientFunds = errors.New("account has insufficient balance for requested action") + type Bot struct + Config Config + func New() *Bot + func (b *Bot) BuyIfDecreaseByPercent(symbolPriceChan <-chan string, symbolPriceCloseChan chan<- struct{}, ...) error + func (b *Bot) GetAccountBalance(holdingSymbol string) (money.Bimoney, error) + func (b *Bot) GetCurrentCryptoPrice(symbol string) (<-chan string, chan<- struct{}, error) + func (b *Bot) SellIfIncreaseByPercent(symbolPriceChan <-chan string, symbolPriceCloseChan chan<- struct{}, ...) error + type BuyConfig struct + BuyForPercentOfHoldings uint + BuyQuantity string + BuySymbol string + BuyWithHoldingSymbol string + PercentageDiff int + TargetPriceToBuyAt string + type Config struct + APIKey string + APISecret string + Buy []BuyConfig + Sell []SellConfig + type SellConfig struct + PercentageDiff uint + SellForSymbol string + SellHoldingSymbol string + SellPercentOfHoldings uint + SellQuantityOfHoldings string + TargetPriceToSellAt string