book

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2019 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryGet = "get"
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper order.Keeper) sdk.Querier

func RegisterRoutes

func RegisterRoutes(ctx context.CLIContext, r *mux.Router, cdc *codec.Codec)

Types

type Book

type Book struct {
	Bids []matcheng.AggregatePrice `json:"bids"`
	Asks []matcheng.AggregatePrice `json:"asks"`
}

type QueryResult

type QueryResult struct {
	MarketID    store.EntityID     `json:"market_id"`
	BlockNumber int64              `json:"block_number"`
	Bids        []QueryResultEntry `json:"bids"`
	Asks        []QueryResultEntry `json:"asks"`
}

type QueryResultEntry

type QueryResultEntry struct {
	Price    sdk.Uint `json:"price"`
	Quantity sdk.Uint `json:"quantity"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL