exchange

package
v0.0.2-0...-13a971e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

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

Types

type OrderCreationRequest

type OrderCreationRequest struct {
	MarketID    store.EntityID     `json:"market_id"`
	Direction   matcheng.Direction `json:"direction"`
	Price       sdk.Uint           `json:"price"`
	Quantity    sdk.Uint           `json:"quantity"`
	Type        string             `json:"type"`
	TimeInForce uint16             `json:"time_in_force"`
}

type OrderCreationResponse

type OrderCreationResponse struct {
	BlockInclusion embedded.BlockInclusion `json:"block_inclusion"`
	ID             store.EntityID          `json:"id"`
	MarketID       store.EntityID          `json:"market_id"`
	Direction      matcheng.Direction      `json:"direction"`
	Price          sdk.Uint                `json:"price"`
	Quantity       sdk.Uint                `json:"quantity"`
	Type           string                  `json:"type"`
	TimeInForce    uint16                  `json:"time_in_force"`
	Status         string                  `json:"status"`
}

Jump to

Keyboard shortcuts

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