Documentation ¶
Index ¶
- type Base
- func (b *Base) AppendReason(y string)
- func (b *Base) AppendReasonf(y string, addons ...interface{})
- func (b *Base) GetAssetType() asset.Item
- func (b *Base) GetBase() *Base
- func (b *Base) GetConcatReasons() string
- func (b *Base) GetExchange() string
- func (b *Base) GetInterval() kline.Interval
- func (b *Base) GetOffset() int64
- func (b *Base) GetReasons() []string
- func (b *Base) GetTime() time.Time
- func (b *Base) GetUnderlyingPair() currency.Pair
- func (b *Base) IsEvent() bool
- func (b *Base) Pair() currency.Pair
- func (b *Base) SetOffset(o int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Offset int64 `json:"-"` Exchange string `json:"exchange"` Time time.Time `json:"timestamp"` Interval kline.Interval `json:"interval-size"` CurrencyPair currency.Pair `json:"pair"` UnderlyingPair currency.Pair `json:"underlying"` AssetType asset.Item `json:"asset"` Reasons []string `json:"reasons"` }
Base is the underlying event across all actions that occur for the backtester Data, fill, order events all contain the base event and store important and consistent information
func (*Base) AppendReason ¶
AppendReason adds reasoning for a decision being made
func (*Base) AppendReasonf ¶
AppendReasonf adds reasoning for a decision being made but with formatting
func (*Base) GetAssetType ¶
GetAssetType returns the asset type
func (*Base) GetConcatReasons ¶
GetConcatReasons returns the why
func (*Base) GetInterval ¶
GetInterval returns the interval
func (*Base) GetReasons ¶
GetReasons returns each individual reason
func (*Base) GetUnderlyingPair ¶
GetUnderlyingPair returns the currency pair
Click to show internal directories.
Click to hide internal directories.