Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidOrderQty is the error for an invalid order quantity. ErrInvalidOrderQty = errors.New("invalid-order-quantity") )
View Source
var ( // ErrInvalidSide is the error for an invalid order side. ErrInvalidSide = errors.New("invalid-order-side") )
View Source
var ( // ErrInvalidType is the error for an invalid order type. ErrInvalidType = errors.New("invalid-order-type") )
View Source
var ( // Sides is the list of all the possible sides for an order. Sides = []Side{ SideIsBuy, SideIsSell, } )
View Source
var ( // Types is the list of order types. Types = []Type{ TypeIsMarket, } )
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct {
ID uuid.UUID `json:"id"`
ExecutionTime *time.Time `json:"execution_time"`
Type Type `json:"type"`
Exchange string `json:"exchange"`
Pair string `json:"pair"`
Side Side `json:"side"`
Quantity float64 `json:"quantity"`
Price float64 `json:"price"`
}
Order is the struct for an order.
type Side ¶
type Side string
Side is the side of an order.
Click to show internal directories.
Click to hide internal directories.