Documentation ¶
Index ¶
- type Base
- func (b *Base) AppendReason(y string)
- func (b *Base) GetAssetType() asset.Item
- func (b *Base) GetExchange() string
- func (b *Base) GetInterval() kline.Interval
- func (b *Base) GetOffset() int64
- func (b *Base) GetReason() string
- func (b *Base) GetTime() time.Time
- 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"` AssetType asset.Item `json:"asset"` Reason string `json:"reason"` }
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) GetAssetType ¶
GetAssetType returns the asset type
func (*Base) GetInterval ¶
GetInterval returns the interval
Click to show internal directories.
Click to hide internal directories.