Versions in this module Expand all Collapse all v0 v0.0.2 Oct 30, 2019 v0.0.1 Oct 30, 2019 Changes in this version + const AssetDecimals + func NormalizeQuoteQuantity(quotePrice sdk.Uint, baseQuantity sdk.Uint) (sdk.Uint, error) + func PlotCurves(bids []AggregatePrice, asks []AggregatePrice) string + func ReturnMatcher(m *Matcher) + type AggregatePrice [2]sdk.Uint + type Direction uint8 + const Ask + const Bid + func (d *Direction) UnmarshalJSON(data []byte) error + func (d Direction) MarshalJSON() ([]byte, error) + func (d Direction) String() string + type Fill struct + OrderID store.EntityID + QtyFilled sdk.Uint + QtyUnfilled sdk.Uint + type MatchEntry [3]sdk.Uint + type MatchResults struct + AskAggregates []AggregatePrice + BidAggregates []AggregatePrice + ClearingPrice sdk.Uint + Fills []Fill + MatchTable []MatchEntry + type Matcher struct + func GetMatcher() *Matcher + func NewMatcher() *Matcher + func (m *Matcher) EnqueueOrder(oType Direction, id store.EntityID, price sdk.Uint, quantity sdk.Uint) + func (m *Matcher) Match() *MatchResults + func (m *Matcher) Reset() + type Order struct + ID store.EntityID + Price sdk.Uint + Quantity sdk.Uint