Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is core structure for matching engine.
type Kind ¶
type Kind string
Kind of order, either "Market" or "Limit". New types of order can be added.
type Order ¶
type Order struct {
ID uint64 `json:"id"`
Side Side `json:"side"`
Kind Kind `json:"kind"`
Price decimal.Decimal `json:"price"`
Volume decimal.Decimal `json:"volume"`
Locked decimal.Decimal `json:"locked"`
Received decimal.Decimal `json:"received"`
}
Order is simple representation of order for matching engine.
Click to show internal directories.
Click to hide internal directories.