Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToTickSubscriptionModels ¶
func ToTickSubscriptionModels(entities []TickSubscription) []event.TickSubscription
Types ¶
type Backtest ¶
type Backtest struct { ID string `bson:"_id"` StartTime time.Time `bson:"start_time"` CurrentTime time.Time `bson:"current_time"` CurrentPriceType string `bson:"current_price_type"` EndTime time.Time `bson:"end_time"` PeriodBetweenEvents string `bson:"period_between_events"` Balances []Balance `bson:"balances"` Orders []Order `bson:"orders"` TickSubscriptions []TickSubscription `bson:"tick_subscriptions"` }
func FromBacktestModel ¶
type Balance ¶
type Order ¶
type Order struct { ID string `bson:"id"` ExecutionTime *time.Time `bson:"execution_time"` Type string `bson:"type"` Exchange string `bson:"exchange"` Pair string `bson:"pair"` Side string `bson:"side"` Quantity float64 `bson:"quantity"` Price float64 `bson:"price"` }
func FromOrderModel ¶
func FromOrderModels ¶
type TickSubscription ¶
func FromTickSubscriptionModel ¶
func FromTickSubscriptionModel(m event.TickSubscription) TickSubscription
func FromTickSubscriptionModels ¶
func FromTickSubscriptionModels(models []event.TickSubscription) []TickSubscription
func (TickSubscription) ToModel ¶
func (ts TickSubscription) ToModel() event.TickSubscription
Click to show internal directories.
Click to hide internal directories.