Documentation ¶
Index ¶
- Constants
- func NormalizeQuoteQuantity(quotePrice sdk.Uint, baseQuantity sdk.Uint) (sdk.Uint, error)
- func PlotCurves(bids []AggregatePrice, asks []AggregatePrice) string
- func ReturnMatcher(m *Matcher)
- type AggregatePrice
- type Direction
- type Fill
- type MatchEntry
- type MatchResults
- type Matcher
- type Order
Constants ¶
View Source
const (
AssetDecimals = 18
)
Variables ¶
This section is empty.
Functions ¶
func NormalizeQuoteQuantity ¶
func PlotCurves ¶
func PlotCurves(bids []AggregatePrice, asks []AggregatePrice) string
func ReturnMatcher ¶
func ReturnMatcher(m *Matcher)
Types ¶
type AggregatePrice ¶
type Direction ¶
type Direction uint8
func (Direction) MarshalJSON ¶
func (*Direction) UnmarshalJSON ¶
type MatchEntry ¶
type MatchResults ¶
type MatchResults struct { ClearingPrice sdk.Uint Fills []Fill MatchTable []MatchEntry BidAggregates []AggregatePrice AskAggregates []AggregatePrice }
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func GetMatcher ¶
func GetMatcher() *Matcher
func NewMatcher ¶
func NewMatcher() *Matcher
func (*Matcher) EnqueueOrder ¶
func (*Matcher) Match ¶
func (m *Matcher) Match() *MatchResults
Click to show internal directories.
Click to hide internal directories.