gotrade: Index | Files

package order

import ""

Core order APIs


Package Files



var (
    MessageBus *messagebus.Conn

type Order Uses

type Order struct {

Order struct extends protobuf Order /proto/order/order.proto

func (*Order) CanCancel Uses

func (m *Order) CanCancel() bool

Status that Order can be cancelled

func (*Order) CanReplace Uses

func (m *Order) CanReplace() bool

Status that Order can be replaced

func (*Order) IsCompleted Uses

func (m *Order) IsCompleted() bool

func (*Order) String Uses

func (m *Order) String() string

Pretty print order, usually for logging

func (*Order) Validate Uses

func (m *Order) Validate() error

Basic validation of Order, usually unmarshaled off message bus

Package order imports 4 packages (graph) and is imported by 2 packages. Updated 2016-07-20. Refresh now. Tools for package owners.