Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAccountModels ¶
Types ¶
type ForwardTest ¶
type ForwardTest struct { ID string `bson:"_id"` UpdatedAt time.Time `bson:"updated_at"` Accounts map[string]Account `bson:"accounts"` Orders []Order `bson:"orders"` }
func FromForwardTestModel ¶
func FromForwardTestModel(ft forwardtest.ForwardTest) ForwardTest
func (ForwardTest) ToModel ¶
func (ft ForwardTest) ToModel() (forwardtest.ForwardTest, error)
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 ¶
Click to show internal directories.
Click to hide internal directories.