Documentation ¶
Index ¶
- Constants
- Variables
- type Currency
- type Result
- type Strategy
- type Wallet
- func (w *Wallet) Add(closePrice, amount, comission float64)
- func (w *Wallet) AddCurrency(currency Currency)
- func (w *Wallet) AmountUSD() float64
- func (w *Wallet) Currencies() []Currency
- func (w *Wallet) ExchangeTest(ctx context.Context, startTime, endTime time.Time, strat Strategy) ([]Result, error)
- func (w *Wallet) Sub(closePrice, amount, comission float64)
Constants ¶
View Source
const ( USDT = iota BTC ETH CandleLimit = 1000 )
Variables ¶
View Source
var Strategies = map[string]Strategy{ "kov": strategy.NewKOV(13, 200), "ema": strategy.NewEMATest(13), "first": strategy.NewFirst(200, 10, 50, 9, 20), "elliott": strategy.NewElliott(5, 5, 8, 8, 8), }
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) AddCurrency ¶
func (*Wallet) Currencies ¶
func (*Wallet) ExchangeTest ¶
Click to show internal directories.
Click to hide internal directories.